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

Unified Diff: third_party/hunspell/src/parsers/xmlparser.hxx

Issue 2544793003: [spellcheck] Updated Hunspell to 1.5.4 (Closed)
Patch Set: Test 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/parsers/textparser.cxx ('k') | third_party/hunspell/src/parsers/xmlparser.cxx » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/hunspell/src/parsers/xmlparser.hxx
diff --git a/third_party/hunspell/src/hunspell/license.hunspell b/third_party/hunspell/src/parsers/xmlparser.hxx
similarity index 57%
copy from third_party/hunspell/src/hunspell/license.hunspell
copy to third_party/hunspell/src/parsers/xmlparser.hxx
index 89c1ec7ae04f119947477e351e0aeda9bb297002..ec3d731e158f0c0ac424bb48ac772def1f97c060 100644
--- a/third_party/hunspell/src/hunspell/license.hunspell
+++ b/third_party/hunspell/src/parsers/xmlparser.hxx
@@ -1,3 +1,11 @@
+/*
+ * HTML parser class for MySpell
+ *
+ * implemented: text, HTML, TeX
+ *
+ * Copyright (C) 2014, Laszlo Nemeth
+ *
+ */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
@@ -14,33 +22,15 @@
* The Original Code is Hunspell, based on MySpell.
*
* The Initial Developers of the Original Code are
- * Kevin Hendricks (MySpell) and Laszlo Nemeth (Hunspell).
+ * Kevin Hendricks (MySpell) and Németh László (Hunspell).
* Portions created by the Initial Developers are Copyright (C) 2002-2005
* the Initial Developers. All Rights Reserved.
*
- * Contributor(s):
- * David Einstein
- * Davide Prina
- * Giuseppe Modugno
- * Gianluca Turconi
- * Simon Brouwer
- * Noll Janos
- * Biro Arpad
- * Goldman Eleonora
- * Sarlos Tamas
- * Bencsath Boldizsar
- * Halacsy Peter
- * Dvornik Laszlo
- * Gefferth Andras
- * Nagy Viktor
- * Varga Daniel
- * Chris Halls
- * Rene Engelhard
- * Bram Moolenaar
- * Dafydd Jones
- * Harri Pitkanen
- * Andras Timar
- * Tor Lillqvist
+ * Contributor(s): David Einstein, Davide Prina, Giuseppe Modugno,
+ * Gianluca Turconi, Simon Brouwer, Noll János, Bíró Árpád,
+ * Goldman Eleonóra, Sarlós Tamás, Bencsáth Boldizsár, Halácsy Péter,
+ * Dvornik László, Gefferth András, Nagy Viktor, Varga Dániel, Chris Halls,
+ * Rene Engelhard, Bram Moolenaar, Dafydd Jones, Harri Pitkänen
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
@@ -56,6 +46,36 @@
*
* ***** END LICENSE BLOCK ***** */
-#ifndef HUNSPELL_CHROME_CLIENT
-#include "config.h"
+#ifndef XMLPARSER_HXX_
+#define XMLPARSER_HXX_
+
+#include "textparser.hxx"
+
+/*
+ * XML Parser
+ *
+ */
+
+class XMLParser : public TextParser {
+ public:
+ explicit XMLParser(const char* wc);
+ XMLParser(const w_char* wordchars, int len);
+ bool next_token(const char* p[][2],
+ unsigned int len,
+ const char* p2[][2],
+ unsigned int len2,
+ std::string&);
+ virtual bool next_token(std::string&);
+ int change_token(const char* word);
+ virtual ~XMLParser();
+
+ private:
+ int look_pattern(const char* p[][2], unsigned int len, int column);
+ int pattern_num;
+ int pattern2_num;
+ int prevstate;
+ int checkattr;
+ char quotmark;
+};
+
#endif
« no previous file with comments | « third_party/hunspell/src/parsers/textparser.cxx ('k') | third_party/hunspell/src/parsers/xmlparser.cxx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698