LangTag.Script

Fields

None

Methods

compare (v2)

convert_to_modifier ()

dump ()

get_name ()

get_tag ()

ref ()

unref ()

Details

class LangTag.Script

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

compare(v2)
Parameters:

v2 (LangTag.Script) – a LangTag.Script.

Returns:

True if it’s the same, otherwise False.

Return type:

int

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

convert_to_modifier()
Returns:

a modifier string or None.

Return type:

str

Convert the script subtag to the locale variant modifier.

dump()

Dumps the container information to the standard output.

get_name()
Returns:

a description string.

Return type:

str

Obtains the description of the subtag.

get_tag()
Returns:

a tag string.

Return type:

str

Obtains the tag name.

ref()
Returns:

the same self object.

Return type:

LangTag.Script

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