do not capitalize letter right after the apostrophe
This commit is contained in:
1 parent
774dbaf859
commit
c6926be931
1 file changed
+1
-1
+1
-1
@@ -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