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

Side by Side 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 unified diff | Download patch
OLDNEW
1 /*
2 * HTML parser class for MySpell
3 *
4 * implemented: text, HTML, TeX
5 *
6 * Copyright (C) 2014, Laszlo Nemeth
7 *
8 */
1 /* ***** BEGIN LICENSE BLOCK ***** 9 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 10 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 * 11 *
4 * The contents of this file are subject to the Mozilla Public License Version 12 * The contents of this file are subject to the Mozilla Public License Version
5 * 1.1 (the "License"); you may not use this file except in compliance with 13 * 1.1 (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at 14 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/ 15 * http://www.mozilla.org/MPL/
8 * 16 *
9 * Software distributed under the License is distributed on an "AS IS" basis, 17 * Software distributed under the License is distributed on an "AS IS" basis,
10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 18 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 * for the specific language governing rights and limitations under the 19 * for the specific language governing rights and limitations under the
12 * License. 20 * License.
13 * 21 *
14 * The Original Code is Hunspell, based on MySpell. 22 * The Original Code is Hunspell, based on MySpell.
15 * 23 *
16 * The Initial Developers of the Original Code are 24 * The Initial Developers of the Original Code are
17 * Kevin Hendricks (MySpell) and Laszlo Nemeth (Hunspell). 25 * Kevin Hendricks (MySpell) and Németh László (Hunspell).
18 * Portions created by the Initial Developers are Copyright (C) 2002-2005 26 * Portions created by the Initial Developers are Copyright (C) 2002-2005
19 * the Initial Developers. All Rights Reserved. 27 * the Initial Developers. All Rights Reserved.
20 * 28 *
21 * Contributor(s): 29 * Contributor(s): David Einstein, Davide Prina, Giuseppe Modugno,
22 * David Einstein 30 * Gianluca Turconi, Simon Brouwer, Noll János, Bíró Árpád,
23 * Davide Prina 31 * Goldman Eleonóra, Sarlós Tamás, Bencsáth Boldizsár, Halácsy Péter,
24 * Giuseppe Modugno 32 * Dvornik László, Gefferth András, Nagy Viktor, Varga Dániel, Chris Halls,
25 * Gianluca Turconi 33 * Rene Engelhard, Bram Moolenaar, Dafydd Jones, Harri Pitkänen
26 * Simon Brouwer
27 * Noll Janos
28 * Biro Arpad
29 * Goldman Eleonora
30 * Sarlos Tamas
31 * Bencsath Boldizsar
32 * Halacsy Peter
33 * Dvornik Laszlo
34 * Gefferth Andras
35 * Nagy Viktor
36 * Varga Daniel
37 * Chris Halls
38 * Rene Engelhard
39 * Bram Moolenaar
40 * Dafydd Jones
41 * Harri Pitkanen
42 * Andras Timar
43 * Tor Lillqvist
44 * 34 *
45 * Alternatively, the contents of this file may be used under the terms of 35 * Alternatively, the contents of this file may be used under the terms of
46 * either the GNU General Public License Version 2 or later (the "GPL"), or 36 * either the GNU General Public License Version 2 or later (the "GPL"), or
47 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), 37 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
48 * in which case the provisions of the GPL or the LGPL are applicable instead 38 * in which case the provisions of the GPL or the LGPL are applicable instead
49 * of those above. If you wish to allow use of your version of this file only 39 * of those above. If you wish to allow use of your version of this file only
50 * under the terms of either the GPL or the LGPL, and not to allow others to 40 * under the terms of either the GPL or the LGPL, and not to allow others to
51 * use your version of this file under the terms of the MPL, indicate your 41 * use your version of this file under the terms of the MPL, indicate your
52 * decision by deleting the provisions above and replace them with the notice 42 * decision by deleting the provisions above and replace them with the notice
53 * and other provisions required by the GPL or the LGPL. If you do not delete 43 * and other provisions required by the GPL or the LGPL. If you do not delete
54 * the provisions above, a recipient may use your version of this file under 44 * the provisions above, a recipient may use your version of this file under
55 * the terms of any one of the MPL, the GPL or the LGPL. 45 * the terms of any one of the MPL, the GPL or the LGPL.
56 * 46 *
57 * ***** END LICENSE BLOCK ***** */ 47 * ***** END LICENSE BLOCK ***** */
58 48
59 #ifndef HUNSPELL_CHROME_CLIENT 49 #ifndef XMLPARSER_HXX_
60 #include "config.h" 50 #define XMLPARSER_HXX_
51
52 #include "textparser.hxx"
53
54 /*
55 * XML Parser
56 *
57 */
58
59 class XMLParser : public TextParser {
60 public:
61 explicit XMLParser(const char* wc);
62 XMLParser(const w_char* wordchars, int len);
63 bool next_token(const char* p[][2],
64 unsigned int len,
65 const char* p2[][2],
66 unsigned int len2,
67 std::string&);
68 virtual bool next_token(std::string&);
69 int change_token(const char* word);
70 virtual ~XMLParser();
71
72 private:
73 int look_pattern(const char* p[][2], unsigned int len, int column);
74 int pattern_num;
75 int pattern2_num;
76 int prevstate;
77 int checkattr;
78 char quotmark;
79 };
80
61 #endif 81 #endif
OLDNEW
« 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