improve "Capitalize First Letters" algorithm

master
Andrzej Rybczak 17 years ago
parent f111b933a4
commit b93c04189e
  1. 2
      src/tag_editor.cpp

@ -172,7 +172,7 @@ namespace
result[0] = toupper(result[0]);
for (string::iterator it = result.begin()+1; it != result.end(); it++)
{
if (isalpha(*it) && *(it-1) == ' ')
if (isalpha(*it) && !isalpha(*(it-1)))
*it = toupper(*it);
}
return result;

Loading…
Cancel
Save