extern KADMOS_ERROR KADMOS_API respell_lookup (ReSpellData *rsd, long code, const char *word, char *results, int results_size, long text_format);
rsd
respell_init()
initialized structure ReSpellData
.code
word
and results
.word
results
results_size
results
in bytes.text_format
Null
character ('\0
'). Here can be
specified 0
(normal) or TEXT_FORMAT_KADMOS_MULTIBYTE
. In the latter case, word
is expected in multibyte representation and results
returned in multibyte representation.RE_SUCCESS or KADMOS error type.
The function passes the given word to the activated dictionary and returns the results of the dictionary lookup. In case
of success the function returns RE_SUCCESS
, in case of error it returns the related error type.
The error text can be retrieved by calling re_GetErrorText()
or be displayed by calling re_DisplayErrorText()
.