LangTag.Variant¶
Fields¶
None
Methods¶
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
Details¶
- class LangTag.Variant¶
 All the fields in the
LangTag.Variantstructure are private to theLangTag.Variantimplementation.- compare(v2)¶
 - Parameters:
 v2 (
LangTag.Variant) – aLangTag.Variant.- 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_preferred_tag()¶
 - 
Obtains the preferred-value. this is available only when the tag is marked as deprecated.
 
- get_prefix()¶
 - Returns:
 a
LangTag.Listcontains prefix strings orNone.- Return type:
 
Obtains the prefix being assigned to the subtag. This is available only when the subtag has any suitable sequence of subtags for forming (with other subtags, as appropriate) a language tag when using the variant.
- 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).