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 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265
|
/* ANSI-C code produced by gperf version 3.1 */
/* Command-line: gperf source/html/css-properties.gperf */
/* Computed positions: -k'1-2,$' */
#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-gperf@gnu.org>."
#endif
#line 1 "source/html/css-properties.gperf"
struct css_property_info { const char *name; int key; };
#define TOTAL_KEYWORDS 65
#define MIN_WORD_LENGTH 3
#define MAX_WORD_LENGTH 19
#define MIN_HASH_VALUE 10
#define MAX_HASH_VALUE 140
/* maximum key range = 131, duplicates = 0 */
#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
css_property_hash (register const char *str, register size_t len)
{
static unsigned char asso_values[] =
{
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 0, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 35, 5, 5,
5, 10, 65, 85, 55, 75, 141, 141, 0, 20,
5, 0, 0, 0, 0, 35, 20, 0, 0, 5,
141, 35, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141, 141, 141, 141, 141,
141, 141, 141, 141, 141, 141
};
return len + asso_values[(unsigned char)str[1]] + asso_values[(unsigned char)str[0]] + asso_values[(unsigned char)str[len - 1]];
}
static struct css_property_info css_property_list[] =
{
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""},
#line 31 "source/html/css-properties.gperf"
{"color",PRO_COLOR},
#line 10 "source/html/css-properties.gperf"
{"border",PRO_BORDER},
{""},
#line 53 "source/html/css-properties.gperf"
{"overflow-wrap",PRO_OVERFLOW_WRAP},
{""},
#line 26 "source/html/css-properties.gperf"
{"border-top",PRO_BORDER_TOP},
{""},
#line 15 "source/html/css-properties.gperf"
{"border-color",PRO_BORDER_COLOR},
{""}, {""}, {""},
#line 27 "source/html/css-properties.gperf"
{"border-top-color",PRO_BORDER_TOP_COLOR},
#line 17 "source/html/css-properties.gperf"
{"border-left-color",PRO_BORDER_LEFT_COLOR},
#line 21 "source/html/css-properties.gperf"
{"border-right-color",PRO_BORDER_RIGHT_COLOR},
#line 12 "source/html/css-properties.gperf"
{"border-bottom-color",PRO_BORDER_BOTTOM_COLOR},
{""}, {""},
#line 25 "source/html/css-properties.gperf"
{"border-style",PRO_BORDER_STYLE},
{""},
#line 67 "source/html/css-properties.gperf"
{"vertical-align",PRO_VERTICAL_ALIGN},
{""},
#line 28 "source/html/css-properties.gperf"
{"border-top-style",PRO_BORDER_TOP_STYLE},
#line 18 "source/html/css-properties.gperf"
{"border-left-style",PRO_BORDER_LEFT_STYLE},
#line 22 "source/html/css-properties.gperf"
{"border-right-style",PRO_BORDER_RIGHT_STYLE},
#line 13 "source/html/css-properties.gperf"
{"border-bottom-style",PRO_BORDER_BOTTOM_STYLE},
{""},
#line 16 "source/html/css-properties.gperf"
{"border-left",PRO_BORDER_LEFT},
#line 20 "source/html/css-properties.gperf"
{"border-right",PRO_BORDER_RIGHT},
#line 11 "source/html/css-properties.gperf"
{"border-bottom",PRO_BORDER_BOTTOM},
{""}, {""},
#line 61 "source/html/css-properties.gperf"
{"quotes",PRO_QUOTES},
#line 52 "source/html/css-properties.gperf"
{"orphans",PRO_ORPHANS},
#line 62 "source/html/css-properties.gperf"
{"src",PRO_SRC},
{""},
#line 63 "source/html/css-properties.gperf"
{"text-align",PRO_TEXT_ALIGN},
#line 58 "source/html/css-properties.gperf"
{"padding-top",PRO_PADDING_TOP},
{""}, {""}, {""},
#line 64 "source/html/css-properties.gperf"
{"text-decoration",PRO_TEXT_DECORATION},
#line 59 "source/html/css-properties.gperf"
{"page-break-after",PRO_PAGE_BREAK_AFTER},
{""}, {""}, {""}, {""},
#line 9 "source/html/css-properties.gperf"
{"background-color",PRO_BACKGROUND_COLOR},
{""}, {""}, {""}, {""},
#line 65 "source/html/css-properties.gperf"
{"text-indent",PRO_TEXT_INDENT},
#line 60 "source/html/css-properties.gperf"
{"page-break-before",PRO_PAGE_BREAK_BEFORE},
{""},
#line 66 "source/html/css-properties.gperf"
{"text-transform",PRO_TEXT_TRANSFORM},
#line 51 "source/html/css-properties.gperf"
{"margin-top",PRO_MARGIN_TOP},
#line 47 "source/html/css-properties.gperf"
{"margin",PRO_MARGIN},
#line 56 "source/html/css-properties.gperf"
{"padding-left",PRO_PADDING_LEFT},
#line 57 "source/html/css-properties.gperf"
{"padding-right",PRO_PADDING_RIGHT},
#line 55 "source/html/css-properties.gperf"
{"padding-bottom",PRO_PADDING_BOTTOM},
{""}, {""},
#line 30 "source/html/css-properties.gperf"
{"border-width",PRO_BORDER_WIDTH},
{""}, {""}, {""},
#line 29 "source/html/css-properties.gperf"
{"border-top-width",PRO_BORDER_TOP_WIDTH},
#line 19 "source/html/css-properties.gperf"
{"border-left-width",PRO_BORDER_LEFT_WIDTH},
#line 23 "source/html/css-properties.gperf"
{"border-right-width",PRO_BORDER_RIGHT_WIDTH},
#line 14 "source/html/css-properties.gperf"
{"border-bottom-width",PRO_BORDER_BOTTOM_WIDTH},
{""},
#line 69 "source/html/css-properties.gperf"
{"white-space",PRO_WHITE_SPACE},
{""}, {""},
#line 36 "source/html/css-properties.gperf"
{"font-size",PRO_FONT_SIZE},
#line 37 "source/html/css-properties.gperf"
{"font-style",PRO_FONT_STYLE},
#line 49 "source/html/css-properties.gperf"
{"margin-left",PRO_MARGIN_LEFT},
#line 50 "source/html/css-properties.gperf"
{"margin-right",PRO_MARGIN_RIGHT},
#line 48 "source/html/css-properties.gperf"
{"margin-bottom",PRO_MARGIN_BOTTOM},
#line 34 "source/html/css-properties.gperf"
{"font",PRO_FONT},
{""},
#line 40 "source/html/css-properties.gperf"
{"height",PRO_HEIGHT},
{""}, {""},
#line 32 "source/html/css-properties.gperf"
{"direction",PRO_DIRECTION},
#line 43 "source/html/css-properties.gperf"
{"list-style",PRO_LIST_STYLE},
#line 39 "source/html/css-properties.gperf"
{"font-weight",PRO_FONT_WEIGHT},
#line 38 "source/html/css-properties.gperf"
{"font-variant",PRO_FONT_VARIANT},
{""},
#line 45 "source/html/css-properties.gperf"
{"list-style-position",PRO_LIST_STYLE_POSITION},
#line 46 "source/html/css-properties.gperf"
{"list-style-type",PRO_LIST_STYLE_TYPE},
#line 44 "source/html/css-properties.gperf"
{"list-style-image",PRO_LIST_STYLE_IMAGE},
#line 72 "source/html/css-properties.gperf"
{"word-spacing",PRO_WORD_SPACING},
{""},
#line 24 "source/html/css-properties.gperf"
{"border-spacing",PRO_BORDER_SPACING},
{""},
#line 42 "source/html/css-properties.gperf"
{"line-height",PRO_LINE_HEIGHT},
{""}, {""},
#line 41 "source/html/css-properties.gperf"
{"letter-spacing",PRO_LETTER_SPACING},
{""},
#line 35 "source/html/css-properties.gperf"
{"font-family",PRO_FONT_FAMILY},
{""}, {""}, {""}, {""}, {""}, {""}, {""},
#line 8 "source/html/css-properties.gperf"
{"-mupdf-leading",PRO_LEADING},
#line 68 "source/html/css-properties.gperf"
{"visibility",PRO_VISIBILITY},
#line 70 "source/html/css-properties.gperf"
{"widows",PRO_WIDOWS},
#line 33 "source/html/css-properties.gperf"
{"display",PRO_DISPLAY},
{""}, {""}, {""}, {""},
#line 54 "source/html/css-properties.gperf"
{"padding",PRO_PADDING},
{""}, {""}, {""}, {""}, {""}, {""}, {""}, {""}, {""},
{""}, {""}, {""},
#line 71 "source/html/css-properties.gperf"
{"width",PRO_WIDTH}
};
struct css_property_info *
css_property_lookup (register const char *str, register size_t len)
{
if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
{
register unsigned int key = css_property_hash (str, len);
if (key <= MAX_HASH_VALUE)
{
register const char *s = css_property_list[key].name;
if (*str == *s && !strcmp (str + 1, s + 1))
return &css_property_list[key];
}
}
return 0;
}
|