Callbacks¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- LangTag.CompareFunc(v1, v2)¶
- Parameters:
- Return type:
The type of callback function used for comparing objects.
- LangTag.CopyFunc(data)¶
-
The type of callback function used for copying data.
- LangTag.DestroyFunc(data)¶
- Parameters:
data (
object
) – the object to be destroyed.
The type of callback function used for destroying data.
- LangTag.ExtModuleDataNewFunc()¶
- Returns:
a new instance of
LangTag.ExtModuleData
.- Return type:
The type of the callback function used to create a new instance of
LangTag.ExtModuleData
. This is invoked when new Extension subtag appears and keep data.
- LangTag.ExtModuleGetFuncsFunc()¶
- Returns:
- Return type:
The type of the module_get_funcs() that is required to implement an extension module.
- LangTag.ExtModuleGetTagFunc(data)¶
- Parameters:
data (
LangTag.ExtModuleData
) – aLangTag.ExtModuleData
.- Returns:
a tag string.
- Return type:
The type of the callback function used to obtain the tag.
- LangTag.ExtModuleParseFunc(data, subtag, error)¶
- Parameters:
data (
LangTag.ExtModuleData
) – aLangTag.ExtModuleData
.subtag (
str
) – a subtag string to parse.error (
LangTag.Error
orNone
) – aLangTag.Error
.
- Returns:
- Return type:
The type of the callback function used to parse tags.
- LangTag.ExtModulePrecheckFunc(data, tag, error)¶
- Parameters:
data (
LangTag.ExtModuleData
) – aLangTag.ExtModuleData
.tag (
LangTag.Tag
) – aLangTag.Tag
.error (
LangTag.Error
orNone
) – aLangTag.Error
.
- Returns:
True
if tag is valid to process parsing subtags for the extension. otherwiseFalse
.- Return type:
The type of the callback function used to check tag prior to process parsing subtags for the extension.
- LangTag.ExtModuleSingletonFunc()¶
- Returns:
a singleton character.
- Return type:
The type of the callback function used to obtain a singleton character for Extension subtag that the module would support.
- LangTag.ExtModuleValidateFunc(data)¶
- Parameters:
data (
LangTag.ExtModuleData
) – aLangTag.ExtModuleData
.- Returns:
- Return type:
The type of the callback function used to validate the tags in data.
- LangTag.ExtModuleVersionFunc()¶
- Returns:
a version number. this is the same to
LangTag.EXT_MODULE_VERSION
when the module was built.- Return type:
The type of the module_get_version() that is required to implement an extension module.