LangTag.VariantDb

Fields

None

Methods

class

new ()

lookup (subtag)

ref ()

unref ()

Details

class LangTag.VariantDb

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

classmethod new()
Returns:

a new instance of LangTag.VariantDb.

Return type:

LangTag.VariantDb

Create a new instance of a LangTag.VariantDb.

lookup(subtag)
Parameters:

subtag (str) – a subtag name to lookup.

Returns:

a LangTag.Variant that meets with subtag. otherwise None.

Return type:

LangTag.Variant

Lookup LtVariant if subtag is valid and registered into the database.

ref()
Returns:

the same self object.

Return type:

LangTag.VariantDb

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