LangTag.Redundant¶
Fields¶
None
Methods¶
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class LangTag.Redundant¶
All the fields in the
LangTag.Redundant
structure are private to theLangTag.Redundant
implementation.- compare(v2)¶
- Parameters:
v2 (
LangTag.Redundant
) – aLangTag.Redundant
.- 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.
- 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).