|
a/src/internfile/myhtmlparse.h |
|
b/src/internfile/myhtmlparse.h |
|
... |
|
... |
35 |
bool in_script_tag;
|
35 |
bool in_script_tag;
|
36 |
bool in_style_tag;
|
36 |
bool in_style_tag;
|
37 |
bool in_body_tag;
|
37 |
bool in_body_tag;
|
38 |
bool in_pre_tag;
|
38 |
bool in_pre_tag;
|
39 |
bool pending_space;
|
39 |
bool pending_space;
|
|
|
40 |
bool indexing_allowed;
|
40 |
string title, sample, keywords, dump, dmtime;
|
41 |
string title, sample, keywords, dmtime;
|
|
|
42 |
string localdump;
|
|
|
43 |
string &dump;
|
41 |
string ocharset; // This is the charset our user thinks the doc was
|
44 |
string ocharset; // This is the charset our user thinks the doc was
|
42 |
string charset; // This is the charset it was supposedly converted to
|
45 |
string charset; // This is the charset it was supposedly converted to
|
43 |
string doccharset; // Set this to value of charset parameter in header
|
46 |
string doccharset; // Set this to value of charset parameter in header
|
44 |
bool indexing_allowed;
|
|
|
45 |
void process_text(const string &text);
|
47 |
void process_text(const string &text);
|
46 |
void opening_tag(const string &tag, const map<string,string> &p);
|
48 |
void opening_tag(const string &tag, const map<string,string> &p);
|
47 |
void closing_tag(const string &tag);
|
49 |
void closing_tag(const string &tag);
|
48 |
void do_eof();
|
50 |
void do_eof();
|
49 |
MyHtmlParser() :
|
51 |
MyHtmlParser() :
|
50 |
in_script_tag(false),
|
52 |
in_script_tag(false),
|
51 |
in_style_tag(false),
|
53 |
in_style_tag(false),
|
52 |
in_body_tag(false),
|
54 |
in_body_tag(false),
|
53 |
in_pre_tag(false),
|
55 |
in_pre_tag(false),
|
54 |
pending_space(false),
|
56 |
pending_space(false),
|
55 |
indexing_allowed(true) { }
|
57 |
indexing_allowed(true),
|
|
|
58 |
dump(localdump)
|
|
|
59 |
{ }
|
|
|
60 |
MyHtmlParser(string& buf) :
|
|
|
61 |
in_script_tag(false),
|
|
|
62 |
in_style_tag(false),
|
|
|
63 |
in_body_tag(false),
|
|
|
64 |
in_pre_tag(false),
|
|
|
65 |
pending_space(false),
|
|
|
66 |
indexing_allowed(true),
|
|
|
67 |
dump(buf)
|
|
|
68 |
{ }
|
56 |
};
|
69 |
};
|