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

Unified Diff: third_party/hunspell_new/src/parsers/manparser.cxx

Issue 1135173004: Rename third_party/hunspell_new back to third_party/hunspell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
Index: third_party/hunspell_new/src/parsers/manparser.cxx
diff --git a/third_party/hunspell_new/src/parsers/manparser.cxx b/third_party/hunspell_new/src/parsers/manparser.cxx
deleted file mode 100644
index 25858dad8dc58765b39e14918e51fc9edbc0a49b..0000000000000000000000000000000000000000
--- a/third_party/hunspell_new/src/parsers/manparser.cxx
+++ /dev/null
@@ -1,71 +0,0 @@
-#include <cstdlib>
-#include <cstring>
-#include <cstdio>
-#include <ctype.h>
-
-#include "../hunspell/csutil.hxx"
-#include "manparser.hxx"
-
-
-#ifndef W32
-using namespace std;
-#endif
-
-ManParser::ManParser() {
-}
-
-ManParser::ManParser(const char * wordchars)
-{
- init(wordchars);
-}
-
-ManParser::ManParser(unsigned short * wordchars, int len)
-{
- init(wordchars, len);
-}
-
-ManParser::~ManParser()
-{
-}
-
-char * ManParser::next_token()
-{
- for (;;) {
- switch (state)
- {
- case 1: // command arguments
- if (line[actual][head] == ' ') state = 2;
- break;
- case 0: // dot in begin of line
- if (line[actual][0] == '.') {
- state = 1;
- break;
- } else {
- state = 2;
- }
- // no break
- case 2: // non word chars
- if (is_wordchar(line[actual] + head)) {
- state = 3;
- token = head;
- } else if ((line[actual][head] == '\\') &&
- (line[actual][head + 1] == 'f') &&
- (line[actual][head + 2] != '\0')) {
- head += 2;
- }
- break;
- case 3: // wordchar
- if (! is_wordchar(line[actual] + head)) {
- state = 2;
- char * t = alloc_token(token, &head);
- if (t) return t;
- }
- break;
- }
- if (next_char(line[actual], &head)) {
- state = 0;
- return NULL;
- }
- }
-}
-
« no previous file with comments | « third_party/hunspell_new/src/parsers/manparser.hxx ('k') | third_party/hunspell_new/src/parsers/testparser.cxx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698