LangTag.Extlang¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class LangTag.Extlang¶
All the fields in the
LangTag.Extlang
structure are private to theLangTag.Extlang
implementation.- compare(v2)¶
- Parameters:
v2 (
LangTag.Extlang
) – aLangTag.Extlang
.- Returns:
- Return type:
Compares if self and v2 is the same object or not.
- dump()¶
Dumps the container information to the standard output.
- get_macro_language()¶
-
Obtains the macrolanguage being assigned for the subtag. This is available only when the subtag is registered as the macrolanguage in ISO 639-3.
- get_preferred_tag()¶
-
Obtains the preferred-value. this is available only when the subtag is marked as deprecated.
- get_prefix()¶
-
Obtains the prefix being assigned to the subtag. This is available only when the subtag has a particular seqnence of subgtags that form a meaningful tag with the subtag.
- get_tag()¶
- Returns:
a subtag name.
- Return type:
Obtains the subtag that is registered as ISO 639 code.
- ref()¶
- Returns:
the same self object.
- Return type:
Increases the reference count of self.
- unref()¶
Decreases the reference count of self. when its reference count drops to 0, the object is finalized (i.e. its memory is freed).