LangTag.RelationDb

Fields

None

Methods

class

new ()

lookup_lang_from_script (script)

lookup_script_from_lang (lang)

ref ()

unref ()

Details

class LangTag.RelationDb

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

classmethod new()
Returns:

a new instance of LangTag.RelationDb.

Return type:

LangTag.RelationDb

Create a new instance of a LangTag.RelationDb.

lookup_lang_from_script(script)
Parameters:

script (LangTag.Script) – a LangTag.Script.

Returns:

a LangTag.List containing LangTag.Lang object.

Return type:

LangTag.List

Look up the languages corresponding to the script script.

lookup_script_from_lang(lang)
Parameters:

lang (LangTag.Lang) – a LangTag.Lang.

Returns:

a LangTag.List containing LangTag.Script objects.

Return type:

LangTag.List

Look up the scripts corresponding to the language lang.

ref()
Returns:

the same relationddb object.

Return type:

LangTag.RelationDb

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