[solved. thank you!] upper case
how do you know if a word (QString) begins with an upper case letter and how to make this first letter to be upper?
5 replies
<nitpick>
Actually that code is not correct since Unicode does have funny little chars like “01C9;LATIN SMALL LETTER LJ”. That is one lowercase letter (lj).
Uppercasing that gives you “01C7;LATIN CAPITAL LETTER LJ” (LJ).
So that is not what you want.
You want “01C8;LATIN CAPITAL LETTER L WITH SMALL LETTER J” (Lj), which is the Titlecase. So you should use toTitleCase() instead of toUpper().
</nitpick>
You must log in to post a reply. Not a member yet? Register here!



