OLD | NEW |
1 #ifndef _HASHMGR_HXX_ | 1 #ifndef _HASHMGR_HXX_ |
2 #define _HASHMGR_HXX_ | 2 #define _HASHMGR_HXX_ |
3 | 3 |
4 #include <cstdio> | 4 #include <cstdio> |
5 #include "htypes.hxx" | 5 #include "htypes.hxx" |
6 | 6 |
7 #ifdef HUNSPELL_CHROME_CLIENT | 7 #ifdef HUNSPELL_CHROME_CLIENT |
8 #include "chrome/common/stl_util-inl.h" | 8 #include "chrome/common/stl_util-inl.h" |
9 #include "chrome/third_party/hunspell/google/bdict_reader.h" | 9 #include "chrome/third_party/hunspell/google/bdict_reader.h" |
10 #include "base/string_piece.h" | 10 #include "base/string_piece.h" |
11 #include <string> | 11 #include <string> |
12 #include <map> | 12 #include <map> |
13 #endif | 13 #endif |
14 | 14 |
15 enum flag { FLAG_CHAR, FLAG_LONG, FLAG_NUM, FLAG_UNI }; | 15 enum flag { FLAG_CHAR, FLAG_LONG, FLAG_NUM, FLAG_UNI }; |
16 | 16 |
17 class HashMgr | 17 class HashMgr |
18 { | 18 { |
19 #ifdef HUNSPELL_CHROME_CLIENT | 19 #ifdef HUNSPELL_CHROME_CLIENT |
20 // Not owned by this class, owned by the Hunspell object. | 20 // Not owned by this class, owned by the Hunspell object. |
21 hunspell::BDictReader* bdict_reader; | 21 hunspell::BDictReader* bdict_reader; |
22 std::map<StringPiece, struct hentry *> custom_word_to_hentry_map_; | 22 std::map<StringPiece, int> custom_word_to_affix_id_map_; |
23 std::vector<std::string*> pointer_to_strings_; | 23 std::vector<std::string*> pointer_to_strings_; |
24 #endif | 24 #endif |
25 int tablesize; | 25 int tablesize; |
26 struct hentry * tableptr; | 26 struct hentry * tableptr; |
27 int userword; | 27 int userword; |
28 flag flag_mode; | 28 flag flag_mode; |
29 int complexprefixes; | 29 int complexprefixes; |
30 int utf8; | 30 int utf8; |
31 char * ignorechars; | 31 char * ignorechars; |
32 unsigned short * ignorechars_utf16; | 32 unsigned short * ignorechars_utf16; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 int parse_aliasf(char * line, FILE * af); | 94 int parse_aliasf(char * line, FILE * af); |
95 #endif | 95 #endif |
96 | 96 |
97 #ifdef HUNSPELL_EXPERIMENTAL | 97 #ifdef HUNSPELL_EXPERIMENTAL |
98 int parse_aliasm(char * line, FILE * af); | 98 int parse_aliasm(char * line, FILE * af); |
99 #endif | 99 #endif |
100 | 100 |
101 }; | 101 }; |
102 | 102 |
103 #endif | 103 #endif |
OLD | NEW |