Switch to unified view

a/src/internfile/htmlparse.h b/src/internfile/htmlparse.h
...
...
29
29
30
using std::string;
30
using std::string;
31
using std::map;
31
using std::map;
32
32
33
class HtmlParser {
33
class HtmlParser {
34
  map<string, string> parameters;
34
    protected:
35
    protected:
35
        virtual void decode_entities(string &s);
36
        virtual void decode_entities(string &s);
36
        bool in_script;
37
        bool in_script;
37
        string charset;
38
        string charset;
38
    static map<string, unsigned int> named_ents;
39
    static map<string, unsigned int> named_ents;
40
41
  bool get_parameter(const string & param, string & value) const;
39
    public:
42
    public:
40
    virtual void process_text(const string &/*text*/) { }
43
    virtual void process_text(const string &/*text*/) { }
41
  virtual void opening_tag(const string &/*tag*/,
42
               const map<string,string> &/*p*/) { }
43
    virtual void closing_tag(const string &/*tag*/) { }
44
    virtual bool opening_tag(const string &/*tag*/) { return true; }
45
        virtual bool closing_tag(const string &/*tag*/) { return true; }
44
    virtual void parse_html(const string &text);
46
    virtual void parse_html(const string &text);
45
    virtual void do_eof() {}
47
    virtual void do_eof() {}
46
    HtmlParser();
48
    HtmlParser();
47
    virtual ~HtmlParser() { }
49
    virtual ~HtmlParser() { }
48
};
50
};