LangTag.Extension

Fields

None

Methods

compare (v2)

dump ()

get_canonicalized_tag ()

get_tag ()

ref ()

truncate ()

unref ()

Details

class LangTag.Extension

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

compare(v2)
Parameters:

v2 (LangTag.Extension) – a LangTag.Extension.

Returns:

True if it’s the same, otherwise False.

Return type:

int

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

dump()

Dumps the container information to the standard output.

get_canonicalized_tag()
Returns:

a string. this must be freed.

Return type:

str

Generate a canonicalized tag.

get_tag()
Returns:

the tag string.

Return type:

str

Obtain the tag string.

ref()
Returns:

the same self object.

Return type:

LangTag.Extension

Increases the reference count of self.

truncate()
Return type:

int

unref()

Decreases the reference count of self. when its reference count drops to 0, the object is finalized (i.e. its memory is freed).