| OLD | NEW |
| 1 #ifndef _AFFIXMGR_HXX_ | 1 #ifndef _AFFIXMGR_HXX_ |
| 2 #define _AFFIXMGR_HXX_ | 2 #define _AFFIXMGR_HXX_ |
| 3 | 3 |
| 4 #ifdef MOZILLA_CLIENT | 4 #ifdef MOZILLA_CLIENT |
| 5 #ifdef __SUNPRO_CC // for SunONE Studio compiler | 5 #ifdef __SUNPRO_CC // for SunONE Studio compiler |
| 6 using namespace std; | 6 using namespace std; |
| 7 #endif | 7 #endif |
| 8 #include <stdio.h> | 8 #include <stdio.h> |
| 9 #else | 9 #else |
| 10 #include <cstdio> | 10 #include <cstdio> |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 int get_sugswithdots(void); | 249 int get_sugswithdots(void); |
| 250 FLAG get_keepcase(void); | 250 FLAG get_keepcase(void); |
| 251 int get_checksharps(void); | 251 int get_checksharps(void); |
| 252 char * encode_flag(unsigned short aflag); | 252 char * encode_flag(unsigned short aflag); |
| 253 int get_fullstrip(); | 253 int get_fullstrip(); |
| 254 | 254 |
| 255 private: | 255 private: |
| 256 #ifdef HUNSPELL_CHROME_CLIENT | 256 #ifdef HUNSPELL_CHROME_CLIENT |
| 257 // Not owned by us, owned by the Hunspell object. | 257 // Not owned by us, owned by the Hunspell object. |
| 258 hunspell::BDictReader* bdict_reader; | 258 hunspell::BDictReader* bdict_reader; |
| 259 #endif |
| 259 | 260 |
| 260 int parse_file(); | |
| 261 int parse_flag(char * line, unsigned short * out); | |
| 262 int parse_num(char * line, int * out); | |
| 263 int parse_cpdsyllable(char * line); | |
| 264 | |
| 265 int parse_reptable(char * line, hunspell::LineIterator* iterator); | |
| 266 int parse_convtable(char * line, hunspell::LineIterator* iterator, RepList **
rl, const char * keyword); | |
| 267 int parse_phonetable(char * line, hunspell::LineIterator* iterator); | |
| 268 int parse_maptable(char * line, hunspell::LineIterator* iterator); | |
| 269 int parse_breaktable(char * line, hunspell::LineIterator* iterator); | |
| 270 int parse_checkcpdtable(char * line, hunspell::LineIterator* iterator); | |
| 271 int parse_defcpdtable(char * line, hunspell::LineIterator* iterator); | |
| 272 int parse_affix(char * line, const char at, hunspell::LineIterator* iterator)
; | |
| 273 #else | |
| 274 int parse_file(FILE* aff_handle, const char * key); | 261 int parse_file(FILE* aff_handle, const char * key); |
| 275 int parse_flag(char * line, unsigned short * out, FileMgr * af); | 262 int parse_flag(char * line, unsigned short * out, FileMgr * af); |
| 276 int parse_num(char * line, int * out, FileMgr * af); | 263 int parse_num(char * line, int * out, FileMgr * af); |
| 277 int parse_cpdsyllable(char * line, FileMgr * af); | 264 int parse_cpdsyllable(char * line, FileMgr * af); |
| 278 | 265 |
| 279 int parse_reptable(char * line, FileMgr * af); | 266 int parse_reptable(char * line, FileMgr * af); |
| 280 int parse_convtable(char * line, FileMgr * af, RepList ** rl, const char * ke
yword); | 267 int parse_convtable(char * line, FileMgr * af, RepList ** rl, const char * ke
yword); |
| 281 int parse_phonetable(char * line, FileMgr * af); | 268 int parse_phonetable(char * line, FileMgr * af); |
| 282 int parse_maptable(char * line, FileMgr * af); | 269 int parse_maptable(char * line, FileMgr * af); |
| 283 int parse_breaktable(char * line, FileMgr * af); | 270 int parse_breaktable(char * line, FileMgr * af); |
| 284 int parse_checkcpdtable(char * line, FileMgr * af); | 271 int parse_checkcpdtable(char * line, FileMgr * af); |
| 285 int parse_defcpdtable(char * line, FileMgr * af); | 272 int parse_defcpdtable(char * line, FileMgr * af); |
| 286 int parse_affix(char * line, const char at, FileMgr * af, char * dupflags); | 273 int parse_affix(char * line, const char at, FileMgr * af, char * dupflags); |
| 287 #endif | |
| 288 | 274 |
| 289 void reverse_condition(char *); | 275 void reverse_condition(char *); |
| 290 void debugflag(char * result, unsigned short flag); | 276 void debugflag(char * result, unsigned short flag); |
| 291 int condlen(char *); | 277 int condlen(char *); |
| 292 int encodeit(struct affentry * ptr, char * cs); | 278 int encodeit(struct affentry * ptr, char * cs); |
| 293 int build_pfxtree(AffEntry* pfxptr); | 279 int build_pfxtree(AffEntry* pfxptr); |
| 294 int build_sfxtree(AffEntry* sfxptr); | 280 int build_sfxtree(AffEntry* sfxptr); |
| 295 int process_pfx_order(); | 281 int process_pfx_order(); |
| 296 int process_sfx_order(); | 282 int process_sfx_order(); |
| 297 AffEntry * process_pfx_in_order(AffEntry * ptr, AffEntry * nptr); | 283 AffEntry * process_pfx_in_order(AffEntry * ptr, AffEntry * nptr); |
| 298 AffEntry * process_sfx_in_order(AffEntry * ptr, AffEntry * nptr); | 284 AffEntry * process_sfx_in_order(AffEntry * ptr, AffEntry * nptr); |
| 299 int process_pfx_tree_to_list(); | 285 int process_pfx_tree_to_list(); |
| 300 int process_sfx_tree_to_list(); | 286 int process_sfx_tree_to_list(); |
| 301 int redundant_condition(char, char * strip, int stripl, | 287 int redundant_condition(char, char * strip, int stripl, |
| 302 const char * cond, int); | 288 const char * cond, int); |
| 303 }; | 289 }; |
| 304 | 290 |
| 305 #endif | 291 #endif |
| 306 | 292 |
| OLD | NEW |