language_from_string
Description:
[ Version ( replacement = "Language.from_string" ) ]
public unowned Language? language_from_string (string? language)
Convert a language tag to a `PangoLanguage`.
The language tag must be in a RFC-3066 format. `PangoLanguage` pointers 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 '-'.
Use [func@Pango.Language.get_default] if you want to get the `PangoLanguage` for the current locale of the process.
Parameters:
language |
a string representing a language tag |
Returns:
a `PangoLanguage` |
Namespace: Pango
Package: pango