-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtag.h
133 lines (108 loc) · 1.88 KB
/
tag.h
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
/*
* html - a simple html parser lacking a better name
* The contents of this file is licensed under the MIT License,
* see the file COPYING or http://opensource.org/licenses/MIT
*/
#ifndef __TAG_H_
#define __TAG_H_
/*keep sorted, binary search*/
typedef enum HtmlTag HtmlTag;
enum HtmlTag {
HTML_TAG_NONE,
HTML_TAG_UNKNOWN,
HTML_TAG_COMMENT,
HTML_TAG_DOCTYPE,
HTML_TAG_A,
HTML_TAG_ABBR,
HTML_TAG_ACRONYM,
HTML_TAG_ADDRESS,
HTML_TAG_APPLET,
HTML_TAG_AREA,
HTML_TAG_B,
HTML_TAG_BASE,
HTML_TAG_BASEFONT,
HTML_TAG_BDO,
HTML_TAG_BIG,
HTML_TAG_BLOCKQUOTE,
HTML_TAG_BODY,
HTML_TAG_BR,
HTML_TAG_BUTTON,
HTML_TAG_CAPTION,
HTML_TAG_CENTER,
HTML_TAG_CITE,
HTML_TAG_CODE,
HTML_TAG_COL,
HTML_TAG_COLGROUP,
HTML_TAG_DD,
HTML_TAG_DEL,
HTML_TAG_DFN,
HTML_TAG_DIR,
HTML_TAG_DIV,
HTML_TAG_DL,
HTML_TAG_DT,
HTML_TAG_EM,
HTML_TAG_FIELDSET,
HTML_TAG_FONT,
HTML_TAG_FORM,
HTML_TAG_FRAME,
HTML_TAG_FRAMESET,
HTML_TAG_H1,
HTML_TAG_H2,
HTML_TAG_H3,
HTML_TAG_H4,
HTML_TAG_H5,
HTML_TAG_H6,
HTML_TAG_HEAD,
HTML_TAG_HR,
HTML_TAG_HTML,
HTML_TAG_I,
HTML_TAG_IFRAME,
HTML_TAG_IMG,
HTML_TAG_INPUT,
HTML_TAG_INS,
HTML_TAG_KBD,
HTML_TAG_LABEL,
HTML_TAG_LEGEND,
HTML_TAG_LI,
HTML_TAG_LINK,
HTML_TAG_MAP,
HTML_TAG_MENU,
HTML_TAG_META,
HTML_TAG_NOFRAMES,
HTML_TAG_NOSCRIPT,
HTML_TAG_OBJECT,
HTML_TAG_OL,
HTML_TAG_OPTGROUP,
HTML_TAG_OPTION,
HTML_TAG_P,
HTML_TAG_PARAM,
HTML_TAG_PRE,
HTML_TAG_Q,
HTML_TAG_S,
HTML_TAG_SAMP,
HTML_TAG_SCRIPT,
HTML_TAG_SELECT,
HTML_TAG_SMALL,
HTML_TAG_SPAN,
HTML_TAG_STRIKE,
HTML_TAG_STRONG,
HTML_TAG_STYLE,
HTML_TAG_SUB,
HTML_TAG_SUP,
HTML_TAG_TABLE,
HTML_TAG_TBODY,
HTML_TAG_TD,
HTML_TAG_TEXTAREA,
HTML_TAG_TFOOT,
HTML_TAG_TH,
HTML_TAG_THEAD,
HTML_TAG_TITLE,
HTML_TAG_TR,
HTML_TAG_TT,
HTML_TAG_U,
HTML_TAG_UL,
HTML_TAG_VAR,
HTML_TAGS,
};
extern const char *html_tag[HTML_TAGS];
#endif