1 /* file manager class - read lines of files [filename] OR [filename.hz] */
10 #ifdef HUNSPELL_CHROME_CLIENT
13 } // namespace hunspell
15 // A class which encapsulates operations of reading a BDICT file.
16 // Chrome uses a BDICT file to compress hunspell dictionaries. A BDICT file is
17 // a binary file converted from a DIC file and an AFF file. (See
18 // "bdict_reader.h" for its format.)
19 // This class encapsulates the operations of reading a BDICT file and emulates
20 // the original FileMgr operations for AffixMgr so that it can read a BDICT
21 // file without so many changes.
24 FileMgr(hunspell::LineIterator
* iterator
);
30 hunspell::LineIterator
* iterator_
;
31 char line_
[BUFSIZE
+ 50]; // input buffer
34 class LIBHUNSPELL_DLL_EXPORTED FileMgr
39 char in
[BUFSIZE
+ 50]; // input buffer
40 int fail(const char * err
, const char * par
);
44 FileMgr(const char * filename
, const char * key
= NULL
);