summaryrefslogtreecommitdiff
path: root/src/parsers/htmlparser.hxx
blob: 9a0da7a79b5748871a5d0110f007e4d3cfdf976c (plain)
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
38
39
40
41
42
43
44
/*
 * HTML parser class for MySpell
 *
 * implemented: text, HTML, TeX
 *
 * Copyright (C) 2002, Laszlo Nemeth
 *
 */

#ifndef _HTMLPARSER_HXX_
#define _HTMLPARSER_HXX_


#include "textparser.hxx"

/*
 * HTML Parser
 *
 */

class HTMLParser : public TextParser
{
public:
 
  HTMLParser(const char * wc);
  HTMLParser(unsigned short * wordchars, int len);
  virtual ~HTMLParser();

  virtual char *              next_token();

private:

  int                 look_pattern(const char * p[][2], unsigned int len, int column);
  int                 pattern_num;
  int                 pattern2_num;
  int		      prevstate;
  int                 checkattr;
  char		      quotmark;

};


#endif