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

Unified Diff: third_party/hunspell/src/hunspell/hunspell.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/htypes.hxx ('k') | third_party/hunspell/src/hunspell/hunspell.cxx » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/hunspell/src/hunspell/hunspell.hxx
===================================================================
--- third_party/hunspell/src/hunspell/hunspell.hxx (revision 50428)
+++ third_party/hunspell/src/hunspell/hunspell.hxx (working copy)
@@ -5,6 +5,10 @@
#include "suggestmgr.hxx"
#include "langnum.hxx"
+#ifdef HUNSPELL_CHROME_CLIENT
+#include "third_party/hunspell/google/bdict_reader.h"
+#endif
+
#define SPELL_COMPOUND (1 << 0)
#define SPELL_FORBIDDEN (1 << 1)
#define SPELL_ALLCAP (1 << 2)
@@ -26,7 +30,9 @@
HashMgr* pHMgr[MAXDIC];
int maxdic;
SuggestMgr* pSMgr;
+#ifndef HUNSPELL_CHROME_CLIENT // We are using BDict instead.
char * affixpath;
+#endif
char * encoding;
struct cs_info * csconv;
int langnum;
@@ -34,17 +40,28 @@
int complexprefixes;
char** wordbreak;
+#ifdef HUNSPELL_CHROME_CLIENT
+ // Not owned by us, owned by the Hunspell object.
+ hunspell::BDictReader* bdict_reader;
+#endif
+
public:
/* Hunspell(aff, dic) - constructor of Hunspell class
* input: path of affix file and dictionary file
*/
+#ifdef HUNSPELL_CHROME_CLIENT
+ Hunspell(const unsigned char* bdict_data, size_t bdict_length);
+#else
Hunspell(const char * affpath, const char * dpath, const char * key = NULL);
+#endif
~Hunspell();
+#ifndef HUNSPELL_CHROME_CLIENT
/* load extra dictionaries (only dic files) */
int add_dic(const char * dpath, const char * key = NULL);
+#endif
/* spell(word) - spellcheck word
* output: 0 = bad word, not 0 = good word
« no previous file with comments | « third_party/hunspell/src/hunspell/htypes.hxx ('k') | third_party/hunspell/src/hunspell/hunspell.cxx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698