![]() |
![]() |
Public Member Functions | |
Language (PangoLanguage* gobject, bool make_a_copy=true) | |
Language (const Language& other) | |
Language& | operator= (const Language& other) |
~Language () | |
void | swap (Language& other) |
PangoLanguage* | gobj () |
Provides access to the underlying C instance. | |
const PangoLanguage* | gobj () const |
Provides access to the underlying C instance. | |
PangoLanguage* | gobj_copy () const |
Language () | |
Constructs an empty language tag. | |
Language (const Glib::ustring& language) | |
Constructs a Pango::Language object from a RFC-3066 format language tag. | |
Glib::ustring | get_string () const |
Gets a RFC-3066 format string representing the given language tag. | |
bool | matches (const Glib::ustring& range_list) const |
Checks if a language tag matches one of the elements in a list of language ranges. | |
Protected Attributes | |
PangoLanguage* | gobject_ |
Related Functions | |
(Note that these are not member functions.) | |
void | swap (Language& lhs, Language& rhs) |
Pango::Language | wrap (PangoLanguage* object, bool take_copy=false) |
|
|
|
|
|
|
|
Constructs an empty language tag.
|
|
Constructs a Pango::Language object from a RFC-3066 format language tag. This function first canonicalizes the string by converting it to lowercase, mapping '_' to '-', and stripping all characters other than letters and '-'. |
|
Gets a RFC-3066 format string representing the given language tag.
|
|
Provides access to the underlying C instance.
|
|
Provides access to the underlying C instance.
|
|
|
|
Checks if a language tag matches one of the elements in a list of language ranges. A language tag is considered to match a range in the list if the range is '*', the range is exactly the tag, or the range is a prefix of the tag, and the character after the tag is '-'.
|
|
|
|
|
|
|
|
|
|
|