📄 cssvalues.c
字号:
/* ANSI-C code produced by gperf version 3.0.1 *//* Command-line: gperf -L ANSI-C -E -c -C -n -o -t -k '*' -NfindValue -Hhash_val -Wwordlist_value -D cssvalues.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 "cssvalues.gperf"/* This file is automatically generated from cssvalues.in by makevalues, do not edit *//* Copyright 1999 W. Bastian */#include "cssvalues.h"#line 6 "cssvalues.gperf"struct css_value { const char *name; int id;};static const css_value* findValue (register const char *str, register unsigned int len);/* maximum key range = 2971, duplicates = 0 */#ifdef __GNUC____inline#else#ifdef __cplusplusinline#endif#endifstatic unsigned inthash_val (register const char *str, register unsigned int len){ static const unsigned short asso_values[] = { 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 265, 175, 2971, 0, 0, 95, 90, 85, 75, 50, 25, 20, 5, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 75, 20, 105, 0, 0, 475, 345, 245, 5, 23, 230, 20, 35, 5, 15, 145, 460, 145, 150, 0, 30, 198, 23, 3, 268, 325, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971, 2971 }; register int hval = 0; switch (len) { default: hval += asso_values[(unsigned char)str[27]]; /*FALLTHROUGH*/ case 27: hval += asso_values[(unsigned char)str[26]]; /*FALLTHROUGH*/ case 26: hval += asso_values[(unsigned char)str[25]]; /*FALLTHROUGH*/ case 25: hval += asso_values[(unsigned char)str[24]]; /*FALLTHROUGH*/ case 24: hval += asso_values[(unsigned char)str[23]]; /*FALLTHROUGH*/ case 23: hval += asso_values[(unsigned char)str[22]]; /*FALLTHROUGH*/ case 22: hval += asso_values[(unsigned char)str[21]]; /*FALLTHROUGH*/ case 21: hval += asso_values[(unsigned char)str[20]]; /*FALLTHROUGH*/ case 20: hval += asso_values[(unsigned char)str[19]]; /*FALLTHROUGH*/ case 19: hval += asso_values[(unsigned char)str[18]]; /*FALLTHROUGH*/ case 18: hval += asso_values[(unsigned char)str[17]]; /*FALLTHROUGH*/ case 17: hval += asso_values[(unsigned char)str[16]]; /*FALLTHROUGH*/ case 16: hval += asso_values[(unsigned char)str[15]]; /*FALLTHROUGH*/ case 15: 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]+1]; /*FALLTHROUGH*/ case 2: hval += asso_values[(unsigned char)str[1]]; /*FALLTHROUGH*/ case 1: hval += asso_values[(unsigned char)str[0]]; break; } return hval;}#ifdef __GNUC____inline#endifconst struct css_value *findValue (register const char *str, register unsigned int len){ enum { TOTAL_KEYWORDS = 269, MIN_WORD_LENGTH = 2, MAX_WORD_LENGTH = 28, MIN_HASH_VALUE = 0, MAX_HASH_VALUE = 2970 }; static const struct css_value wordlist_value[] = {#line 40 "cssvalues.gperf" {"100", CSS_VAL_100},#line 48 "cssvalues.gperf" {"900", CSS_VAL_900},#line 19 "cssvalues.gperf" {"inset", CSS_VAL_INSET},#line 145 "cssvalues.gperf" {"inside", CSS_VAL_INSIDE},#line 47 "cssvalues.gperf" {"800", CSS_VAL_800},#line 276 "cssvalues.gperf" {"down", CSS_VAL_DOWN},#line 46 "cssvalues.gperf" {"700", CSS_VAL_700},#line 83 "cssvalues.gperf" {"lime", CSS_VAL_LIME},#line 17 "cssvalues.gperf" {"none", CSS_VAL_NONE},#line 91 "cssvalues.gperf" {"teal", CSS_VAL_TEAL},#line 23 "cssvalues.gperf" {"dotted", CSS_VAL_DOTTED},#line 45 "cssvalues.gperf" {"600", CSS_VAL_600},#line 183 "cssvalues.gperf" {"inline", CSS_VAL_INLINE},#line 128 "cssvalues.gperf" {"middle", CSS_VAL_MIDDLE},#line 249 "cssvalues.gperf" {"level", CSS_VAL_LEVEL},#line 269 "cssvalues.gperf" {"enabled", CSS_VAL_ENABLED},#line 37 "cssvalues.gperf" {"bold", CSS_VAL_BOLD},#line 204 "cssvalues.gperf" {"move", CSS_VAL_MOVE},#line 44 "cssvalues.gperf" {"500", CSS_VAL_500},#line 29 "cssvalues.gperf" {"menu", CSS_VAL_MENU},#line 118 "cssvalues.gperf" {"window", CSS_VAL_WINDOW},#line 111 "cssvalues.gperf" {"menutext", CSS_VAL_MENUTEXT},#line 120 "cssvalues.gperf" {"windowtext", CSS_VAL_WINDOWTEXT},#line 43 "cssvalues.gperf" {"400", CSS_VAL_400},#line 42 "cssvalues.gperf" {"300", CSS_VAL_300},#line 236 "cssvalues.gperf" {"below", CSS_VAL_BELOW},#line 41 "cssvalues.gperf" {"200", CSS_VAL_200},#line 101 "cssvalues.gperf" {"buttontext", CSS_VAL_BUTTONTEXT},#line 52 "cssvalues.gperf" {"medium", CSS_VAL_MEDIUM},#line 146 "cssvalues.gperf" {"disc", CSS_VAL_DISC},#line 134 "cssvalues.gperf" {"bottom", CSS_VAL_BOTTOM},#line 270 "cssvalues.gperf" {"disabled", CSS_VAL_DISABLED},#line 214 "cssvalues.gperf" {"wait", CSS_VAL_WAIT},#line 127 "cssvalues.gperf" {"baseline", CSS_VAL_BASELINE},#line 15 "cssvalues.gperf" {"initial", CSS_VAL_INITIAL},#line 151 "cssvalues.gperf" {"decimal", CSS_VAL_DECIMAL},#line 242 "cssvalues.gperf" {"embed", CSS_VAL_EMBED},#line 89 "cssvalues.gperf" {"red", CSS_VAL_RED},#line 199 "cssvalues.gperf" {"auto", CSS_VAL_AUTO},#line 33 "cssvalues.gperf" {"italic", CSS_VAL_ITALIC},#line 233 "cssvalues.gperf" {"absolute", CSS_VAL_ABSOLUTE},#line 14 "cssvalues.gperf" {"inherit", CSS_VAL_INHERIT},#line 216 "cssvalues.gperf" {"ltr", CSS_VAL_LTR},#line 59 "cssvalues.gperf" {"wider", CSS_VAL_WIDER},#line 275 "cssvalues.gperf" {"up", CSS_VAL_UP},#line 247 "cssvalues.gperf" {"invert", CSS_VAL_INVERT},#line 217 "cssvalues.gperf" {"rtl", CSS_VAL_RTL},#line 252 "cssvalues.gperf" {"lower", CSS_VAL_LOWER},#line 280 "cssvalues.gperf" {"slide", CSS_VAL_SLIDE},#line 189 "cssvalues.gperf" {"table", CSS_VAL_TABLE},#line 25 "cssvalues.gperf" {"solid", CSS_VAL_SOLID},#line 264 "cssvalues.gperf" {"underline", CSS_VAL_UNDERLINE},#line 38 "cssvalues.gperf" {"bolder", CSS_VAL_BOLDER},#line 22 "cssvalues.gperf" {"outset", CSS_VAL_OUTSET},#line 144 "cssvalues.gperf" {"outside", CSS_VAL_OUTSIDE},#line 251 "cssvalues.gperf" {"loud", CSS_VAL_LOUD},#line 77 "cssvalues.gperf" {"blue", CSS_VAL_BLUE},#line 51 "cssvalues.gperf" {"small", CSS_VAL_SMALL},#line 221 "cssvalues.gperf" {"visible", CSS_VAL_VISIBLE},#line 245 "cssvalues.gperf" {"hide", CSS_VAL_HIDE},#line 26 "cssvalues.gperf" {"double", CSS_VAL_DOUBLE},#line 18 "cssvalues.gperf" {"hidden", CSS_VAL_HIDDEN},#line 86 "cssvalues.gperf" {"olive", CSS_VAL_OLIVE},#line 28 "cssvalues.gperf" {"icon", CSS_VAL_ICON},#line 139 "cssvalues.gperf" {"center", CSS_VAL_CENTER},#line 213 "cssvalues.gperf" {"text", CSS_VAL_TEXT},#line 263 "cssvalues.gperf" {"thin", CSS_VAL_THIN},#line 261 "cssvalues.gperf" {"static", CSS_VAL_STATIC},#line 129 "cssvalues.gperf" {"sub", CSS_VAL_SUB},#line 63 "cssvalues.gperf" {"condensed", CSS_VAL_CONDENSED},#line 92 "cssvalues.gperf" {"white", CSS_VAL_WHITE},#line 84 "cssvalues.gperf"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -