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

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

Issue 2544793003: [spellcheck] Updated Hunspell to 1.5.4 (Closed)
Patch Set: Updated patch with encoding change Created 4 years 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/license.hunspell ('k') | third_party/hunspell/src/hunspell/phonet.cxx » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/hunspell/src/hunspell/phonet.hxx
diff --git a/third_party/hunspell/src/hunspell/phonet.hxx b/third_party/hunspell/src/hunspell/phonet.hxx
index f91d3b02b893c85463f8bb94c7da5d91d2e839a0..2d58b3ba1b166e74991fe34e54f9169a6fbb1105 100644
--- a/third_party/hunspell/src/hunspell/phonet.hxx
+++ b/third_party/hunspell/src/hunspell/phonet.hxx
@@ -4,12 +4,12 @@
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 2.1 as published by the Free Software Foundation;
-
+
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
-
+
You should have received a copy of the GNU Lesser General Public
License along with this library; If not, see
<http://www.gnu.org/licenses/>.
@@ -21,32 +21,30 @@
transformations out of c't 25/1999
2007-07-26 Bjoern Jacke <bjoern at j3e.de>
- Released under MPL/GPL/LGPL tri-license for Hunspell
-
+ Released under MPL/GPL/LGPL tri-license for Hunspell
+
2007-08-23 Laszlo Nemeth <nemeth at OOo>
Porting from Aspell to Hunspell using C-like structs
*/
-#ifndef __PHONETHXX__
-#define __PHONETHXX__
+#ifndef PHONET_HXX_
+#define PHONET_HXX_
-#define HASHSIZE 256
-#define MAXPHONETLEN 256
-#define MAXPHONETUTF8LEN (MAXPHONETLEN * 4)
+#define HASHSIZE 256
+#define MAXPHONETLEN 256
+#define MAXPHONETUTF8LEN (MAXPHONETLEN * 4)
#include "hunvisapi.h"
struct phonetable {
char utf8;
- cs_info * lang;
- int num;
- char * * rules;
+ std::vector<std::string> rules;
int hash[HASHSIZE];
};
-LIBHUNSPELL_DLL_EXPORTED void init_phonet_hash(phonetable & parms);
+LIBHUNSPELL_DLL_EXPORTED void init_phonet_hash(phonetable& parms);
-LIBHUNSPELL_DLL_EXPORTED int phonet (const char * inword, char * target,
- int len, phonetable & phone);
+LIBHUNSPELL_DLL_EXPORTED std::string phonet(const std::string& inword,
+ phonetable& phone);
#endif
« no previous file with comments | « third_party/hunspell/src/hunspell/license.hunspell ('k') | third_party/hunspell/src/hunspell/phonet.cxx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698