WebCore/generated/ColorData.cpp
changeset 0 4f2f89ce4247
child 2 303757a437d3
equal deleted inserted replaced
-1:000000000000 0:4f2f89ce4247
       
     1 /* ANSI-C code produced by gperf version 3.0.1 */
       
     2 /* Command-line: gperf --key-positions='*' -D -s 2 U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf  */
       
     3 
       
     4 #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
       
     5       && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
       
     6       && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
       
     7       && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
       
     8       && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
       
     9       && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
       
    10       && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
       
    11       && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
       
    12       && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
       
    13       && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
       
    14       && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
       
    15       && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
       
    16       && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
       
    17       && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
       
    18       && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
       
    19       && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
       
    20       && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
       
    21       && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
       
    22       && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
       
    23       && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
       
    24       && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
       
    25       && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
       
    26       && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
       
    27 /* The character set is not based on ISO-646.  */
       
    28 #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
       
    29 #endif
       
    30 
       
    31 #line 2 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
    32 struct NamedColor {
       
    33     const char *name;
       
    34     int RGBValue;
       
    35 };
       
    36 #include <string.h>
       
    37 enum
       
    38   {
       
    39     TOTAL_KEYWORDS = 149,
       
    40     MIN_WORD_LENGTH = 3,
       
    41     MAX_WORD_LENGTH = 20,
       
    42     MIN_HASH_VALUE = 3,
       
    43     MAX_HASH_VALUE = 1055
       
    44   };
       
    45 
       
    46 /* maximum key range = 1053, duplicates = 0 */
       
    47 
       
    48 #ifdef __GNUC__
       
    49 __inline
       
    50 #else
       
    51 #ifdef __cplusplus
       
    52 inline
       
    53 #endif
       
    54 #endif
       
    55 static unsigned int
       
    56 colordata_hash_function (register const char *str, register unsigned int len)
       
    57 {
       
    58   static const unsigned short asso_values[] =
       
    59     {
       
    60       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    61       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    62       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    63       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    64       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    65       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    66       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    67       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    68       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    69       1056, 1056, 1056, 1056, 1056, 1056, 1056,    5,    0,  105,
       
    70          0,    0,   30,   40,   40,   10,    0,    0,   15,   60,
       
    71          0,    5,  255,   40,    0,   10,   15,  130,  300,  215,
       
    72          5,    0,    0, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    73       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    74       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    75       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    76       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    77       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    78       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    79       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    80       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    81       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    82       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    83       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    84       1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056,
       
    85       1056, 1056, 1056, 1056, 1056, 1056, 1056
       
    86     };
       
    87   register int hval = len;
       
    88 
       
    89   switch (hval)
       
    90     {
       
    91       default:
       
    92         hval += asso_values[(unsigned char)str[19]];
       
    93       /*FALLTHROUGH*/
       
    94       case 19:
       
    95         hval += asso_values[(unsigned char)str[18]];
       
    96       /*FALLTHROUGH*/
       
    97       case 18:
       
    98         hval += asso_values[(unsigned char)str[17]];
       
    99       /*FALLTHROUGH*/
       
   100       case 17:
       
   101         hval += asso_values[(unsigned char)str[16]];
       
   102       /*FALLTHROUGH*/
       
   103       case 16:
       
   104         hval += asso_values[(unsigned char)str[15]];
       
   105       /*FALLTHROUGH*/
       
   106       case 15:
       
   107         hval += asso_values[(unsigned char)str[14]];
       
   108       /*FALLTHROUGH*/
       
   109       case 14:
       
   110         hval += asso_values[(unsigned char)str[13]];
       
   111       /*FALLTHROUGH*/
       
   112       case 13:
       
   113         hval += asso_values[(unsigned char)str[12]];
       
   114       /*FALLTHROUGH*/
       
   115       case 12:
       
   116         hval += asso_values[(unsigned char)str[11]];
       
   117       /*FALLTHROUGH*/
       
   118       case 11:
       
   119         hval += asso_values[(unsigned char)str[10]+1];
       
   120       /*FALLTHROUGH*/
       
   121       case 10:
       
   122         hval += asso_values[(unsigned char)str[9]];
       
   123       /*FALLTHROUGH*/
       
   124       case 9:
       
   125         hval += asso_values[(unsigned char)str[8]];
       
   126       /*FALLTHROUGH*/
       
   127       case 8:
       
   128         hval += asso_values[(unsigned char)str[7]];
       
   129       /*FALLTHROUGH*/
       
   130       case 7:
       
   131         hval += asso_values[(unsigned char)str[6]];
       
   132       /*FALLTHROUGH*/
       
   133       case 6:
       
   134         hval += asso_values[(unsigned char)str[5]];
       
   135       /*FALLTHROUGH*/
       
   136       case 5:
       
   137         hval += asso_values[(unsigned char)str[4]];
       
   138       /*FALLTHROUGH*/
       
   139       case 4:
       
   140         hval += asso_values[(unsigned char)str[3]];
       
   141       /*FALLTHROUGH*/
       
   142       case 3:
       
   143         hval += asso_values[(unsigned char)str[2]];
       
   144       /*FALLTHROUGH*/
       
   145       case 2:
       
   146         hval += asso_values[(unsigned char)str[1]];
       
   147       /*FALLTHROUGH*/
       
   148       case 1:
       
   149         hval += asso_values[(unsigned char)str[0]];
       
   150         break;
       
   151     }
       
   152   return hval;
       
   153 }
       
   154 
       
   155 static const struct NamedColor wordlist[] =
       
   156   {
       
   157 #line 135 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   158     {"red", 0xff0000},
       
   159 #line 47 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   160     {"darkred", 0x8b0000},
       
   161 #line 152 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   162     {"tan", 0xd2b48c},
       
   163 #line 100 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   164     {"linen", 0xfaf0e6},
       
   165 #line 143 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   166     {"sienna", 0xa0522d},
       
   167 #line 74 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   168     {"indianred", 0xcd5c5c},
       
   169 #line 153 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   170     {"teal", 0x008080},
       
   171 #line 69 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   172     {"grey", 0x808080},
       
   173 #line 70 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   174     {"green", 0x008000},
       
   175 #line 68 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   176     {"gray", 0x808080},
       
   177 #line 40 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   178     {"darkgrey", 0xa9a9a9},
       
   179 #line 41 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   180     {"darkgreen", 0x006400},
       
   181 #line 20 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   182     {"beige", 0xf5f5dc},
       
   183 #line 121 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   184     {"orange", 0xffa500},
       
   185 #line 39 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   186     {"darkgray", 0xa9a9a9},
       
   187 #line 122 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   188     {"orangered", 0xff4500},
       
   189 #line 77 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   190     {"khaki", 0xf0e68c},
       
   191 #line 141 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   192     {"seagreen", 0x2e8b57},
       
   193 #line 66 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   194     {"gold", 0xffd700},
       
   195 #line 45 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   196     {"darkorange", 0xff8c00},
       
   197 #line 42 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   198     {"darkkhaki", 0xbdb76b},
       
   199 #line 75 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   200     {"indigo", 0x4b0082},
       
   201 #line 67 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   202     {"goldenrod", 0xdaa520},
       
   203 #line 102 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   204     {"maroon", 0x800000},
       
   205 #line 64 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   206     {"gainsboro", 0xdcdcdc},
       
   207 #line 98 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   208     {"lime", 0x00ff00},
       
   209 #line 71 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   210     {"greenyellow", 0xadff2f},
       
   211 #line 38 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   212     {"darkgoldenrod", 0xb8860b},
       
   213 #line 148 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   214     {"slategrey", 0x708090},
       
   215 #line 147 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   216     {"slategray", 0x708090},
       
   217 #line 139 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   218     {"salmon", 0xfa8072},
       
   219 #line 49 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   220     {"darkseagreen", 0x8fbc8f},
       
   221 #line 142 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   222     {"seashell", 0xfff5ee},
       
   223 #line 48 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   224     {"darksalmon", 0xe9967a},
       
   225 #line 155 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   226     {"tomato", 0xff6347},
       
   227 #line 154 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   228     {"thistle", 0xd8bfd8},
       
   229 #line 52 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   230     {"darkslategrey", 0x2f4f4f},
       
   231 #line 35 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   232     {"cyan", 0x00ffff},
       
   233 #line 62 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   234     {"forestgreen", 0x228b22},
       
   235 #line 58 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   236     {"dimgrey", 0x696969},
       
   237 #line 51 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   238     {"darkslategray", 0x2f4f4f},
       
   239 #line 114 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   240     {"mistyrose", 0xffe4e1},
       
   241 #line 57 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   242     {"dimgray", 0x696969},
       
   243 #line 37 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   244     {"darkcyan", 0x008b8b},
       
   245 #line 22 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   246     {"black", 0x000000},
       
   247 #line 101 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   248     {"magenta", 0xff00ff},
       
   249 #line 99 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   250     {"limegreen", 0x32cd32},
       
   251 #line 31 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   252     {"coral", 0xff7f50},
       
   253 #line 43 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   254     {"darkmagenta", 0x8b008b},
       
   255 #line 19 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   256     {"azure", 0xf0ffff},
       
   257 #line 24 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   258     {"blue", 0x0000ff},
       
   259 #line 118 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   260     {"oldlace", 0xfdf5e6},
       
   261 #line 33 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   262     {"cornsilk", 0xfff8dc},
       
   263 #line 36 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   264     {"darkblue", 0x00008b},
       
   265 #line 145 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   266     {"skyblue", 0x87ceeb},
       
   267 #line 60 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   268     {"firebrick", 0xb22222},
       
   269 #line 123 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   270     {"orchid", 0xda70d6},
       
   271 #line 87 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   272     {"lightgrey", 0xd3d3d3},
       
   273 #line 88 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   274     {"lightgreen", 0x90ee90},
       
   275 #line 97 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   276     {"lightyellow", 0xffffe0},
       
   277 #line 86 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   278     {"lightgray", 0xd3d3d3},
       
   279 #line 46 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   280     {"darkorchid", 0x9932cc},
       
   281 #line 137 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   282     {"royalblue", 0x4169e1},
       
   283 #line 17 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   284     {"aqua", 0x00ffff},
       
   285 #line 151 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   286     {"steelblue", 0x4682b4},
       
   287 #line 21 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   288     {"bisque", 0xffe4c4},
       
   289 #line 34 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   290     {"crimson", 0xdc143c},
       
   291 #line 146 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   292     {"slateblue", 0x6a5acd},
       
   293 #line 59 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   294     {"dodgerblue", 0x1e90ff},
       
   295 #line 23 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   296     {"blanchedalmond", 0xffebcd},
       
   297 #line 91 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   298     {"lightseagreen", 0x20b2aa},
       
   299 #line 95 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   300     {"lightslategrey", 0x778899},
       
   301 #line 94 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   302     {"lightslategray", 0x778899},
       
   303 #line 26 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   304     {"brown", 0xa52a2a},
       
   305 #line 90 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   306     {"lightsalmon", 0xffa07a},
       
   307 #line 149 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   308     {"snow", 0xfffafa},
       
   309 #line 84 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   310     {"lightcyan", 0xe0ffff},
       
   311 #line 136 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   312     {"rosybrown", 0xbc8f8f},
       
   313 #line 140 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   314     {"sandybrown", 0xf4a460},
       
   315 #line 50 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   316     {"darkslateblue", 0x483d8b},
       
   317 #line 162 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   318     {"yellow", 0xffff00},
       
   319 #line 83 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   320     {"lightcoral", 0xf08080},
       
   321 #line 113 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   322     {"mintcream", 0xf5fffa},
       
   323 #line 18 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   324     {"aquamarine", 0x7fffd4},
       
   325 #line 138 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   326     {"saddlebrown", 0x8b4513},
       
   327 #line 72 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   328     {"honeydew", 0xf0fff0},
       
   329 #line 131 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   330     {"pink", 0xffc0cb},
       
   331 #line 82 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   332     {"lightblue", 0xadd8e6},
       
   333 #line 28 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   334     {"cadetblue", 0x5f9ea0},
       
   335 #line 159 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   336     {"wheat", 0xf5deb3},
       
   337 #line 80 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   338     {"lawngreen", 0x7cfc00},
       
   339 #line 160 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   340     {"white", 0xffffff},
       
   341 #line 15 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   342     {"aliceblue", 0xf0f8ff},
       
   343 #line 30 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   344     {"chocolate", 0xd2691e},
       
   345 #line 163 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   346     {"yellowgreen", 0x9acd32},
       
   347 #line 115 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   348     {"moccasin", 0xffe4b5},
       
   349 #line 117 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   350     {"navy", 0x000080},
       
   351 #line 29 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   352     {"chartreuse", 0x7fff00},
       
   353 #line 76 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   354     {"ivory", 0xfffff0},
       
   355 #line 125 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   356     {"palegreen", 0x98fb98},
       
   357 #line 78 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   358     {"lavender", 0xe6e6fa},
       
   359 #line 73 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   360     {"hotpink", 0xff69b4},
       
   361 #line 119 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   362     {"olive", 0x808000},
       
   363 #line 63 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   364     {"fuchsia", 0xff00ff},
       
   365 #line 107 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   366     {"mediumseagreen", 0x3cb371},
       
   367 #line 144 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   368     {"silver", 0xc0c0c0},
       
   369 #line 120 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   370     {"olivedrab", 0x6b8e23},
       
   371 #line 53 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   372     {"darkturquoise", 0x00ced1},
       
   373 #line 156 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   374     {"turquoise", 0x40e0d0},
       
   375 #line 157 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   376     {"violet", 0xee82ee},
       
   377 #line 158 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   378     {"violetred", 0xd02090},
       
   379 #line 54 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   380     {"darkviolet", 0x9400d3},
       
   381 #line 124 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   382     {"palegoldenrod", 0xeee8aa},
       
   383 #line 161 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   384     {"whitesmoke", 0xf5f5f5},
       
   385 #line 150 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   386     {"springgreen", 0x00ff7f},
       
   387 #line 27 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   388     {"burlywood", 0xdeb887},
       
   389 #line 130 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   390     {"peru", 0xcd853f},
       
   391 #line 61 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   392     {"floralwhite", 0xfffaf0},
       
   393 #line 89 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   394     {"lightpink", 0xffb6c1},
       
   395 #line 44 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   396     {"darkolivegreen", 0x556b2f},
       
   397 #line 65 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   398     {"ghostwhite", 0xf8f8ff},
       
   399 #line 104 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   400     {"mediumblue", 0x0000cd},
       
   401 #line 105 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   402     {"mediumorchid", 0xba55d3},
       
   403 #line 96 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   404     {"lightsteelblue", 0xb0c4de},
       
   405 #line 93 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   406     {"lightslateblue", 0x8470ff},
       
   407 #line 56 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   408     {"deepskyblue", 0x00bfff},
       
   409 #line 92 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   410     {"lightskyblue", 0x87cefa},
       
   411 #line 85 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   412     {"lightgoldenrodyellow", 0xfafad2},
       
   413 #line 132 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   414     {"plum", 0xdda0dd},
       
   415 #line 103 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   416     {"mediumaquamarine", 0x66cdaa},
       
   417 #line 108 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   418     {"mediumslateblue", 0x7b68ee},
       
   419 #line 25 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   420     {"blueviolet", 0x8a2be2},
       
   421 #line 112 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   422     {"midnightblue", 0x191970},
       
   423 #line 55 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   424     {"deeppink", 0xff1493},
       
   425 #line 81 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   426     {"lemonchiffon", 0xfffacd},
       
   427 #line 16 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   428     {"antiquewhite", 0xfaebd7},
       
   429 #line 126 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   430     {"paleturquoise", 0xafeeee},
       
   431 #line 133 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   432     {"powderblue", 0xb0e0e6},
       
   433 #line 116 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   434     {"navajowhite", 0xffdead},
       
   435 #line 109 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   436     {"mediumspringgreen", 0x00fa9a},
       
   437 #line 32 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   438     {"cornflowerblue", 0x6495ed},
       
   439 #line 127 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   440     {"palevioletred", 0xd87093},
       
   441 #line 111 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   442     {"mediumvioletred", 0xc71585},
       
   443 #line 134 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   444     {"purple", 0x800080},
       
   445 #line 79 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   446     {"lavenderblush", 0xfff0f5},
       
   447 #line 110 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   448     {"mediumturquoise", 0x48d1cc},
       
   449 #line 129 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   450     {"peachpuff", 0xffdab9},
       
   451 #line 106 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   452     {"mediumpurple", 0x9370d8},
       
   453 #line 128 "U:/yaels-qtwebkit/WebCore/platform/ColorData.gperf"
       
   454     {"papayawhip", 0xffefd5}
       
   455   };
       
   456 
       
   457 static const short lookup[] =
       
   458   {
       
   459      -1,  -1,  -1,   0,  -1,  -1,  -1,  -1,  -1,  -1,
       
   460      -1,  -1,   1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   461      -1,  -1,  -1,   2,  -1,  -1,  -1,  -1,  -1,  -1,
       
   462       3,   4,  -1,  -1,   5,  -1,  -1,  -1,  -1,   6,
       
   463      -1,  -1,  -1,  -1,   7,   8,  -1,  -1,  -1,   9,
       
   464      -1,  -1,  -1,  10,  11,  12,  13,  -1,  14,  15,
       
   465      16,  -1,  -1,  17,  18,  19,  -1,  -1,  -1,  20,
       
   466      -1,  21,  -1,  -1,  22,  -1,  -1,  -1,  -1,  -1,
       
   467      -1,  23,  -1,  -1,  24,  -1,  -1,  -1,  -1,  25,
       
   468      -1,  26,  -1,  27,  28,  -1,  -1,  -1,  -1,  29,
       
   469      -1,  30,  31,  32,  -1,  -1,  -1,  -1,  -1,  -1,
       
   470      33,  34,  35,  36,  37,  -1,  38,  39,  40,  41,
       
   471      -1,  -1,  42,  43,  -1,  -1,  -1,  -1,  -1,  -1,
       
   472      44,  -1,  45,  -1,  46,  47,  48,  -1,  -1,  -1,
       
   473      49,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  50,
       
   474      -1,  -1,  51,  52,  -1,  -1,  -1,  -1,  53,  -1,
       
   475      -1,  -1,  54,  -1,  55,  -1,  56,  -1,  -1,  57,
       
   476      58,  59,  -1,  -1,  60,  61,  -1,  -1,  -1,  62,
       
   477      -1,  -1,  -1,  -1,  63,  -1,  -1,  -1,  -1,  -1,
       
   478      -1,  -1,  -1,  -1,  64,  -1,  65,  66,  -1,  67,
       
   479      68,  -1,  -1,  -1,  69,  -1,  -1,  -1,  -1,  -1,
       
   480      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  70,  71,
       
   481      -1,  -1,  -1,  -1,  72,  73,  -1,  -1,  -1,  -1,
       
   482      -1,  74,  -1,  -1,  75,  -1,  -1,  -1,  -1,  76,
       
   483      -1,  -1,  -1,  -1,  77,  78,  -1,  -1,  -1,  -1,
       
   484      -1,  -1,  -1,  79,  -1,  -1,  80,  -1,  -1,  -1,
       
   485      81,  -1,  -1,  -1,  82,  83,  84,  -1,  85,  86,
       
   486      -1,  -1,  -1,  -1,  87,  -1,  -1,  -1,  -1,  88,
       
   487      89,  -1,  -1,  -1,  90,  91,  -1,  -1,  -1,  92,
       
   488      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   489      -1,  -1,  -1,  -1,  93,  -1,  94,  -1,  95,  96,
       
   490      -1,  -1,  -1,  -1,  -1,  97,  -1,  -1,  -1,  -1,
       
   491      98,  -1,  -1,  -1,  99,  -1,  -1,  -1, 100,  -1,
       
   492      -1,  -1, 101,  -1,  -1, 102,  -1, 103,  -1, 104,
       
   493      -1, 105,  -1,  -1, 106,  -1,  -1,  -1, 107, 108,
       
   494      -1, 109,  -1,  -1, 110,  -1,  -1,  -1,  -1,  -1,
       
   495     111,  -1,  -1, 112,  -1, 113,  -1,  -1,  -1,  -1,
       
   496      -1, 114,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 115,
       
   497      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 116,
       
   498      -1, 117,  -1,  -1, 118,  -1,  -1,  -1,  -1, 119,
       
   499     120,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   500      -1,  -1,  -1,  -1,  -1, 121,  -1,  -1,  -1,  -1,
       
   501      -1,  -1, 122,  -1, 123,  -1,  -1,  -1,  -1, 124,
       
   502      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   503      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   504      -1, 125,  -1,  -1,  -1,  -1,  -1, 126,  -1,  -1,
       
   505     127,  -1,  -1,  -1, 128,  -1,  -1,  -1,  -1,  -1,
       
   506      -1, 129,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   507      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   508      -1,  -1,  -1,  -1,  -1, 130,  -1,  -1,  -1,  -1,
       
   509     131,  -1, 132,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   510      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   511      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 133,  -1,
       
   512      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   513      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   514      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   515      -1,  -1, 134,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   516      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   517      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   518      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   519      -1,  -1,  -1,  -1,  -1,  -1,  -1, 135,  -1,  -1,
       
   520      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 136,  -1,
       
   521      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   522     137,  -1,  -1,  -1,  -1,  -1, 138, 139,  -1, 140,
       
   523      -1,  -1,  -1, 141,  -1,  -1,  -1,  -1,  -1,  -1,
       
   524     142,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   525      -1, 143,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   526      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   527      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   528      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 144,  -1,
       
   529      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   530      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   531      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   532      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   533      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   534      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   535      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   536      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   537      -1,  -1,  -1,  -1,  -1, 145,  -1,  -1,  -1,  -1,
       
   538      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   539      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   540      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   541      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   542      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   543      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   544      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1, 146,
       
   545      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   546      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   547      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   548      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   549      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   550      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   551      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   552      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   553      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   554      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   555      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   556      -1,  -1, 147,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   557      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   558      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   559      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   560      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   561      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   562      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   563      -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,  -1,
       
   564      -1,  -1,  -1,  -1,  -1, 148
       
   565   };
       
   566 
       
   567 #ifdef __GNUC__
       
   568 __inline
       
   569 #endif
       
   570 const struct NamedColor *
       
   571 findColor (register const char *str, register unsigned int len)
       
   572 {
       
   573   if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
       
   574     {
       
   575       register int key = colordata_hash_function (str, len);
       
   576 
       
   577       if (key <= MAX_HASH_VALUE && key >= 0)
       
   578         {
       
   579           register int index = lookup[key];
       
   580 
       
   581           if (index >= 0)
       
   582             {
       
   583               register const char *s = wordlist[index].name;
       
   584 
       
   585               if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
       
   586                 return &wordlist[index];
       
   587             }
       
   588         }
       
   589     }
       
   590   return 0;
       
   591 }