📄 htmlattrs.c
字号:
/* ANSI-C code produced by gperf version 3.0.1 */
/* Command-line: gperf -c -a -L ANSI-C -D -E -C -o -t -k '*' -NfindAttr -Hhash_attr -Wwordlist_attr -s 2 htmlattrs.gperf */
#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
&& ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
&& (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
&& ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
&& ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
&& ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
&& ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
&& ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
&& ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
&& ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
&& ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
&& ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
&& ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
&& ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
&& ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
&& ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
&& ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
&& ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
&& ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
&& ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
&& ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
&& ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
&& ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
/* The character set is not based on ISO-646. */
#error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
#endif
#line 1 "htmlattrs.gperf"
/* This file is automatically generated from
#htmlattrs.in by makeattrs, do not edit */
/* Copyright 1999 Lars Knoll */
#include "htmlattrs.h"
#line 7 "htmlattrs.gperf"
struct attrs {
const char *name;
int id;
};
/* maximum key range = 705, duplicates = 0 */
#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
hash_attr (register const char *str, register unsigned int len)
{
static const unsigned short asso_values[] =
{
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 10, 10, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 10, 25, 5,
0, 5, 60, 40, 140, 30, 135, 210, 15, 35,
90, 0, 0, 0, 0, 0, 0, 85, 150, 225,
70, 10, 20, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708, 708, 708, 708,
708, 708, 708, 708, 708, 708, 708
};
register int hval = len;
switch (hval)
{
default:
hval += asso_values[(unsigned char)str[14]];
/*FALLTHROUGH*/
case 14:
hval += asso_values[(unsigned char)str[13]];
/*FALLTHROUGH*/
case 13:
hval += asso_values[(unsigned char)str[12]];
/*FALLTHROUGH*/
case 12:
hval += asso_values[(unsigned char)str[11]];
/*FALLTHROUGH*/
case 11:
hval += asso_values[(unsigned char)str[10]];
/*FALLTHROUGH*/
case 10:
hval += asso_values[(unsigned char)str[9]];
/*FALLTHROUGH*/
case 9:
hval += asso_values[(unsigned char)str[8]];
/*FALLTHROUGH*/
case 8:
hval += asso_values[(unsigned char)str[7]];
/*FALLTHROUGH*/
case 7:
hval += asso_values[(unsigned char)str[6]];
/*FALLTHROUGH*/
case 6:
hval += asso_values[(unsigned char)str[5]];
/*FALLTHROUGH*/
case 5:
hval += asso_values[(unsigned char)str[4]];
/*FALLTHROUGH*/
case 4:
hval += asso_values[(unsigned char)str[3]];
/*FALLTHROUGH*/
case 3:
hval += asso_values[(unsigned char)str[2]];
/*FALLTHROUGH*/
case 2:
hval += asso_values[(unsigned char)str[1]+1];
/*FALLTHROUGH*/
case 1:
hval += asso_values[(unsigned char)str[0]];
break;
}
return hval;
}
#ifdef __GNUC__
__inline
#endif
const struct attrs *
findAttr (register const char *str, register unsigned int len)
{
enum
{
TOTAL_KEYWORDS = 181,
MIN_WORD_LENGTH = 2,
MAX_WORD_LENGTH = 15,
MIN_HASH_VALUE = 3,
MAX_HASH_VALUE = 707
};
static const struct attrs wordlist_attr[] =
{
#line 177 "htmlattrs.gperf"
{"top", ATTR_TOP},
#line 118 "htmlattrs.gperf"
{"ondrop", ATTR_ONDROP},
#line 167 "htmlattrs.gperf"
{"src", ATTR_SRC},
#line 159 "htmlattrs.gperf"
{"scope", ATTR_SCOPE},
#line 52 "htmlattrs.gperf"
{"coords", ATTR_COORDS},
#line 119 "htmlattrs.gperf"
{"onerror", ATTR_ONERROR},
#line 42 "htmlattrs.gperf"
{"code", ATTR_CODE},
#line 132 "htmlattrs.gperf"
{"onreset", ATTR_ONRESET},
#line 84 "htmlattrs.gperf"
{"loop", ATTR_LOOP},
#line 109 "htmlattrs.gperf"
{"oncopy", ATTR_ONCOPY},
#line 131 "htmlattrs.gperf"
{"onpaste", ATTR_ONPASTE},
#line 46 "htmlattrs.gperf"
{"cols", ATTR_COLS},
#line 45 "htmlattrs.gperf"
{"color", ATTR_COLOR},
#line 14 "htmlattrs.gperf"
{"accept", ATTR_ACCEPT},
#line 180 "htmlattrs.gperf"
{"type", ATTR_TYPE},
#line 125 "htmlattrs.gperf"
{"onload", ATTR_ONLOAD},
#line 60 "htmlattrs.gperf"
{"enctype", ATTR_ENCTYPE},
#line 44 "htmlattrs.gperf"
{"codetype", ATTR_CODETYPE},
#line 28 "htmlattrs.gperf"
{"border", ATTR_BORDER},
#line 73 "htmlattrs.gperf"
{"id", ATTR_ID},
#line 136 "htmlattrs.gperf"
{"onselect", ATTR_ONSELECT},
#line 53 "htmlattrs.gperf"
{"data", ATTR_DATA},
#line 150 "htmlattrs.gperf"
{"prompt", ATTR_PROMPT},
#line 101 "htmlattrs.gperf"
{"onabort", ATTR_ONABORT},
#line 134 "htmlattrs.gperf"
{"onscroll", ATTR_ONSCROLL},
#line 12 "htmlattrs.gperf"
{"abbr", ATTR_ABBR},
#line 19 "htmlattrs.gperf"
{"alt", ATTR_ALT},
#line 32 "htmlattrs.gperf"
{"char", ATTR_CHAR},
#line 164 "htmlattrs.gperf"
{"shape", ATTR_SHAPE},
#line 137 "htmlattrs.gperf"
{"onselectstart", ATTR_ONSELECTSTART},
#line 23 "htmlattrs.gperf"
{"axis", ATTR_AXIS},
#line 39 "htmlattrs.gperf"
{"class", ATTR_CLASS},
#line 112 "htmlattrs.gperf"
{"ondrag", ATTR_ONDRAG},
#line 35 "htmlattrs.gperf"
{"charset", ATTR_CHARSET},
#line 43 "htmlattrs.gperf"
{"codebase", ATTR_CODEBASE},
#line 41 "htmlattrs.gperf"
{"clear", ATTR_CLEAR},
#line 29 "htmlattrs.gperf"
{"bordercolor", ATTR_BORDERCOLOR},
#line 48 "htmlattrs.gperf"
{"compact", ATTR_COMPACT},
#line 62 "htmlattrs.gperf"
{"for", ATTR_FOR},
#line 133 "htmlattrs.gperf"
{"onresize", ATTR_ONRESIZE},
#line 117 "htmlattrs.gperf"
{"ondragstart", ATTR_ONDRAGSTART},
#line 174 "htmlattrs.gperf"
{"target", ATTR_TARGET},
#line 152 "htmlattrs.gperf"
{"rel", ATTR_REL},
#line 75 "htmlattrs.gperf"
{"ismap", ATTR_ISMAP},
#line 161 "htmlattrs.gperf"
{"scrolldelay", ATTR_SCROLLDELAY},
#line 49 "htmlattrs.gperf"
{"composite", ATTR_COMPOSITE},
#line 142 "htmlattrs.gperf"
{"pagey", ATTR_PAGEY},
#line 40 "htmlattrs.gperf"
{"classid", ATTR_CLASSID},
#line 77 "htmlattrs.gperf"
{"label", ATTR_LABEL},
#line 110 "htmlattrs.gperf"
{"oncut", ATTR_ONCUT},
#line 163 "htmlattrs.gperf"
{"selected", ATTR_SELECTED},
#line 61 "htmlattrs.gperf"
{"face", ATTR_FACE},
#line 169 "htmlattrs.gperf"
{"start", ATTR_START},
#line 55 "htmlattrs.gperf"
{"declare", ATTR_DECLARE},
#line 166 "htmlattrs.gperf"
{"span", ATTR_SPAN},
#line 54 "htmlattrs.gperf"
{"datetime", ATTR_DATETIME},
#line 179 "htmlattrs.gperf"
{"truespeed", ATTR_TRUESPEED},
#line 173 "htmlattrs.gperf"
{"tableborder", ATTR_TABLEBORDER},
#line 89 "htmlattrs.gperf"
{"mayscript", ATTR_MAYSCRIPT},
#line 63 "htmlattrs.gperf"
{"frame", ATTR_FRAME},
#line 149 "htmlattrs.gperf"
{"profile", ATTR_PROFILE},
#line 170 "htmlattrs.gperf"
{"style", ATTR_STYLE},
#line 102 "htmlattrs.gperf"
{"onbeforecopy", ATTR_ONBEFORECOPY},
#line 104 "htmlattrs.gperf"
{"onbeforepaste", ATTR_ONBEFOREPASTE},
#line 47 "htmlattrs.gperf"
{"colspan", ATTR_COLSPAN},
#line 56 "htmlattrs.gperf"
{"defer", ATTR_DEFER},
#line 105 "htmlattrs.gperf"
{"onblur", ATTR_ONBLUR},
#line 87 "htmlattrs.gperf"
{"max", ATTR_MAX},
#line 175 "htmlattrs.gperf"
{"text", ATTR_TEXT},
#line 37 "htmlattrs.gperf"
{"cellborder", ATTR_CELLBORDER},
#line 16 "htmlattrs.gperf"
{"action", ATTR_ACTION},
#line 57 "htmlattrs.gperf"
{"dir", ATTR_DIR},
#line 80 "htmlattrs.gperf"
{"left", ATTR_LEFT},
#line 90 "htmlattrs.gperf"
{"media", ATTR_MEDIA},
#line 182 "htmlattrs.gperf"
{"usemap", ATTR_USEMAP},
#line 141 "htmlattrs.gperf"
{"pagex", ATTR_PAGEX},
#line 38 "htmlattrs.gperf"
{"cite", ATTR_CITE},
#line 64 "htmlattrs.gperf"
{"frameborder", ATTR_FRAMEBORDER},
#line 113 "htmlattrs.gperf"
{"ondragend", ATTR_ONDRAGEND},
#line 100 "htmlattrs.gperf"
{"object", ATTR_OBJECT},
#line 120 "htmlattrs.gperf"
{"onfocus", ATTR_ONFOCUS},
#line 96 "htmlattrs.gperf"
{"noresize", ATTR_NORESIZE},
#line 94 "htmlattrs.gperf"
{"name", ATTR_NAME},
#line 176 "htmlattrs.gperf"
{"title", ATTR_TITLE},
#line 114 "htmlattrs.gperf"
{"ondragenter", ATTR_ONDRAGENTER},
#line 83 "htmlattrs.gperf"
{"longdesc", ATTR_LONGDESC},
#line 165 "htmlattrs.gperf"
{"size", ATTR_SIZE},
#line 70 "htmlattrs.gperf"
{"hspace", ATTR_HSPACE},
#line 153 "htmlattrs.gperf"
{"results", ATTR_RESULTS},
#line 135 "htmlattrs.gperf"
{"onsearch", ATTR_ONSEARCH},
#line 148 "htmlattrs.gperf"
{"precision", ATTR_PRECISION},
#line 144 "htmlattrs.gperf"
{"plain", ATTR_PLAIN},
#line 34 "htmlattrs.gperf"
{"charoff", ATTR_CHAROFF},
#line 78 "htmlattrs.gperf"
{"lang", ATTR_LANG},
#line 157 "htmlattrs.gperf"
{"rules", ATTR_RULES},
#line 189 "htmlattrs.gperf"
{"vspace", ATTR_VSPACE},
#line 138 "htmlattrs.gperf"
{"onsubmit", ATTR_ONSUBMIT},
#line 158 "htmlattrs.gperf"
{"scheme", ATTR_SCHEME},
#line 26 "htmlattrs.gperf"
{"bgcolor", ATTR_BGCOLOR},
#line 151 "htmlattrs.gperf"
{"readonly", ATTR_READONLY},
#line 103 "htmlattrs.gperf"
{"onbeforecut", ATTR_ONBEFORECUT},
#line 50 "htmlattrs.gperf"
{"content", ATTR_CONTENT},
#line 59 "htmlattrs.gperf"
{"disabled", ATTR_DISABLED},
#line 162 "htmlattrs.gperf"
{"scrolling", ATTR_SCROLLING},
#line 13 "htmlattrs.gperf"
{"accept-charset", ATTR_ACCEPT_CHARSET},
#line 74 "htmlattrs.gperf"
{"incremental", ATTR_INCREMENTAL},
#line 139 "htmlattrs.gperf"
{"onunload", ATTR_ONUNLOAD},
#line 68 "htmlattrs.gperf"
{"href", ATTR_HREF},
#line 17 "htmlattrs.gperf"
{"align", ATTR_ALIGN},
#line 121 "htmlattrs.gperf"
{"oninput", ATTR_ONINPUT},
#line 154 "htmlattrs.gperf"
{"rev", ATTR_REV},
#line 178 "htmlattrs.gperf"
{"topmargin", ATTR_TOPMARGIN},
#line 116 "htmlattrs.gperf"
{"ondragover", ATTR_ONDRAGOVER},
#line 27 "htmlattrs.gperf"
{"bgproperties", ATTR_BGPROPERTIES},
#line 130 "htmlattrs.gperf"
{"onmouseup", ATTR_ONMOUSEUP},
#line 128 "htmlattrs.gperf"
{"onmouseout", ATTR_ONMOUSEOUT},
#line 65 "htmlattrs.gperf"
{"headers", ATTR_HEADERS},
#line 33 "htmlattrs.gperf"
{"challenge", ATTR_CHALLENGE},
#line 143 "htmlattrs.gperf"
{"placeholder", ATTR_PLACEHOLDER},
#line 168 "htmlattrs.gperf"
{"standby", ATTR_STANDBY},
#line 155 "htmlattrs.gperf"
{"rows", ATTR_ROWS},
#line 192 "htmlattrs.gperf"
{"z-index", ATTR_Z_INDEX},
#line 21 "htmlattrs.gperf"
{"autocomplete", ATTR_AUTOCOMPLETE},
#line 191 "htmlattrs.gperf"
{"wrap", ATTR_WRAP},
#line 123 "htmlattrs.gperf"
{"onkeypress", ATTR_ONKEYPRESS},
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -