LangTag.RegionDb

Fields

None

Methods

class

new ()

lookup (language_or_code)

ref ()

unref ()

Details

class LangTag.RegionDb

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

classmethod new()
Returns:

a new instance of LangTag.RegionDb.

Return type:

LangTag.RegionDb

Create a new instance of a LangTag.RegionDb.

lookup(language_or_code)
Parameters:

language_or_code (str) – a region code to lookup.

Returns:

a LangTag.Region that meets with language_or_code. otherwise None.

Return type:

LangTag.Region

Lookup LtRegion if language_or_code is valid and registered into the database.

ref()
Returns:

the same self object.

Return type:

LangTag.RegionDb

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