Next: Case mappings of substrings, Previous: Case mappings of characters, Up: Case mappings <unicase.h>
[Contents][Index]
Case mapping should always be performed on entire strings, not on individual characters. The functions in this section do so.
These functions allow to apply a normalization after the case mapping. The reason is that if you want to treat ‘ä’ and ‘Ä’ the same, you most often also want to treat the composed and decomposed forms of such a character, U+00C4 LATIN CAPITAL LETTER A WITH DIAERESIS and U+0041 LATIN CAPITAL LETTER A U+0308 COMBINING DIAERESIS the same. The nf argument designates the normalization.
These functions are locale dependent. The iso639_language argument
identifies the language (e.g. "tr"
for Turkish). NULL means to use
locale independent case mappings.
Returns the ISO 639 language code of the current locale.
Returns ""
if it is unknown, or in the "C" locale.
Returns the uppercase mapping of a string.
The nf argument identifies the normalization form to apply after the case-mapping. It can also be NULL, for no normalization.
The resultbuf and lengthp arguments are as described in chapter Conventions.
Returns the lowercase mapping of a string.
The nf argument identifies the normalization form to apply after the case-mapping. It can also be NULL, for no normalization.
The resultbuf and lengthp arguments are as described in chapter Conventions.
Returns the titlecase mapping of a string.
Mapping to title case means that, in each word, the first cased character is being mapped to title case and the remaining characters of the word are being mapped to lower case.
The nf argument identifies the normalization form to apply after the case-mapping. It can also be NULL, for no normalization.
The resultbuf and lengthp arguments are as described in chapter Conventions.
Next: Case mappings of substrings, Previous: Case mappings of characters, Up: Case mappings <unicase.h>
[Contents][Index]