diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2016-05-13 19:32:21 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2016-05-13 19:32:21 +0000 |
commit | 37c98eaad76b7f1bf86c75fe2c32cf6aa11f7c6f (patch) | |
tree | 32aede144aa0cd0f2dd058b003cdbd534a2f969c /libs/hunspell/src/affixmgr.hxx | |
parent | e73bb3845517a31fa795e8d2174fcc8572835b33 (diff) |
SpellChecker: Updated hunspell to 1.4.1
git-svn-id: http://svn.miranda-ng.org/main/trunk@16828 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'libs/hunspell/src/affixmgr.hxx')
-rw-r--r-- | libs/hunspell/src/affixmgr.hxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libs/hunspell/src/affixmgr.hxx b/libs/hunspell/src/affixmgr.hxx index ca376953cd..d70e853388 100644 --- a/libs/hunspell/src/affixmgr.hxx +++ b/libs/hunspell/src/affixmgr.hxx @@ -160,11 +160,9 @@ class LIBHUNSPELL_DLL_EXPORTED AffixMgr { PfxEntry* pfx; // BUG: not stateless int checknum; char* wordchars; - unsigned short* wordchars_utf16; - int wordchars_utf16_len; + std::vector<w_char> wordchars_utf16; char* ignorechars; - unsigned short* ignorechars_utf16; - int ignorechars_utf16_len; + std::vector<w_char> ignorechars_utf16; char* version; char* lang; int langnum; @@ -258,9 +256,9 @@ class LIBHUNSPELL_DLL_EXPORTED AffixMgr { unsigned short al, const char* bad, int, - char*); + const char*); - short get_syllable(const char* word, int wlen); + short get_syllable(const std::string& word); int cpdrep_check(const char* word, int len); int cpdpat_check(const char* word, int len, @@ -282,6 +280,7 @@ class LIBHUNSPELL_DLL_EXPORTED AffixMgr { short maxwordnum, short wnum, hentry** words, + hentry** rwords, char hu_mov_rule, char is_sug, int* info); @@ -293,6 +292,7 @@ class LIBHUNSPELL_DLL_EXPORTED AffixMgr { short maxwordnum, short wnum, hentry** words, + hentry** rwords, char hu_mov_rule, char** result, char* partresult); @@ -317,9 +317,9 @@ class LIBHUNSPELL_DLL_EXPORTED AffixMgr { char* get_key_string(); char* get_try_string() const; const char* get_wordchars() const; - unsigned short* get_wordchars_utf16(int* len) const; + const std::vector<w_char>& get_wordchars_utf16() const; char* get_ignore() const; - unsigned short* get_ignore_utf16(int* len) const; + const std::vector<w_char>& get_ignore_utf16() const; int get_compound() const; FLAG get_compoundflag() const; FLAG get_compoundbegin() const; @@ -370,11 +370,11 @@ class LIBHUNSPELL_DLL_EXPORTED AffixMgr { int parse_defcpdtable(char* line, FileMgr* af); int parse_affix(char* line, const char at, FileMgr* af, char* dupflags); - void reverse_condition(char*); + void reverse_condition(std::string&); void debugflag(char* result, unsigned short flag); std::string& debugflag(std::string& result, unsigned short flag); - int condlen(char*); - int encodeit(affentry& entry, char* cs); + int condlen(const char*); + int encodeit(affentry& entry, const char* cs); int build_pfxtree(PfxEntry* pfxptr); int build_sfxtree(SfxEntry* sfxptr); int process_pfx_order(); @@ -383,7 +383,7 @@ class LIBHUNSPELL_DLL_EXPORTED AffixMgr { SfxEntry* process_sfx_in_order(SfxEntry* ptr, SfxEntry* nptr); int process_pfx_tree_to_list(); int process_sfx_tree_to_list(); - int redundant_condition(char, char* strip, int stripl, const char* cond, int); + int redundant_condition(char, const char* strip, int stripl, const char* cond, int); void finishFileMgr(FileMgr* afflst); }; |