LangTag.RegionDb¶
Fields¶
None
Methods¶
class |
|
|
|
|
|
|
Details¶
- class LangTag.RegionDb¶
All the fields in the
LangTag.RegionDbstructure are private to theLangTag.RegionDbimplementation.- classmethod new()¶
- Returns:
a new instance of
LangTag.RegionDb.- Return type:
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.Regionthat meets with language_or_code. otherwiseNone.- Return type:
Lookup LtRegion if language_or_code is valid and registered into the database.
- ref()¶
- Returns:
the same self object.
- Return type:
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).