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

Side by Side Diff: third_party/hunspell/src/hunspell/hunspell.hxx

Issue 2587363003: [spellcheck] Updated Hunspell to 1.6.0 (Closed)
Patch Set: Handled presubmit warnings Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 /* ***** BEGIN LICENSE BLOCK ***** 1 /* ***** BEGIN LICENSE BLOCK *****
2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 2 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
3 * 3 *
4 * The contents of this file are subject to the Mozilla Public License Version 4 * 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 5 * 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 6 * the License. You may obtain a copy of the License at
7 * http://www.mozilla.org/MPL/ 7 * http://www.mozilla.org/MPL/
8 * 8 *
9 * Software distributed under the License is distributed on an "AS IS" basis, 9 * 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 10 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #include <vector> 80 #include <vector>
81 81
82 #ifdef HUNSPELL_CHROME_CLIENT 82 #ifdef HUNSPELL_CHROME_CLIENT
83 #include "third_party/hunspell/google/bdict_reader.h" 83 #include "third_party/hunspell/google/bdict_reader.h"
84 #endif 84 #endif
85 85
86 #define SPELL_XML "<?xml?>" 86 #define SPELL_XML "<?xml?>"
87 87
88 #define MAXSUGGESTION 15 88 #define MAXSUGGESTION 15
89 #define MAXSHARPS 5 89 #define MAXSHARPS 5
90 #define MAXWORDLEN 176
91 90
92 #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1) 91 #ifndef MAXWORDLEN
92 #define MAXWORDLEN 100
93 #endif
94
95 #if defined __GNUC__ && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
93 # define H_DEPRECATED __attribute__((__deprecated__)) 96 # define H_DEPRECATED __attribute__((__deprecated__))
94 #elif defined(_MSC_VER) && (_MSC_VER >= 1300) 97 #elif defined(_MSC_VER) && (_MSC_VER >= 1300)
95 # define H_DEPRECATED __declspec(deprecated) 98 # define H_DEPRECATED __declspec(deprecated)
96 #else 99 #else
97 # define H_DEPRECATED 100 # define H_DEPRECATED
98 #endif 101 #endif
99 102
100 class HunspellImpl; 103 class HunspellImpl;
101 104
102 class LIBHUNSPELL_DLL_EXPORTED Hunspell { 105 class LIBHUNSPELL_DLL_EXPORTED Hunspell {
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 const std::string& get_version_cpp() const; 233 const std::string& get_version_cpp() const;
231 234
232 int get_langnum() const; 235 int get_langnum() const;
233 236
234 /* need for putdic */ 237 /* need for putdic */
235 bool input_conv(const std::string& word, std::string& dest); 238 bool input_conv(const std::string& word, std::string& dest);
236 H_DEPRECATED int input_conv(const char* word, char* dest, size_t destsize); 239 H_DEPRECATED int input_conv(const char* word, char* dest, size_t destsize);
237 }; 240 };
238 241
239 #endif 242 #endif
OLDNEW
« no previous file with comments | « third_party/hunspell/src/hunspell/affixmgr.cxx ('k') | third_party/hunspell/src/hunspell/license.hunspell » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698