do not capitalize letter right after the apostrophe

This commit is contained in:
Andrzej Rybczak
2009-06-24 14:11:00 +02:00
parent 774dbaf859
commit c6926be931

View File

@@ -1007,7 +1007,7 @@ std::string TagEditor::CapitalizeFirstLetters(const string &s)
result[0] = toupper(result[0]); result[0] = toupper(result[0]);
for (string::iterator it = result.begin()+1; it != result.end(); it++) 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); *it = toupper(*it);
} }
return result; return result;