OSDN Git Service

GitStatusListCtrl port build complete
[tortoisegit/TortoiseGitJp.git] / ext / hunspell / hunspell.h
1 #ifndef _MYSPELLMGR_H_\r
2 #define _MYSPELLMGR_H_\r
3 \r
4 #ifdef __cplusplus\r
5 extern "C" {\r
6 #endif\r
7 \r
8 typedef struct Hunhandle Hunhandle;\r
9 \r
10 Hunhandle *Hunspell_create(const char * affpath, const char * dpath);\r
11 void Hunspell_destroy(Hunhandle *pHunspell);\r
12 \r
13 /* spell(word) - spellcheck word\r
14  * output: 0 = bad word, not 0 = good word\r
15  */\r
16 int Hunspell_spell(Hunhandle *pHunspell, const char *);\r
17 \r
18 char *Hunspell_get_dic_encoding(Hunhandle *pHunspell);\r
19 \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
26  */\r
27 int Hunspell_suggest(Hunhandle *pHunspell, char*** slst, const char * word);\r
28 \r
29 #ifdef __cplusplus\r
30 }\r
31 #endif\r
32 \r
33 #endif\r