don't discard iframe children.
[kdelibs.git] / khtml / misc / htmltags.c
blob3573d4eb295fa7ec4b16fb0c50831e7031c1a918
1 /* ANSI-C code produced by gperf version 3.0.3 */
2 /* Command-line: gperf -a -L ANSI-C -P -D -E -C -l -o -t -k '*' -NfindTag -Hhash_tag -Wwordlist_tag -Qspool_Tag htmltags.gperf */
4 #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
5 && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
6 && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
7 && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
8 && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
9 && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
10 && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
11 && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
12 && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
13 && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
14 && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
15 && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
16 && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
17 && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
18 && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
19 && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
20 && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
21 && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
22 && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
23 && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
24 && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
25 && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
26 && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
27 /* The character set is not based on ISO-646. */
28 #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
29 #endif
31 #line 1 "htmltags.gperf"
33 /* This file is automatically generated from htmltags.in by maketags, do not edit */
34 /* Copyright 1999 Lars Knoll */
35 #include "htmltags.h"
36 #line 6 "htmltags.gperf"
37 struct tags {
38 int name;
39 int id;
41 /* maximum key range = 295, duplicates = 0 */
43 #ifdef __GNUC__
44 __inline
45 #else
46 #ifdef __cplusplus
47 inline
48 #endif
49 #endif
50 static unsigned int
51 hash_tag (register const char *str, register unsigned int len)
53 static const unsigned short asso_values[] =
55 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
56 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
57 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
58 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
59 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
60 40, 35, 25, 20, 15, 5, 296, 296, 296, 296,
61 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
62 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
63 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
64 296, 296, 296, 296, 296, 296, 296, 15, 10, 35,
65 10, 5, 10, 10, 75, 45, 100, 15, 5, 15,
66 30, 55, 5, 55, 20, 0, 0, 40, 85, 10,
67 5, 50, 296, 296, 296, 296, 296, 296, 296, 296,
68 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
69 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
70 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
71 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
72 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
73 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
74 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
75 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
76 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
77 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
78 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
79 296, 296, 296, 296, 296, 296, 296, 296, 296, 296,
80 296, 296, 296, 296, 296, 296, 296
82 register int hval = len;
84 switch (hval)
86 default:
87 hval += asso_values[(unsigned char)str[9]];
88 /*FALLTHROUGH*/
89 case 9:
90 hval += asso_values[(unsigned char)str[8]];
91 /*FALLTHROUGH*/
92 case 8:
93 hval += asso_values[(unsigned char)str[7]];
94 /*FALLTHROUGH*/
95 case 7:
96 hval += asso_values[(unsigned char)str[6]];
97 /*FALLTHROUGH*/
98 case 6:
99 hval += asso_values[(unsigned char)str[5]];
100 /*FALLTHROUGH*/
101 case 5:
102 hval += asso_values[(unsigned char)str[4]];
103 /*FALLTHROUGH*/
104 case 4:
105 hval += asso_values[(unsigned char)str[3]];
106 /*FALLTHROUGH*/
107 case 3:
108 hval += asso_values[(unsigned char)str[2]];
109 /*FALLTHROUGH*/
110 case 2:
111 hval += asso_values[(unsigned char)str[1]+1];
112 /*FALLTHROUGH*/
113 case 1:
114 hval += asso_values[(unsigned char)str[0]];
115 break;
117 return hval;
120 struct spool_Tag_t
122 char spool_Tag_str0[sizeof("s")];
123 char spool_Tag_str1[sizeof("tr")];
124 char spool_Tag_str2[sizeof("p")];
125 char spool_Tag_str3[sizeof("td")];
126 char spool_Tag_str4[sizeof("b")];
127 char spool_Tag_str5[sizeof("br")];
128 char spool_Tag_str6[sizeof("pre")];
129 char spool_Tag_str7[sizeof("a")];
130 char spool_Tag_str8[sizeof("dd")];
131 char spool_Tag_str9[sizeof("dl")];
132 char spool_Tag_str10[sizeof("del")];
133 char spool_Tag_str11[sizeof("base")];
134 char spool_Tag_str12[sizeof("map")];
135 char spool_Tag_str13[sizeof("samp")];
136 char spool_Tag_str14[sizeof("table")];
137 char spool_Tag_str15[sizeof("em")];
138 char spool_Tag_str16[sizeof("area")];
139 char spool_Tag_str17[sizeof("label")];
140 char spool_Tag_str18[sizeof("u")];
141 char spool_Tag_str19[sizeof("tt")];
142 char spool_Tag_str20[sizeof("xmp")];
143 char spool_Tag_str21[sizeof("meta")];
144 char spool_Tag_str22[sizeof("i")];
145 char spool_Tag_str23[sizeof("th")];
146 char spool_Tag_str24[sizeof("col")];
147 char spool_Tag_str25[sizeof("font")];
148 char spool_Tag_str26[sizeof("frame")];
149 char spool_Tag_str27[sizeof("dt")];
150 char spool_Tag_str28[sizeof("dfn")];
151 char spool_Tag_str29[sizeof("form")];
152 char spool_Tag_str30[sizeof("q")];
153 char spool_Tag_str31[sizeof("ul")];
154 char spool_Tag_str32[sizeof("frameset")];
155 char spool_Tag_str33[sizeof("code")];
156 char spool_Tag_str34[sizeof("small")];
157 char spool_Tag_str35[sizeof("select")];
158 char spool_Tag_str36[sizeof("address")];
159 char spool_Tag_str37[sizeof("kbd")];
160 char spool_Tag_str38[sizeof("embed")];
161 char spool_Tag_str39[sizeof("wbr")];
162 char spool_Tag_str40[sizeof("nobr")];
163 char spool_Tag_str41[sizeof("param")];
164 char spool_Tag_str42[sizeof("ol")];
165 char spool_Tag_str43[sizeof("bdo")];
166 char spool_Tag_str44[sizeof("legend")];
167 char spool_Tag_str45[sizeof("hr")];
168 char spool_Tag_str46[sizeof("textarea")];
169 char spool_Tag_str47[sizeof("body")];
170 char spool_Tag_str48[sizeof("thead")];
171 char spool_Tag_str49[sizeof("h6")];
172 char spool_Tag_str50[sizeof("abbr")];
173 char spool_Tag_str51[sizeof("script")];
174 char spool_Tag_str52[sizeof("noembed")];
175 char spool_Tag_str53[sizeof("img")];
176 char spool_Tag_str54[sizeof("applet")];
177 char spool_Tag_str55[sizeof("h5")];
178 char spool_Tag_str56[sizeof("sup")];
179 char spool_Tag_str57[sizeof("layer")];
180 char spool_Tag_str58[sizeof("h4")];
181 char spool_Tag_str59[sizeof("sub")];
182 char spool_Tag_str60[sizeof("menu")];
183 char spool_Tag_str61[sizeof("h3")];
184 char spool_Tag_str62[sizeof("ins")];
185 char spool_Tag_str63[sizeof("span")];
186 char spool_Tag_str64[sizeof("style")];
187 char spool_Tag_str65[sizeof("center")];
188 char spool_Tag_str66[sizeof("li")];
189 char spool_Tag_str67[sizeof("noframes")];
190 char spool_Tag_str68[sizeof("image")];
191 char spool_Tag_str69[sizeof("source")];
192 char spool_Tag_str70[sizeof("h2")];
193 char spool_Tag_str71[sizeof("head")];
194 char spool_Tag_str72[sizeof("title")];
195 char spool_Tag_str73[sizeof("iframe")];
196 char spool_Tag_str74[sizeof("h1")];
197 char spool_Tag_str75[sizeof("var")];
198 char spool_Tag_str76[sizeof("big")];
199 char spool_Tag_str77[sizeof("tfoot")];
200 char spool_Tag_str78[sizeof("keygen")];
201 char spool_Tag_str79[sizeof("basefont")];
202 char spool_Tag_str80[sizeof("plaintext")];
203 char spool_Tag_str81[sizeof("strike")];
204 char spool_Tag_str82[sizeof("dir")];
205 char spool_Tag_str83[sizeof("nolayer")];
206 char spool_Tag_str84[sizeof("html")];
207 char spool_Tag_str85[sizeof("fieldset")];
208 char spool_Tag_str86[sizeof("cite")];
209 char spool_Tag_str87[sizeof("isindex")];
210 char spool_Tag_str88[sizeof("noscript")];
211 char spool_Tag_str89[sizeof("input")];
212 char spool_Tag_str90[sizeof("link")];
213 char spool_Tag_str91[sizeof("tbody")];
214 char spool_Tag_str92[sizeof("ilayer")];
215 char spool_Tag_str93[sizeof("marquee")];
216 char spool_Tag_str94[sizeof("strong")];
217 char spool_Tag_str95[sizeof("canvas")];
218 char spool_Tag_str96[sizeof("colgroup")];
219 char spool_Tag_str97[sizeof("button")];
220 char spool_Tag_str98[sizeof("caption")];
221 char spool_Tag_str99[sizeof("listing")];
222 char spool_Tag_str100[sizeof("div")];
223 char spool_Tag_str101[sizeof("acronym")];
224 char spool_Tag_str102[sizeof("audio")];
225 char spool_Tag_str103[sizeof("object")];
226 char spool_Tag_str104[sizeof("option")];
227 char spool_Tag_str105[sizeof("optgroup")];
228 char spool_Tag_str106[sizeof("video")];
229 char spool_Tag_str107[sizeof("anchor")];
230 char spool_Tag_str108[sizeof("blockquote")];
232 static const struct spool_Tag_t spool_Tag_contents =
234 "s",
235 "tr",
236 "p",
237 "td",
238 "b",
239 "br",
240 "pre",
241 "a",
242 "dd",
243 "dl",
244 "del",
245 "base",
246 "map",
247 "samp",
248 "table",
249 "em",
250 "area",
251 "label",
252 "u",
253 "tt",
254 "xmp",
255 "meta",
256 "i",
257 "th",
258 "col",
259 "font",
260 "frame",
261 "dt",
262 "dfn",
263 "form",
264 "q",
265 "ul",
266 "frameset",
267 "code",
268 "small",
269 "select",
270 "address",
271 "kbd",
272 "embed",
273 "wbr",
274 "nobr",
275 "param",
276 "ol",
277 "bdo",
278 "legend",
279 "hr",
280 "textarea",
281 "body",
282 "thead",
283 "h6",
284 "abbr",
285 "script",
286 "noembed",
287 "img",
288 "applet",
289 "h5",
290 "sup",
291 "layer",
292 "h4",
293 "sub",
294 "menu",
295 "h3",
296 "ins",
297 "span",
298 "style",
299 "center",
300 "li",
301 "noframes",
302 "image",
303 "source",
304 "h2",
305 "head",
306 "title",
307 "iframe",
308 "h1",
309 "var",
310 "big",
311 "tfoot",
312 "keygen",
313 "basefont",
314 "plaintext",
315 "strike",
316 "dir",
317 "nolayer",
318 "html",
319 "fieldset",
320 "cite",
321 "isindex",
322 "noscript",
323 "input",
324 "link",
325 "tbody",
326 "ilayer",
327 "marquee",
328 "strong",
329 "canvas",
330 "colgroup",
331 "button",
332 "caption",
333 "listing",
334 "div",
335 "acronym",
336 "audio",
337 "object",
338 "option",
339 "optgroup",
340 "video",
341 "anchor",
342 "blockquote"
344 #define spool_Tag ((const char *) &spool_Tag_contents)
345 #ifdef __GNUC__
346 __inline
347 #ifdef __GNUC_STDC_INLINE__
348 __attribute__ ((__gnu_inline__))
349 #endif
350 #endif
351 const struct tags *
352 findTag (register const char *str, register unsigned int len)
354 enum
356 TOTAL_KEYWORDS = 109,
357 MIN_WORD_LENGTH = 1,
358 MAX_WORD_LENGTH = 10,
359 MIN_HASH_VALUE = 1,
360 MAX_HASH_VALUE = 295
363 static const unsigned char lengthtable[] =
365 1, 2, 1, 2, 1, 2, 3, 1, 2, 2, 3, 4, 3, 4,
366 5, 2, 4, 5, 1, 2, 3, 4, 1, 2, 3, 4, 5, 2,
367 3, 4, 1, 2, 8, 4, 5, 6, 7, 3, 5, 3, 4, 5,
368 2, 3, 6, 2, 8, 4, 5, 2, 4, 6, 7, 3, 6, 2,
369 3, 5, 2, 3, 4, 2, 3, 4, 5, 6, 2, 8, 5, 6,
370 2, 4, 5, 6, 2, 3, 3, 5, 6, 8, 9, 6, 3, 7,
371 4, 8, 4, 7, 8, 5, 4, 5, 6, 7, 6, 6, 8, 6,
372 7, 7, 3, 7, 5, 6, 6, 8, 5, 6, 10
374 static const struct tags wordlist_tag[] =
376 #line 89 "htmltags.gperf"
377 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str0, ID_S},
378 #line 109 "htmltags.gperf"
379 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str1, ID_TR},
380 #line 84 "htmltags.gperf"
381 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str2, ID_P},
382 #line 103 "htmltags.gperf"
383 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str3, ID_TD},
384 #line 18 "htmltags.gperf"
385 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str4, ID_B},
386 #line 25 "htmltags.gperf"
387 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str5, ID_BR},
388 #line 87 "htmltags.gperf"
389 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str6, ID_PRE},
390 #line 11 "htmltags.gperf"
391 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str7, ID_A},
392 #line 34 "htmltags.gperf"
393 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str8, ID_DD},
394 #line 39 "htmltags.gperf"
395 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str9, ID_DL},
396 #line 35 "htmltags.gperf"
397 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str10, ID_DEL},
398 #line 19 "htmltags.gperf"
399 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str11, ID_BASE},
400 #line 71 "htmltags.gperf"
401 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str12, ID_MAP},
402 #line 90 "htmltags.gperf"
403 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str13, ID_SAMP},
404 #line 101 "htmltags.gperf"
405 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str14, ID_TABLE},
406 #line 41 "htmltags.gperf"
407 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str15, ID_EM},
408 #line 16 "htmltags.gperf"
409 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str16, ID_AREA},
410 #line 66 "htmltags.gperf"
411 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str17, ID_LABEL},
412 #line 111 "htmltags.gperf"
413 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str18, ID_U},
414 #line 110 "htmltags.gperf"
415 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str19, ID_TT},
416 #line 116 "htmltags.gperf"
417 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str20, ID_XMP},
418 #line 74 "htmltags.gperf"
419 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str21, ID_META},
420 #line 57 "htmltags.gperf"
421 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str22, ID_I},
422 #line 106 "htmltags.gperf"
423 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str23, ID_TH},
424 #line 32 "htmltags.gperf"
425 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str24, ID_COL},
426 #line 44 "htmltags.gperf"
427 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str25, ID_FONT},
428 #line 46 "htmltags.gperf"
429 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str26, ID_FRAME},
430 #line 40 "htmltags.gperf"
431 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str27, ID_DT},
432 #line 36 "htmltags.gperf"
433 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str28, ID_DFN},
434 #line 45 "htmltags.gperf"
435 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str29, ID_FORM},
436 #line 88 "htmltags.gperf"
437 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str30, ID_Q},
438 #line 112 "htmltags.gperf"
439 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str31, ID_UL},
440 #line 47 "htmltags.gperf"
441 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str32, ID_FRAMESET},
442 #line 31 "htmltags.gperf"
443 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str33, ID_CODE},
444 #line 93 "htmltags.gperf"
445 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str34, ID_SMALL},
446 #line 92 "htmltags.gperf"
447 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str35, ID_SELECT},
448 #line 14 "htmltags.gperf"
449 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str36, ID_ADDRESS},
450 #line 64 "htmltags.gperf"
451 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str37, ID_KBD},
452 #line 42 "htmltags.gperf"
453 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str38, ID_EMBED},
454 #line 115 "htmltags.gperf"
455 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str39, ID_WBR},
456 #line 75 "htmltags.gperf"
457 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str40, ID_NOBR},
458 #line 85 "htmltags.gperf"
459 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str41, ID_PARAM},
460 #line 81 "htmltags.gperf"
461 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str42, ID_OL},
462 #line 21 "htmltags.gperf"
463 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str43, ID_BDO},
464 #line 68 "htmltags.gperf"
465 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str44, ID_LEGEND},
466 #line 55 "htmltags.gperf"
467 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str45, ID_HR},
468 #line 104 "htmltags.gperf"
469 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str46, ID_TEXTAREA},
470 #line 24 "htmltags.gperf"
471 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str47, ID_BODY},
472 #line 107 "htmltags.gperf"
473 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str48, ID_THEAD},
474 #line 53 "htmltags.gperf"
475 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str49, ID_H6},
476 #line 12 "htmltags.gperf"
477 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str50, ID_ABBR},
478 #line 91 "htmltags.gperf"
479 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str51, ID_SCRIPT},
480 #line 76 "htmltags.gperf"
481 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str52, ID_NOEMBED},
482 #line 60 "htmltags.gperf"
483 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str53, ID_IMG},
484 #line 15 "htmltags.gperf"
485 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str54, ID_APPLET},
486 #line 52 "htmltags.gperf"
487 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str55, ID_H5},
488 #line 100 "htmltags.gperf"
489 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str56, ID_SUP},
490 #line 67 "htmltags.gperf"
491 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str57, ID_LAYER},
492 #line 51 "htmltags.gperf"
493 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str58, ID_H4},
494 #line 99 "htmltags.gperf"
495 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str59, ID_SUB},
496 #line 73 "htmltags.gperf"
497 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str60, ID_MENU},
498 #line 50 "htmltags.gperf"
499 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str61, ID_H3},
500 #line 62 "htmltags.gperf"
501 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str62, ID_INS},
502 #line 95 "htmltags.gperf"
503 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str63, ID_SPAN},
504 #line 98 "htmltags.gperf"
505 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str64, ID_STYLE},
506 #line 29 "htmltags.gperf"
507 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str65, ID_CENTER},
508 #line 69 "htmltags.gperf"
509 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str66, ID_LI},
510 #line 77 "htmltags.gperf"
511 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str67, ID_NOFRAMES},
512 #line 118 "htmltags.gperf"
513 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str68, ID_IMG},
514 #line 94 "htmltags.gperf"
515 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str69, ID_SOURCE},
516 #line 49 "htmltags.gperf"
517 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str70, ID_H2},
518 #line 54 "htmltags.gperf"
519 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str71, ID_HEAD},
520 #line 108 "htmltags.gperf"
521 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str72, ID_TITLE},
522 #line 58 "htmltags.gperf"
523 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str73, ID_IFRAME},
524 #line 48 "htmltags.gperf"
525 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str74, ID_H1},
526 #line 113 "htmltags.gperf"
527 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str75, ID_VAR},
528 #line 22 "htmltags.gperf"
529 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str76, ID_BIG},
530 #line 105 "htmltags.gperf"
531 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str77, ID_TFOOT},
532 #line 65 "htmltags.gperf"
533 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str78, ID_KEYGEN},
534 #line 20 "htmltags.gperf"
535 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str79, ID_BASEFONT},
536 #line 86 "htmltags.gperf"
537 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str80, ID_PLAINTEXT},
538 #line 96 "htmltags.gperf"
539 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str81, ID_STRIKE},
540 #line 37 "htmltags.gperf"
541 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str82, ID_DIR},
542 #line 79 "htmltags.gperf"
543 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str83, ID_NOLAYER},
544 #line 56 "htmltags.gperf"
545 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str84, ID_HTML},
546 #line 43 "htmltags.gperf"
547 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str85, ID_FIELDSET},
548 #line 30 "htmltags.gperf"
549 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str86, ID_CITE},
550 #line 63 "htmltags.gperf"
551 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str87, ID_ISINDEX},
552 #line 78 "htmltags.gperf"
553 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str88, ID_NOSCRIPT},
554 #line 61 "htmltags.gperf"
555 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str89, ID_INPUT},
556 #line 70 "htmltags.gperf"
557 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str90, ID_LINK},
558 #line 102 "htmltags.gperf"
559 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str91, ID_TBODY},
560 #line 59 "htmltags.gperf"
561 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str92, ID_ILAYER},
562 #line 72 "htmltags.gperf"
563 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str93, ID_MARQUEE},
564 #line 97 "htmltags.gperf"
565 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str94, ID_STRONG},
566 #line 27 "htmltags.gperf"
567 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str95, ID_CANVAS},
568 #line 33 "htmltags.gperf"
569 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str96, ID_COLGROUP},
570 #line 26 "htmltags.gperf"
571 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str97, ID_BUTTON},
572 #line 28 "htmltags.gperf"
573 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str98, ID_CAPTION},
574 #line 119 "htmltags.gperf"
575 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str99, ID_PRE},
576 #line 38 "htmltags.gperf"
577 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str100, ID_DIV},
578 #line 13 "htmltags.gperf"
579 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str101, ID_ACRONYM},
580 #line 17 "htmltags.gperf"
581 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str102, ID_AUDIO},
582 #line 80 "htmltags.gperf"
583 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str103, ID_OBJECT},
584 #line 83 "htmltags.gperf"
585 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str104, ID_OPTION},
586 #line 82 "htmltags.gperf"
587 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str105, ID_OPTGROUP},
588 #line 114 "htmltags.gperf"
589 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str106, ID_VIDEO},
590 #line 117 "htmltags.gperf"
591 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str107, ID_A},
592 #line 23 "htmltags.gperf"
593 {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str108, ID_BLOCKQUOTE}
596 static const signed char lookup[] =
598 -1, 0, 1, -1, -1, -1, 2, 3, -1, -1,
599 -1, 4, 5, 6, -1, -1, 7, 8, -1, -1,
600 -1, -1, -1, -1, -1, -1, -1, 9, 10, 11,
601 -1, -1, -1, 12, 13, 14, -1, 15, -1, 16,
602 17, 18, 19, 20, 21, -1, 22, 23, 24, 25,
603 26, -1, 27, 28, 29, -1, 30, 31, 32, 33,
604 34, 35, 36, 37, -1, 38, -1, -1, 39, 40,
605 41, -1, 42, 43, -1, -1, 44, 45, 46, 47,
606 48, -1, 49, -1, 50, -1, 51, 52, 53, -1,
607 -1, 54, 55, 56, -1, 57, -1, 58, 59, 60,
608 -1, -1, 61, 62, 63, 64, 65, 66, 67, -1,
609 68, 69, 70, -1, 71, 72, 73, 74, 75, -1,
610 -1, -1, -1, 76, -1, 77, 78, -1, 79, 80,
611 -1, 81, -1, 82, -1, -1, -1, 83, -1, 84,
612 -1, -1, -1, 85, 86, -1, -1, 87, 88, -1,
613 89, -1, -1, -1, 90, 91, 92, 93, -1, -1,
614 -1, 94, -1, -1, -1, -1, -1, -1, -1, -1,
615 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
616 -1, 95, -1, 96, -1, -1, 97, 98, -1, -1,
617 -1, -1, -1, -1, -1, -1, -1, 99, 100, -1,
618 -1, -1, 101, -1, -1, -1, -1, -1, -1, -1,
619 -1, -1, -1, -1, -1, 102, -1, -1, -1, -1,
620 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
621 -1, -1, -1, -1, -1, -1, 103, -1, -1, -1,
622 -1, -1, -1, -1, -1, -1, 104, -1, 105, -1,
623 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
624 106, 107, -1, -1, -1, -1, -1, -1, -1, -1,
625 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
626 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
627 -1, -1, -1, -1, -1, 108
630 if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
632 register int key = hash_tag (str, len);
634 if (key <= MAX_HASH_VALUE && key >= 0)
636 register int index = lookup[key];
638 if (index >= 0)
640 if (len == lengthtable[index])
642 register const char *s = wordlist_tag[index].name + spool_Tag;
644 if (*str == *s && !memcmp (str + 1, s + 1, len - 1))
645 return &wordlist_tag[index];
650 return 0;
652 #line 120 "htmltags.gperf"
656 static const char tagStable[] = {
657 "\000/a\000/abbr\000/acronym\000/address\000/applet\000/area\000/audio"
658 "\000/b\000/base\000/basefont\000/bdo\000/big\000/blockquote\000/body"
659 "\000/br\000/button\000/canvas\000/caption\000/center\000/cite"
660 "\000/code\000/col\000/colgroup\000/dd\000/del\000/dfn\000/dir"
661 "\000/div\000/dl\000/dt\000/em\000/embed\000/fieldset\000/font"
662 "\000/form\000/frame\000/frameset\000/h1\000/h2\000/h3\000/h4\000/h5"
663 "\000/h6\000/head\000/hr\000/html\000/i\000/iframe\000/ilayer\000/img"
664 "\000/input\000/ins\000/isindex\000/kbd\000/keygen\000/label\000/layer"
665 "\000/legend\000/li\000/link\000/map\000/marquee\000/menu\000/meta"
666 "\000/nobr\000/noembed\000/noframes\000/noscript\000/nolayer\000/object"
667 "\000/ol\000/optgroup\000/option\000/p\000/param\000/plaintext"
668 "\000/pre\000/q\000/s\000/samp\000/script\000/select\000/small"
669 "\000/source\000/span\000/strike\000/strong\000/style\000/sub\000/sup"
670 "\000/table\000/tbody\000/td\000/textarea\000/tfoot\000/th\000/thead"
671 "\000/title\000/tr\000/tt\000/u\000/ul\000/var\000/video\000/wbr"
672 "\000/xmp\000/text\000/comment\000"
675 static const unsigned short tagSList[] = {
678 2, 5, 11, 20, 29, 37, 43, 50, 53, 59, 69, 74,
679 79, 91, 97, 101, 109, 117, 126, 134, 140, 146, 151, 161,
680 165, 170, 175, 180, 185, 189, 193, 197, 204, 214, 220, 226,
681 233, 243, 247, 251, 255, 259, 263, 267, 273, 277, 283, 286,
682 294, 302, 307, 314, 319, 328, 333, 341, 348, 355, 363, 367,
683 373, 378, 387, 393, 399, 405, 414, 424, 434, 443, 451, 455,
684 465, 473, 476, 483, 494, 499, 502, 505, 511, 519, 527, 534,
685 542, 548, 556, 564, 571, 576, 581, 588, 595, 599, 609, 616,
686 620, 627, 634, 638, 642, 645, 649, 654, 661, 666, 671, 677,
687 1, 4, 10, 19, 28, 36, 42, 49, 52, 58, 68, 73,
688 78, 90, 96, 100, 108, 116, 125, 133, 139, 145, 150, 160,
689 164, 169, 174, 179, 184, 188, 192, 196, 203, 213, 219, 225,
690 232, 242, 246, 250, 254, 258, 262, 266, 272, 276, 282, 285,
691 293, 301, 306, 313, 318, 327, 332, 340, 347, 354, 362, 366,
692 372, 377, 386, 392, 398, 404, 413, 423, 433, 442, 450, 454,
693 464, 472, 475, 482, 493, 498, 501, 504, 510, 518, 526, 533,
694 541, 547, 555, 563, 570, 575, 580, 587, 594, 598, 608, 615,
695 619, 626, 633, 637, 641, 644, 648, 653, 660, 665, 670, 676, 0
698 const char* KDE_NO_EXPORT getTagName(unsigned short id)
700 if(id > ID_CLOSE_TAG*2) id = ID_CLOSE_TAG+1;
701 return &tagStable[tagSList[id]];