extern KADMOS_ERROR KADMOS_API respell_init (ReSpellData *rsd, const char *file_title); extern KADMOS_ERROR KADMOS_API respell_winit (ReSpellData *rsd, const wchar_t *file_title);
rsd
respell_init()
initialized structure ReSpellData
.file_title
RE_SUCCESS or KADMOS error type.
The function loads the dictionary file, specified by dictionary, for subsequent calls of respell_do()
and
respell_filetitle()
. The dictionary is unloaded by a call of respell_end()
. For the call of
respell_init()
only the sub structure ReSpellInit
in the ReSpellData
structure has to
be set, except the values of interna1
, interna2
, and interna3
. The values of
interna1
, interna2
, and interna3
will be set to handles or pointers of the loaded
dictionary data, and must not be changed before respell_end()
has been called. 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()
.