-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathparser.h.internal
37 lines (22 loc) · 1.1 KB
/
parser.h.internal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef PARSER_H
#define PARSER_H
#include <string>
#include <iterator>
#include <vector>
#include "database/compiled_database.h"
class Text;
class Parser {
public:
std::vector<std::string> *results;
Compiled_Database *compiled_database;
Parser();
~Parser();
int no_phrases;
void parse(Text *text);
void parse_against_compiled_database(Text *text);
void longest_word_match(Text *t);
void populate_text_elements(std::string word, Text *text, std::string current_table, std::string search_field);
void add_option(Text *maintext, Text *subtext, std::string chinese, std::string english, std::string pinyin, std::string flag, std::string code, std::string table_pkey, std::string chinese_utf8s, std::string chinese_utf8c, std::string chinese_big5, std::string newstrack, int new_item);
void add_option_from_compiled_database(Text *maintext, std::string chinese, std::string english, std::string pinyin, std::string flag, std::string code, std::string table_pkey, std::string chinese_utf8s, std::string chinese_utf8c, std::string chinese_big5, std::string newstrack, int new_item);
};
#endif