| OLD | NEW |
| 1 #ifndef _HASHMGR_HXX_ | 1 #ifndef _HASHMGR_HXX_ |
| 2 #define _HASHMGR_HXX_ | 2 #define _HASHMGR_HXX_ |
| 3 | 3 |
| 4 #ifndef MOZILLA_CLIENT | 4 #ifndef MOZILLA_CLIENT |
| 5 #include <cstdio> | 5 #include <cstdio> |
| 6 #else | 6 #else |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 #endif | 8 #endif |
| 9 | 9 |
| 10 #include "htypes.hxx" | 10 #include "htypes.hxx" |
| 11 #include "filemgr.hxx" | 11 #include "filemgr.hxx" |
| 12 | 12 |
| 13 #ifdef HUNSPELL_CHROME_CLIENT | 13 #ifdef HUNSPELL_CHROME_CLIENT |
| 14 #include <string> | 14 #include <string> |
| 15 #include <map> | 15 #include <map> |
| 16 | 16 |
| 17 #include "base/stl_util-inl.h" | 17 #include "base/stl_util-inl.h" |
| 18 #include "base/string_piece.h" | 18 #include "base/string_piece.h" |
| 19 #include "third_party/hunspell/google/bdict_reader.h" | 19 #include "third_party/hunspell/google/bdict_reader.h" |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 enum flag { FLAG_CHAR, FLAG_LONG, FLAG_NUM, FLAG_UNI }; | 22 enum flag { FLAG_CHAR, FLAG_LONG, FLAG_NUM, FLAG_UNI }; |
| 23 | 23 |
| 24 class HashMgr | 24 class HashMgr |
| 25 { | 25 { |
| 26 #ifdef HUNSPELL_CHROME_CLIENT | 26 #ifdef HUNSPELL_CHROME_CLIENT |
| 27 // Not owned by this class, owned by the Hunspell object. | 27 // Not owned by this class, owned by the Hunspell object. |
| 28 hunspell::BDictReader* bdict_reader; | 28 hunspell::BDictReader* bdict_reader; |
| 29 std::map<StringPiece, int> custom_word_to_affix_id_map_; | 29 std::map<base::StringPiece, int> custom_word_to_affix_id_map_; |
| 30 std::vector<std::string*> pointer_to_strings_; | 30 std::vector<std::string*> pointer_to_strings_; |
| 31 #endif | 31 #endif |
| 32 int tablesize; | 32 int tablesize; |
| 33 struct hentry ** tableptr; | 33 struct hentry ** tableptr; |
| 34 int userword; | 34 int userword; |
| 35 flag flag_mode; | 35 flag flag_mode; |
| 36 int complexprefixes; | 36 int complexprefixes; |
| 37 int utf8; | 37 int utf8; |
| 38 unsigned short forbiddenword; | 38 unsigned short forbiddenword; |
| 39 int langnum; | 39 int langnum; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 #endif | 127 #endif |
| 128 | 128 |
| 129 int add_hidden_capitalized_word(char * word, int wbl, int wcl, | 129 int add_hidden_capitalized_word(char * word, int wbl, int wcl, |
| 130 unsigned short * flags, int al, char * dp, int captype); | 130 unsigned short * flags, int al, char * dp, int captype); |
| 131 int parse_aliasm(char * line, FileMgr * af); | 131 int parse_aliasm(char * line, FileMgr * af); |
| 132 int remove_forbidden_flag(const char * word); | 132 int remove_forbidden_flag(const char * word); |
| 133 | 133 |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 #endif | 136 #endif |
| OLD | NEW |