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