⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cssvalues.c

📁 It is WEB browser core module with source code. Very good!
💻 C
📖 第 1 页 / 共 4 页
字号:
/* ANSI-C code produced by gperf version 3.0.1 */
/* Command-line: gperf -L ANSI-C -E -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;
};
/* maximum key range = 3201, duplicates = 0 */

#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
hash_val (register const char *str, register unsigned int len)
{
  static const unsigned short asso_values[] =
    {
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201,  200,  490, 3201,    0,    0,
       115,  110,   95,   70,   65,   60,   25,   20, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201,   60,  265,    5,
       360,    0,   68,  475,  460,    5,  440,  160,   20,   95,
        10,   35,  150,  153,    5,   20,    0,   25,    8,    8,
         3,   68,    5, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201, 3201,
      3201, 3201, 3201, 3201, 3201, 3201, 3201
    };
  register int hval = 0;

  switch (len)
    {
      default:
        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
#endif
const struct css_value *
findValue (register const char *str, register unsigned int len)
{
  enum
    {
      TOTAL_KEYWORDS = 272,
      MIN_WORD_LENGTH = 2,
      MAX_WORD_LENGTH = 22,
      MIN_HASH_VALUE = 0,
      MAX_HASH_VALUE = 3200
    };

  static const struct css_value wordlist_value[] =
    {
#line 36 "cssvalues.gperf"
      {"100", CSS_VAL_100},
#line 83 "cssvalues.gperf"
      {"red", CSS_VAL_RED},
#line 248 "cssvalues.gperf"
      {"end", CSS_VAL_END},
#line 15 "cssvalues.gperf"
      {"inset", CSS_VAL_INSET},
#line 55 "cssvalues.gperf"
      {"wider", CSS_VAL_WIDER},
#line 44 "cssvalues.gperf"
      {"900", CSS_VAL_900},
#line 43 "cssvalues.gperf"
      {"800", CSS_VAL_800},
#line 221 "cssvalues.gperf"
      {"invert", CSS_VAL_INVERT},
#line 11 "cssvalues.gperf"
      {"inherit", CSS_VAL_INHERIT},
#line 77 "cssvalues.gperf"
      {"lime", CSS_VAL_LIME},
#line 249 "cssvalues.gperf"
      {"reverse", CSS_VAL_REVERSE},
#line 198 "cssvalues.gperf"
      {"ltr", CSS_VAL_LTR},
#line 137 "cssvalues.gperf"
      {"center", CSS_VAL_CENTER},
#line 223 "cssvalues.gperf"
      {"level", CSS_VAL_LEVEL},
#line 127 "cssvalues.gperf"
      {"sub", CSS_VAL_SUB},
#line 145 "cssvalues.gperf"
      {"circle", CSS_VAL_CIRCLE},
#line 42 "cssvalues.gperf"
      {"700", CSS_VAL_700},
#line 226 "cssvalues.gperf"
      {"lower", CSS_VAL_LOWER},
#line 41 "cssvalues.gperf"
      {"600", CSS_VAL_600},
#line 195 "cssvalues.gperf"
      {"text", CSS_VAL_TEXT},
#line 40 "cssvalues.gperf"
      {"500", CSS_VAL_500},
#line 244 "cssvalues.gperf"
      {"underline", CSS_VAL_UNDERLINE},
#line 277 "cssvalues.gperf"
      {"wave", CSS_VAL_WAVE},
#line 13 "cssvalues.gperf"
      {"none", CSS_VAL_NONE},
#line 67 "cssvalues.gperf"
      {"cursive", CSS_VAL_CURSIVE},
#line 170 "cssvalues.gperf"
      {"table", CSS_VAL_TABLE},
#line 270 "cssvalues.gperf"
      {"intrinsic", CSS_VAL_INTRINSIC},
#line 39 "cssvalues.gperf"
      {"400", CSS_VAL_400},
#line 199 "cssvalues.gperf"
      {"rtl", CSS_VAL_RTL},
#line 18 "cssvalues.gperf"
      {"outset", CSS_VAL_OUTSET},
#line 38 "cssvalues.gperf"
      {"300", CSS_VAL_300},
#line 65 "cssvalues.gperf"
      {"serif", CSS_VAL_SERIF},
#line 37 "cssvalues.gperf"
      {"200", CSS_VAL_200},
#line 251 "cssvalues.gperf"
      {"vertical", CSS_VAL_VERTICAL},
#line 238 "cssvalues.gperf"
      {"scroll", CSS_VAL_SCROLL},
#line 164 "cssvalues.gperf"
      {"inline", CSS_VAL_INLINE},
#line 262 "cssvalues.gperf"
      {"fast", CSS_VAL_FAST},
#line 84 "cssvalues.gperf"
      {"silver", CSS_VAL_SILVER},
#line 186 "cssvalues.gperf"
      {"move", CSS_VAL_MOVE},
#line 56 "cssvalues.gperf"
      {"narrower", CSS_VAL_NARROWER},
#line 182 "cssvalues.gperf"
      {"auto", CSS_VAL_AUTO},
#line 79 "cssvalues.gperf"
      {"navy", CSS_VAL_NAVY},
#line 202 "cssvalues.gperf"
      {"lowercase", CSS_VAL_LOWERCASE},
#line 234 "cssvalues.gperf"
      {"overline", CSS_VAL_OVERLINE},
#line 25 "cssvalues.gperf"
      {"menu", CSS_VAL_MENU},
#line 109 "cssvalues.gperf"
      {"menutext", CSS_VAL_MENUTEXT},
#line 157 "cssvalues.gperf"
      {"armenian", CSS_VAL_ARMENIAN},
#line 228 "cssvalues.gperf"
      {"mix", CSS_VAL_MIX},
#line 24 "cssvalues.gperf"
      {"icon", CSS_VAL_ICON},
#line 237 "cssvalues.gperf"
      {"relative", CSS_VAL_RELATIVE},
#line 259 "cssvalues.gperf"
      {"up", CSS_VAL_UP},
#line 265 "cssvalues.gperf"
      {"alternate", CSS_VAL_ALTERNATE},
#line 131 "cssvalues.gperf"
      {"top", CSS_VAL_TOP},
#line 269 "cssvalues.gperf"
      {"element", CSS_VAL_ELEMENT},
#line 278 "cssvalues.gperf"
      {"continuous", CSS_VAL_CONTINUOUS},
#line 261 "cssvalues.gperf"
      {"slow", CSS_VAL_SLOW},
#line 215 "cssvalues.gperf"
      {"cross", CSS_VAL_CROSS},
#line 128 "cssvalues.gperf"
      {"super", CSS_VAL_SUPER},
#line 121 "cssvalues.gperf"
      {"repeat", CSS_VAL_REPEAT},
#line 48 "cssvalues.gperf"
      {"medium", CSS_VAL_MEDIUM},
#line 236 "cssvalues.gperf"
      {"pre", CSS_VAL_PRE},
#line 87 "cssvalues.gperf"
      {"yellow", CSS_VAL_YELLOW},
#line 207 "cssvalues.gperf"
      {"always", CSS_VAL_ALWAYS},
#line 32 "cssvalues.gperf"
      {"normal", CSS_VAL_NORMAL},
#line 146 "cssvalues.gperf"
      {"square", CSS_VAL_SQUARE},
#line 187 "cssvalues.gperf"
      {"e-resize", CSS_VAL_E_RESIZE},
#line 78 "cssvalues.gperf"
      {"maroon", CSS_VAL_MAROON},
#line 194 "cssvalues.gperf"
      {"w-resize", CSS_VAL_W_RESIZE},
#line 190 "cssvalues.gperf"
      {"n-resize", CSS_VAL_N_RESIZE},
#line 231 "cssvalues.gperf"
      {"nowrap", CSS_VAL_NOWRAP},
#line 233 "cssvalues.gperf"
      {"overlay", CSS_VAL_OVERLAY},
#line 168 "cssvalues.gperf"
      {"compact", CSS_VAL_COMPACT},
#line 23 "cssvalues.gperf"
      {"caption", CSS_VAL_CAPTION},
#line 193 "cssvalues.gperf"
      {"s-resize", CSS_VAL_S_RESIZE},
#line 99 "cssvalues.gperf"
      {"captiontext", CSS_VAL_CAPTIONTEXT},
#line 235 "cssvalues.gperf"
      {"portrait", CSS_VAL_PORTRAIT},
#line 167 "cssvalues.gperf"
      {"run-in", CSS_VAL_RUN_IN},
#line 71 "cssvalues.gperf"
      {"aqua", CSS_VAL_AQUA},
#line 85 "cssvalues.gperf"
      {"teal", CSS_VAL_TEAL},
#line 247 "cssvalues.gperf"
      {"start", CSS_VAL_START},
#line 73 "cssvalues.gperf"
      {"blue", CSS_VAL_BLUE},
#line 241 "cssvalues.gperf"
      {"static", CSS_VAL_STATIC},
#line 239 "cssvalues.gperf"
      {"separate", CSS_VAL_SEPARATE},

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -