📄 htmltags.c
字号:
TOTAL_KEYWORDS = 105, MIN_WORD_LENGTH = 1, MAX_WORD_LENGTH = 10, MIN_HASH_VALUE = 1, MAX_HASH_VALUE = 345 }; static const unsigned char lengthtable[] = { 1, 2, 1, 2, 1, 2, 3, 1, 2, 2, 3, 4, 3, 4, 5, 2, 4, 5, 1, 2, 3, 4, 3, 4, 5, 1, 3, 4, 2, 8, 4, 5, 6, 7, 3, 4, 5, 6, 2, 3, 4, 5, 2, 3, 5, 2, 3, 5, 6, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 2, 4, 6, 2, 3, 5, 6, 2, 8, 2, 8, 4, 6, 2, 7, 8, 2, 3, 3, 9, 5, 6, 4, 5, 8, 7, 4, 7, 3, 4, 7, 7, 5, 6, 6, 6, 7, 3, 6, 8, 6, 6, 8, 10 }; static const struct tags wordlist_tag[] = {#line 87 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str0, ID_S},#line 106 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str1, ID_TR},#line 82 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str2, ID_P},#line 100 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str3, ID_TD},#line 17 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str4, ID_B},#line 24 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str5, ID_BR},#line 85 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str6, ID_PRE},#line 11 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str7, ID_A},#line 32 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str8, ID_DD},#line 37 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str9, ID_DL},#line 33 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str10, ID_DEL},#line 18 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str11, ID_BASE},#line 69 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str12, ID_MAP},#line 88 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str13, ID_SAMP},#line 98 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str14, ID_TABLE},#line 39 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str15, ID_EM},#line 16 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str16, ID_AREA},#line 64 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str17, ID_LABEL},#line 55 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str18, ID_I},#line 103 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str19, ID_TH},#line 34 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str20, ID_DFN},#line 72 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str21, ID_META},#line 30 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str22, ID_COL},#line 42 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str23, ID_FONT},#line 44 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str24, ID_FRAME},#line 86 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str25, ID_Q},#line 112 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str26, ID_XMP},#line 43 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str27, ID_FORM},#line 53 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str28, ID_HR},#line 45 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str29, ID_FRAMESET},#line 29 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str30, ID_CODE},#line 91 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str31, ID_SMALL},#line 90 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str32, ID_SELECT},#line 14 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str33, ID_ADDRESS},#line 111 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str34, ID_WBR},#line 23 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str35, ID_BODY},#line 40 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str36, ID_EMBED},#line 66 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str37, ID_LEGEND},#line 79 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str38, ID_OL},#line 20 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str39, ID_BDO},#line 73 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str40, ID_NOBR},#line 83 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str41, ID_PARAM},#line 51 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str42, ID_H6},#line 58 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str43, ID_IMG},#line 104 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str44, ID_THEAD},#line 67 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str45, ID_LI},#line 62 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str46, ID_KBD},#line 65 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str47, ID_LAYER},#line 89 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str48, ID_SCRIPT},#line 50 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str49, ID_H5},#line 21 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str50, ID_BIG},#line 12 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str51, ID_ABBR},#line 105 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str52, ID_TITLE},#line 15 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str53, ID_APPLET},#line 74 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str54, ID_NOEMBED},#line 101 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str55, ID_TEXTAREA},#line 108 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str56, ID_U},#line 107 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str57, ID_TT},#line 60 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str58, ID_INS},#line 52 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str59, ID_HEAD},#line 114 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str60, ID_IMG},#line 49 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str61, ID_H4},#line 92 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str62, ID_SPAN},#line 56 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str63, ID_IFRAME},#line 38 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str64, ID_DT},#line 35 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str65, ID_DIR},#line 102 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str66, ID_TFOOT},#line 27 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str67, ID_CENTER},#line 109 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str68, ID_UL},#line 75 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str69, ID_NOFRAMES},#line 48 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str70, ID_H3},#line 41 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str71, ID_FIELDSET},#line 28 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str72, ID_CITE},#line 63 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str73, ID_KEYGEN},#line 47 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str74, ID_H2},#line 77 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str75, ID_NOLAYER},#line 19 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str76, ID_BASEFONT},#line 46 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str77, ID_H1},#line 97 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str78, ID_SUP},#line 96 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str79, ID_SUB},#line 84 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str80, ID_PLAINTEXT},#line 99 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str81, ID_TBODY},#line 57 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str82, ID_ILAYER},#line 68 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str83, ID_LINK},#line 95 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str84, ID_STYLE},#line 76 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str85, ID_NOSCRIPT},#line 61 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str86, ID_ISINDEX},#line 71 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str87, ID_MENU},#line 115 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str88, ID_PRE},#line 110 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str89, ID_VAR},#line 54 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str90, ID_HTML},#line 26 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str91, ID_CAPTION},#line 13 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str92, ID_ACRONYM},#line 59 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str93, ID_INPUT},#line 93 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str94, ID_STRIKE},#line 94 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str95, ID_STRONG},#line 78 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str96, ID_OBJECT},#line 70 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str97, ID_MARQUEE},#line 36 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str98, ID_DIV},#line 25 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str99, ID_BUTTON},#line 31 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str100, ID_COLGROUP},#line 81 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str101, ID_OPTION},#line 113 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str102, ID_A},#line 80 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str103, ID_OPTGROUP},#line 22 "htmltags.gperf" {(int)(long)&((struct spool_Tag_t *)0)->spool_Tag_str104, ID_BLOCKQUOTE} }; static const signed char lookup[] = { -1, 0, 1, -1, -1, -1, 2, 3, -1, -1, -1, 4, 5, 6, -1, -1, 7, 8, -1, -1, -1, -1, -1, -1, -1, -1, -1, 9, 10, 11, -1, -1, -1, 12, 13, 14, -1, 15, -1, 16, 17, 18, 19, 20, 21, -1, -1, -1, 22, 23, 24, 25, -1, 26, 27, -1, -1, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, -1, 42, 43, -1, 44, -1, 45, 46, -1, 47, 48, 49, 50, 51, 52, 53, 54, 55, -1, -1, 56, 57, 58, 59, 60, -1, 61, -1, 62, -1, 63, 64, 65, -1, 66, 67, 68, 69, -1, -1, -1, 70, 71, 72, -1, 73, 74, -1, -1, -1, -1, 75, 76, -1, -1, -1, 77, 78, -1, -1, -1, -1, 79, 80, 81, 82, -1, -1, 83, 84, -1, -1, 85, -1, -1, -1, 86, -1, 87, -1, -1, 88, 89, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 90, -1, -1, -1, -1, -1, -1, -1, 91, -1, -1, -1, -1, 92, -1, -1, -1, -1, -1, -1, -1, 93, 94, -1, -1, -1, -1, 95, -1, -1, -1, -1, 96, 97, 98, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 99, -1, 100, -1, -1, -1, -1, -1, -1, -1, 101, -1, -1, -1, -1, 102, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 103, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 104 }; if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) { register int key = hash_tag (str, len); if (key <= MAX_HASH_VALUE && key >= 0) { register int index = lookup[key]; if (index >= 0) { if (len == lengthtable[index]) { register const char *s = wordlist_tag[index].name + spool_Tag; if (*str == *s && !memcmp (str + 1, s + 1, len - 1)) return &wordlist_tag[index]; } } } } return 0;}#line 116 "htmltags.gperf"static const char tagStable[] = { "\000/a\000/abbr\000/acronym\000/address\000/applet\000/area\000/b" "\000/base\000/basefont\000/bdo\000/big\000/blockquote\000/body" "\000/br\000/button\000/caption\000/center\000/cite\000/code\000/col" "\000/colgroup\000/dd\000/del\000/dfn\000/dir\000/div\000/dl\000/dt" "\000/em\000/embed\000/fieldset\000/font\000/form\000/frame\000/frameset" "\000/h1\000/h2\000/h3\000/h4\000/h5\000/h6\000/head\000/hr\000/html" "\000/i\000/iframe\000/ilayer\000/img\000/input\000/ins\000/isindex" "\000/kbd\000/keygen\000/label\000/layer\000/legend\000/li\000/link" "\000/map\000/marquee\000/menu\000/meta\000/nobr\000/noembed\000/noframes" "\000/noscript\000/nolayer\000/object\000/ol\000/optgroup\000/option" "\000/p\000/param\000/plaintext\000/pre\000/q\000/s\000/samp\000/script" "\000/select\000/small\000/span\000/strike\000/strong\000/style" "\000/sub\000/sup\000/table\000/tbody\000/td\000/textarea\000/tfoot" "\000/th\000/thead\000/title\000/tr\000/tt\000/u\000/ul\000/var" "\000/wbr\000/xmp\000/text\000/comment\000"};static const unsigned short tagSList[] = { 0, 2, 5, 11, 20, 29, 37, 43, 46, 52, 62, 67, 72, 84, 90, 94, 102, 111, 119, 125, 131, 136, 146, 150, 155, 160, 165, 170, 174, 178, 182, 189, 199, 205, 211, 218, 228, 232, 236, 240, 244, 248, 252, 258, 262, 268, 271, 279, 287, 292, 299, 304, 313, 318, 326, 333, 340, 348, 352, 358, 363, 372, 378, 384, 390, 399, 409, 419, 428, 436, 440, 450, 458, 461, 468, 479, 484, 487, 490, 496, 504, 512, 519, 525, 533, 541, 548, 553, 558, 565, 572, 576, 586, 593, 597, 604, 611, 615, 619, 622, 626, 631, 636, 641, 647, 1, 4, 10, 19, 28, 36, 42, 45, 51, 61, 66, 71, 83, 89, 93, 101, 110, 118, 124, 130, 135, 145, 149, 154, 159, 164, 169, 173, 177, 181, 188, 198, 204, 210, 217, 227, 231, 235, 239, 243, 247, 251, 257, 261, 267, 270, 278, 286, 291, 298, 303, 312, 317, 325, 332, 339, 347, 351, 357, 362, 371, 377, 383, 389, 398, 408, 418, 427, 435, 439, 449, 457, 460, 467, 478, 483, 486, 489, 495, 503, 511, 518, 524, 532, 540, 547, 552, 557, 564, 571, 575, 585, 592, 596, 603, 610, 614, 618, 621, 625, 630, 635, 640, 646, 0};const char* KDE_NO_EXPORT getTagName(unsigned short id){ if(id > ID_CLOSE_TAG*2) id = ID_CLOSE_TAG+1; return &tagStable[tagSList[id]];}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -