do not capitalize letter right after the apostrophe
This commit is contained in:
@@ -1007,7 +1007,7 @@ std::string TagEditor::CapitalizeFirstLetters(const string &s)
|
||||
result[0] = toupper(result[0]);
|
||||
for (string::iterator it = result.begin()+1; it != result.end(); it++)
|
||||
{
|
||||
if (isalpha(*it) && !isalpha(*(it-1)))
|
||||
if (isalpha(*it) && !isalpha(*(it-1)) && *(it-1) != '\'')
|
||||
*it = toupper(*it);
|
||||
}
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user