| Index: third_party/hunspell128/src/hunspell/filemgr.hxx
|
| ===================================================================
|
| --- third_party/hunspell128/src/hunspell/filemgr.hxx (revision 24436)
|
| +++ third_party/hunspell128/src/hunspell/filemgr.hxx (working copy)
|
| @@ -3,6 +3,30 @@
|
| #define _FILEMGR_HXX_
|
| #include "hunzip.hxx"
|
|
|
| +#ifdef HUNSPELL_CHROME_CLIENT
|
| +namespace hunspell {
|
| +class LineIterator;
|
| +} // namespace hunspell
|
| +
|
| +// A class which encapsulates operations of reading a BDICT file.
|
| +// Chrome uses a BDICT file to compress hunspell dictionaries. A BDICT file is
|
| +// a binary file converted from a DIC file and an AFF file. (See
|
| +// "bdict_reader.h" for its format.)
|
| +// This class encapsulates the operations of reading a BDICT file and emulates
|
| +// the original FileMgr operations for AffixMgr so that it can read a BDICT
|
| +// file without so many changes.
|
| +class FileMgr {
|
| + public:
|
| + FileMgr(hunspell::LineIterator* iterator);
|
| + ~FileMgr();
|
| + char * getline();
|
| + int getlinenum();
|
| +
|
| + protected:
|
| + hunspell::LineIterator* iterator_;
|
| + char line_[BUFSIZE + 50]; // input buffer
|
| +};
|
| +#else
|
| class FileMgr
|
| {
|
| protected:
|
| @@ -19,3 +43,5 @@
|
| int getlinenum();
|
| };
|
| #endif
|
| +
|
| +#endif
|
|
|