Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Unified Diff: third_party/hunspell/src/hunspell/filemgr.hxx

Issue 2239005: Merges our hunspell change to hunspell 1.2.10.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/deps/
Patch Set: '' Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/hunspell/src/hunspell/affixmgr.cxx ('k') | third_party/hunspell/src/hunspell/filemgr.cxx » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/hunspell/src/hunspell/filemgr.hxx
===================================================================
--- third_party/hunspell/src/hunspell/filemgr.hxx (revision 50428)
+++ third_party/hunspell/src/hunspell/filemgr.hxx (working copy)
@@ -7,6 +7,30 @@
#include "hunzip.hxx"
#include <stdio.h>
+#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 LIBHUNSPELL_DLL_EXPORTED FileMgr
{
protected:
@@ -23,3 +47,4 @@
int getlinenum();
};
#endif
+#endif
« no previous file with comments | « third_party/hunspell/src/hunspell/affixmgr.cxx ('k') | third_party/hunspell/src/hunspell/filemgr.cxx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698