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

Unified Diff: third_party/hunspell_new/src/parsers/textparser.hxx

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/textparser.hxx
diff --git a/third_party/hunspell_new/src/parsers/textparser.hxx b/third_party/hunspell_new/src/parsers/textparser.hxx
deleted file mode 100644
index a6f472a6cbe6afbf2bb1d330fb78374fe3e8ff8a..0000000000000000000000000000000000000000
--- a/third_party/hunspell_new/src/parsers/textparser.hxx
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * parser classes for MySpell
- *
- * implemented: text, HTML, TeX
- *
- * Copyright (C) 2002, Laszlo Nemeth
- *
- */
-
-#ifndef _TEXTPARSER_HXX_
-#define _TEXTPARSER_HXX_
-
-// set sum of actual and previous lines
-#define MAXPREVLINE 4
-
-#ifndef MAXLNLEN
-#define MAXLNLEN 8192
-#endif
-
-/*
- * Base Text Parser
- *
- */
-
-class TextParser
-{
-
-protected:
- void init(const char *);
- void init(unsigned short * wordchars, int len);
- int wordcharacters[256]; // for detection of the word boundaries
- char line[MAXPREVLINE][MAXLNLEN]; // parsed and previous lines
- char urlline[MAXLNLEN]; // mask for url detection
- int checkurl;
- int actual; // actual line
- int head; // head position
- int token; // begin of token
- int state; // state of automata
- int utf8; // UTF-8 character encoding
- int next_char(char * line, int * pos);
- unsigned short * wordchars_utf16;
- int wclen;
-
-public:
-
- TextParser();
- TextParser(unsigned short * wordchars, int len);
- TextParser(const char * wc);
- virtual ~TextParser();
-
- void put_line(char * line);
- char * get_line();
- char * get_prevline(int n);
- virtual char * next_token();
- int change_token(const char * word);
- void set_url_checking(int check);
-
- int get_tokenpos();
- int is_wordchar(char * w);
- const char * get_latin1(char * s);
- char * next_char();
- int tokenize_urls();
- void check_urls();
- int get_url(int token_pos, int * head);
- char * alloc_token(int token, int * head);
-};
-
-#endif
-
« no previous file with comments | « third_party/hunspell_new/src/parsers/testparser.cxx ('k') | third_party/hunspell_new/src/parsers/textparser.cxx » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698