diff options
author | <urmaslt@svn.abisource.com> | 2011-03-07 22:27:10 +0000 |
---|---|---|
committer | <urmaslt@svn.abisource.com> | 2011-03-07 22:27:10 +0000 |
commit | f66e35232891817161156c65d356c3b96b43b5ff (patch) | |
tree | 342d46dab6dd05f24b4334f17c70cf8469e4b0a0 /src/myspell/suggestmgr.hxx | |
parent | 71fe6e42189bbc47a5366bb180cdd68209ef6318 (diff) | |
download | enchant-f66e35232891817161156c65d356c3b96b43b5ff.tar.gz |
* Update hunspell to 2.15
* Enable UTF-8 dict paths on Windows
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@29648 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
Diffstat (limited to 'src/myspell/suggestmgr.hxx')
-rw-r--r-- | src/myspell/suggestmgr.hxx | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/myspell/suggestmgr.hxx b/src/myspell/suggestmgr.hxx index 0e61572..5f043fd 100644 --- a/src/myspell/suggestmgr.hxx +++ b/src/myspell/suggestmgr.hxx @@ -8,6 +8,7 @@ #define MAX_GUESS 200 #define MAXNGRAMSUGS 4 #define MAXPHONSUGS 2 +#define MAXCOMPOUNDSUGS 3 // timelimit: max ~1/4 sec (process time on Linux) for a time consuming function #define TIMELIMIT (CLOCKS_PER_SEC >> 2) @@ -17,6 +18,9 @@ #define NGRAM_LONGER_WORSE (1 << 0) #define NGRAM_ANY_MISMATCH (1 << 1) #define NGRAM_LOWERING (1 << 2) +#define NGRAM_WEIGHTED (1 << 3) + +#include "hunvisapi.h" #include "atypes.hxx" #include "affixmgr.hxx" @@ -26,7 +30,7 @@ enum { LCS_UP, LCS_LEFT, LCS_UPLEFT }; -class SuggestMgr +class LIBHUNSPELL_DLL_EXPORTED SuggestMgr { char * ckey; int ckeyl; @@ -43,6 +47,7 @@ class SuggestMgr int langnum; int nosplitsugs; int maxngramsugs; + int maxcpdsugs; int complexprefixes; @@ -90,8 +95,7 @@ private: int movechar_utf(char **, const w_char *, int, int, int); int mapchars(char**, const char *, int, int); - int map_related(const char *, int, char ** wlst, int, int, const mapentry*, int, int *, clock_t *); - int map_related_utf(w_char *, int, int, int, char ** wlst, int, const mapentry*, int, int *, clock_t *); + int map_related(const char *, char *, int, int, char ** wlst, int, int, const mapentry*, int, int *, clock_t *); int ngram(int n, char * s1, const char * s2, int opt); int mystrlen(const char * word); int leftcommonsubstring(char * s1, const char * s2); |