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

📄 kwqcolordata.c

📁 手机浏览器源码程序,功能强大
💻 C
📖 第 1 页 / 共 2 页
字号:
/* ANSI-C code produced by gperf version 3.0.1 */
/* Command-line: gperf -CDEot -L ANSI-C -k '*' -N findColor KWQColorData.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 "KWQColorData.gperf"
struct Color { const char *name; int RGBValue; };
/* maximum key range = 1053, duplicates = 0 */

#ifdef __GNUC__
__inline
#else
#ifdef __cplusplus
inline
#endif
#endif
static unsigned int
color_hash (register const char *str, register unsigned int len)
{
  static const unsigned short asso_values[] =
    {
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056,    5,    0,  105,
         0,    0,   10,   40,   40,   10,    0,    0,   15,   60,
         0,    5,  255,   65,    0,   10,   15,  130,  152,  215,
         5,    0,    0, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
      1056, 1056, 1056, 1056, 1056, 1056, 1056
    };
  register int hval = len;

  switch (hval)
    {
      default:
        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]+1];
      /*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]];
      /*FALLTHROUGH*/
      case 1:
        hval += asso_values[(unsigned char)str[0]];
        break;
    }
  return hval;
}

#ifdef __GNUC__
__inline
#endif
const struct Color *
findColor (register const char *str, register unsigned int len)
{
  enum
    {
      TOTAL_KEYWORDS = 149,
      MIN_WORD_LENGTH = 3,
      MAX_WORD_LENGTH = 20,
      MIN_HASH_VALUE = 3,
      MAX_HASH_VALUE = 1055
    };

  static const struct Color wordlist[] =
    {
#line 123 "KWQColorData.gperf"
      {"red", 0xff0000},
#line 35 "KWQColorData.gperf"
      {"darkred", 0x8b0000},
#line 140 "KWQColorData.gperf"
      {"tan", 0xd2b48c},
#line 88 "KWQColorData.gperf"
      {"linen", 0xfaf0e6},
#line 131 "KWQColorData.gperf"
      {"sienna", 0xa0522d},
#line 62 "KWQColorData.gperf"
      {"indianred", 0xcd5c5c},
#line 141 "KWQColorData.gperf"
      {"teal", 0x008080},
#line 57 "KWQColorData.gperf"
      {"grey", 0x808080},
#line 58 "KWQColorData.gperf"
      {"green", 0x008000},
#line 56 "KWQColorData.gperf"
      {"gray", 0x808080},
#line 28 "KWQColorData.gperf"
      {"darkgrey", 0xa9a9a9},
#line 29 "KWQColorData.gperf"
      {"darkgreen", 0x006400},
#line 8 "KWQColorData.gperf"
      {"beige", 0xf5f5dc},
#line 109 "KWQColorData.gperf"
      {"orange", 0xffa500},
#line 27 "KWQColorData.gperf"
      {"darkgray", 0xa9a9a9},
#line 110 "KWQColorData.gperf"
      {"orangered", 0xff4500},
#line 65 "KWQColorData.gperf"
      {"khaki", 0xf0e68c},
#line 129 "KWQColorData.gperf"
      {"seagreen", 0x2e8b57},
#line 54 "KWQColorData.gperf"
      {"gold", 0xffd700},
#line 33 "KWQColorData.gperf"
      {"darkorange", 0xff8c00},
#line 30 "KWQColorData.gperf"
      {"darkkhaki", 0xbdb76b},
#line 63 "KWQColorData.gperf"
      {"indigo", 0x4b0082},
#line 55 "KWQColorData.gperf"
      {"goldenrod", 0xdaa520},
#line 90 "KWQColorData.gperf"
      {"maroon", 0x800000},
#line 37 "KWQColorData.gperf"
      {"darkseagreen", 0x8fbc8f},
#line 52 "KWQColorData.gperf"
      {"gainsboro", 0xdcdcdc},
#line 86 "KWQColorData.gperf"
      {"lime", 0x00ff00},
#line 59 "KWQColorData.gperf"
      {"greenyellow", 0xadff2f},
#line 26 "KWQColorData.gperf"
      {"darkgoldenrod", 0xb8860b},
#line 136 "KWQColorData.gperf"
      {"slategrey", 0x708090},
#line 50 "KWQColorData.gperf"
      {"forestgreen", 0x228b22},
#line 135 "KWQColorData.gperf"
      {"slategray", 0x708090},
#line 127 "KWQColorData.gperf"
      {"salmon", 0xfa8072},
#line 130 "KWQColorData.gperf"
      {"seashell", 0xfff5ee},
#line 36 "KWQColorData.gperf"
      {"darksalmon", 0xe9967a},
#line 143 "KWQColorData.gperf"
      {"tomato", 0xff6347},
#line 142 "KWQColorData.gperf"
      {"thistle", 0xd8bfd8},
#line 40 "KWQColorData.gperf"
      {"darkslategrey", 0x2f4f4f},
#line 23 "KWQColorData.gperf"
      {"cyan", 0x00ffff},
#line 46 "KWQColorData.gperf"
      {"dimgrey", 0x696969},
#line 39 "KWQColorData.gperf"
      {"darkslategray", 0x2f4f4f},
#line 102 "KWQColorData.gperf"
      {"mistyrose", 0xffe4e1},
#line 45 "KWQColorData.gperf"
      {"dimgray", 0x696969},
#line 25 "KWQColorData.gperf"
      {"darkcyan", 0x008b8b},
#line 10 "KWQColorData.gperf"
      {"black", 0x000000},
#line 89 "KWQColorData.gperf"
      {"magenta", 0xff00ff},
#line 87 "KWQColorData.gperf"
      {"limegreen", 0x32cd32},
#line 19 "KWQColorData.gperf"
      {"coral", 0xff7f50},
#line 31 "KWQColorData.gperf"
      {"darkmagenta", 0x8b008b},
#line 7 "KWQColorData.gperf"
      {"azure", 0xf0ffff},
#line 48 "KWQColorData.gperf"
      {"firebrick", 0xb22222},
#line 12 "KWQColorData.gperf"
      {"blue", 0x0000ff},
#line 106 "KWQColorData.gperf"
      {"oldlace", 0xfdf5e6},
#line 21 "KWQColorData.gperf"
      {"cornsilk", 0xfff8dc},
#line 24 "KWQColorData.gperf"
      {"darkblue", 0x00008b},
#line 105 "KWQColorData.gperf"
      {"navy", 0x000080},
#line 133 "KWQColorData.gperf"
      {"skyblue", 0x87ceeb},
#line 111 "KWQColorData.gperf"
      {"orchid", 0xda70d6},
#line 75 "KWQColorData.gperf"
      {"lightgrey", 0xd3d3d3},
#line 76 "KWQColorData.gperf"
      {"lightgreen", 0x90ee90},
#line 85 "KWQColorData.gperf"
      {"lightyellow", 0xffffe0},
#line 64 "KWQColorData.gperf"
      {"ivory", 0xfffff0},
#line 74 "KWQColorData.gperf"
      {"lightgray", 0xd3d3d3},
#line 34 "KWQColorData.gperf"
      {"darkorchid", 0x9932cc},
#line 125 "KWQColorData.gperf"
      {"royalblue", 0x4169e1},
#line 66 "KWQColorData.gperf"
      {"lavender", 0xe6e6fa},
#line 107 "KWQColorData.gperf"
      {"olive", 0x808000},
#line 132 "KWQColorData.gperf"
      {"silver", 0xc0c0c0},

⌨️ 快捷键说明

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