LangTag.Extlang

Fields

None

Methods

compare (v2)

dump ()

get_macro_language ()

get_name ()

get_preferred_tag ()

get_prefix ()

get_tag ()

ref ()

unref ()

Details

class LangTag.Extlang

All the fields in the LangTag.Extlang structure are private to the LangTag.Extlang implementation.

compare(v2)
Parameters:

v2 (LangTag.Extlang) – a LangTag.Extlang.

Returns:

True if it’s the same, otherwise False.

Return type:

int

Compares if self and v2 is the same object or not.

dump()

Dumps the container information to the standard output.

get_macro_language()
Returns:

a macrolanguage string or None.

Return type:

str

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_name()
Returns:

a description string.

Return type:

str

Obtains the description of the subtag.

get_preferred_tag()
Returns:

a preferred-value for the subtag or None.

Return type:

str

Obtains the preferred-value. this is available only when the subtag is marked as deprecated.

get_prefix()
Returns:

a prefix string or None.

Return type:

str

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:

str

Obtains the subtag that is registered as ISO 639 code.

ref()
Returns:

the same self object.

Return type:

LangTag.Extlang

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).