LangTag.Lang¶
Fields¶
None
Methods¶
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Details¶
- class LangTag.Lang¶
 All the fields in the
LangTag.Langstructure are private to theLangTag.Langimplementation.- compare(v2)¶
 - Parameters:
 v2 (
LangTag.Lang) – aLangTag.Lang.- Returns:
 - Return type:
 
Compare if self and v2 is the same object or not.
- dump()¶
 Dumps the container information to the standard output.
- get_better_tag()¶
 - Returns:
 a tag string.
- Return type:
 
Obtains the better tag for use. this is a convenient function to get the preferred-value if available.
- 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 tag is marked as deprecated.
 
- get_scope()¶
 - 
Obtains the scope value indicating the type of language code according to ISO 639.
 
- get_suppress_script()¶
 - 
Obtains the suppress-script value. which shouldn’t be used to form language tags with the associated primary or extended language subtag.
 
- 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).