PangoLanguage* pango_language_from_string ( const char* language )
Convert a language tag to a
The language tag must be in a RFC-3066 format.
can be efficiently copied (copy the pointer) and compared with other
language tags (compare the pointer.)
This function first canonicalizes the string by converting it to lowercase, mapping ‘_’ to ‘-‘, and stripping all characters other than letters and ‘-‘.
pango_language_get_default() if you want to get the
PangoLanguage for the current locale of the process.
A string representing a language tag.
The argument can be
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string.
|The data is owned by the called function.|
|The return value can be |