1 #ifndef _MYSPELLMGR_H_
\r
2 #define _MYSPELLMGR_H_
\r
8 typedef struct Hunhandle Hunhandle;
\r
10 Hunhandle *Hunspell_create(const char * affpath, const char * dpath);
\r
11 void Hunspell_destroy(Hunhandle *pHunspell);
\r
13 /* spell(word) - spellcheck word
\r
14 * output: 0 = bad word, not 0 = good word
\r
16 int Hunspell_spell(Hunhandle *pHunspell, const char *);
\r
18 char *Hunspell_get_dic_encoding(Hunhandle *pHunspell);
\r
20 /* suggest(suggestions, word) - search suggestions
\r
21 * input: pointer to an array of strings pointer and the (bad) word
\r
22 * array of strings pointer (here *slst) may not be initialized
\r
23 * output: number of suggestions in string array, and suggestions in
\r
24 * a newly allocated array of strings (*slts will be NULL when number
\r
25 * of suggestion equals 0.)
\r
27 int Hunspell_suggest(Hunhandle *pHunspell, char*** slst, const char * word);
\r