Tizen 2.1 base
[external/enchant.git] / src / ispell / sp_spell.h
1 /* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 #ifndef SPELL_H
3 #define SPELL_H
4
5 /*
6   TODO stuff we need to do for this spell module:
7
8   eliminate all the stderr fprintfs
9   rip out the support for ICHAR_IS_CHAR
10 */
11
12 #ifdef __cplusplus
13 extern "C"
14 {
15 #endif
16
17 typedef struct _sp_suggestions {
18         int count;
19         short *score;
20         unsigned short **word;
21 } sp_suggestions;
22    
23 int SpellCheckInit(char *hashname);
24 void SpellCheckCleanup(void);
25 int SpellCheckNWord16(const unsigned short *word16, int length);
26 int SpellCheckSuggestNWord16(const unsigned short *word16, int length, sp_suggestions *sg);
27
28 #ifdef __cplusplus
29 }
30 #endif
31         
32 #endif /* SPELL_H */