The following functions implement case mappings on Unicode characters — for those cases only where the result of the mapping is a again a single Unicode character.
These mappings are locale and context independent.
|WARNING! These functions are not sufficient for languages such as German, Greek and Lithuanian. Better use the functions below that treat an entire string at once and are language aware.|
Returns the uppercase mapping of the Unicode character uc.
Returns the lowercase mapping of the Unicode character uc.
Returns the titlecase mapping of the Unicode character uc.
The titlecase mapping of a character is to be used when the character should look like upper case and the following characters are lower cased.
For most characters, this is the same as the uppercase mapping. There are only few characters where the title case variant and the uuper case variant are different. These characters occur in the Latin writing of the Croatian, Bosnian, and Serbian languages.
Lower case Title case Upper case LATIN SMALL LETTER LJ LATIN CAPITAL LETTER L WITH SMALL LETTER J LATIN CAPITAL LETTER LJ LATIN SMALL LETTER NJ LATIN CAPITAL LETTER N WITH SMALL LETTER J LATIN CAPITAL LETTER NJ LATIN SMALL LETTER DZ LATIN CAPITAL LETTER D WITH SMALL LETTER Z LATIN CAPITAL LETTER DZ LATIN SMALL LETTER DZ WITH CARON LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON LATIN CAPITAL LETTER DZ WITH CARON