| 1 | /* C++ code produced by gperf version 3.1 */ |
| 2 | /* Command-line: /usr/bin/gperf --key-positions='*' -D -s 2 --output-file=/home/ubuntu/webkit/WebKitBuild/Debug/DerivedSources/WebCore/ColorData.cpp /home/ubuntu/webkit/Source/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-gperf@gnu.org>." |
| 29 | #endif |
| 30 | |
| 31 | #line 1 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 32 | |
| 33 | #include "HashTools.h" |
| 34 | #include <string.h> |
| 35 | #include <wtf/Compiler.h> |
| 36 | |
| 37 | IGNORE_WARNINGS_BEGIN("implicit-fallthrough" ) |
| 38 | |
| 39 | // Older versions of gperf like to use the `register` keyword. |
| 40 | #define register |
| 41 | |
| 42 | namespace WebCore { |
| 43 | enum |
| 44 | { |
| 45 | TOTAL_KEYWORDS = 151, |
| 46 | MIN_WORD_LENGTH = 3, |
| 47 | MAX_WORD_LENGTH = 20, |
| 48 | MIN_HASH_VALUE = 3, |
| 49 | MAX_HASH_VALUE = 1055 |
| 50 | }; |
| 51 | |
| 52 | /* maximum key range = 1053, duplicates = 0 */ |
| 53 | |
| 54 | class ColorDataHash |
| 55 | { |
| 56 | private: |
| 57 | static inline unsigned int colordata_hash_function (const char *str, size_t len); |
| 58 | public: |
| 59 | static const struct NamedColor *findColorImpl (const char *str, size_t len); |
| 60 | }; |
| 61 | |
| 62 | inline unsigned int |
| 63 | ColorDataHash::colordata_hash_function (const char *str, size_t len) |
| 64 | { |
| 65 | static const unsigned short asso_values[] = |
| 66 | { |
| 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, 1056, 1056, 1056, |
| 70 | 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, |
| 71 | 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, |
| 72 | 1056, 1056, 1056, 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, 5, 0, 105, |
| 77 | 0, 0, 30, 40, 40, 10, 0, 0, 15, 60, |
| 78 | 0, 5, 255, 40, 0, 10, 15, 130, 300, 215, |
| 79 | 5, 0, 0, 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, 1056, 1056, 1056, |
| 86 | 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, |
| 87 | 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, |
| 88 | 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, |
| 89 | 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, |
| 90 | 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, |
| 91 | 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, 1056, |
| 92 | 1056, 1056, 1056, 1056, 1056, 1056, 1056 |
| 93 | }; |
| 94 | unsigned int hval = len; |
| 95 | |
| 96 | switch (hval) |
| 97 | { |
| 98 | default: |
| 99 | hval += asso_values[static_cast<unsigned char>(str[19])]; |
| 100 | /*FALLTHROUGH*/ |
| 101 | case 19: |
| 102 | hval += asso_values[static_cast<unsigned char>(str[18])]; |
| 103 | /*FALLTHROUGH*/ |
| 104 | case 18: |
| 105 | hval += asso_values[static_cast<unsigned char>(str[17])]; |
| 106 | /*FALLTHROUGH*/ |
| 107 | case 17: |
| 108 | hval += asso_values[static_cast<unsigned char>(str[16])]; |
| 109 | /*FALLTHROUGH*/ |
| 110 | case 16: |
| 111 | hval += asso_values[static_cast<unsigned char>(str[15])]; |
| 112 | /*FALLTHROUGH*/ |
| 113 | case 15: |
| 114 | hval += asso_values[static_cast<unsigned char>(str[14])]; |
| 115 | /*FALLTHROUGH*/ |
| 116 | case 14: |
| 117 | hval += asso_values[static_cast<unsigned char>(str[13])]; |
| 118 | /*FALLTHROUGH*/ |
| 119 | case 13: |
| 120 | hval += asso_values[static_cast<unsigned char>(str[12])]; |
| 121 | /*FALLTHROUGH*/ |
| 122 | case 12: |
| 123 | hval += asso_values[static_cast<unsigned char>(str[11])]; |
| 124 | /*FALLTHROUGH*/ |
| 125 | case 11: |
| 126 | hval += asso_values[static_cast<unsigned char>(str[10]+1)]; |
| 127 | /*FALLTHROUGH*/ |
| 128 | case 10: |
| 129 | hval += asso_values[static_cast<unsigned char>(str[9])]; |
| 130 | /*FALLTHROUGH*/ |
| 131 | case 9: |
| 132 | hval += asso_values[static_cast<unsigned char>(str[8])]; |
| 133 | /*FALLTHROUGH*/ |
| 134 | case 8: |
| 135 | hval += asso_values[static_cast<unsigned char>(str[7])]; |
| 136 | /*FALLTHROUGH*/ |
| 137 | case 7: |
| 138 | hval += asso_values[static_cast<unsigned char>(str[6])]; |
| 139 | /*FALLTHROUGH*/ |
| 140 | case 6: |
| 141 | hval += asso_values[static_cast<unsigned char>(str[5])]; |
| 142 | /*FALLTHROUGH*/ |
| 143 | case 5: |
| 144 | hval += asso_values[static_cast<unsigned char>(str[4])]; |
| 145 | /*FALLTHROUGH*/ |
| 146 | case 4: |
| 147 | hval += asso_values[static_cast<unsigned char>(str[3])]; |
| 148 | /*FALLTHROUGH*/ |
| 149 | case 3: |
| 150 | hval += asso_values[static_cast<unsigned char>(str[2])]; |
| 151 | /*FALLTHROUGH*/ |
| 152 | case 2: |
| 153 | hval += asso_values[static_cast<unsigned char>(str[1])]; |
| 154 | /*FALLTHROUGH*/ |
| 155 | case 1: |
| 156 | hval += asso_values[static_cast<unsigned char>(str[0])]; |
| 157 | break; |
| 158 | } |
| 159 | return hval; |
| 160 | } |
| 161 | |
| 162 | static const struct NamedColor wordlist[] = |
| 163 | { |
| 164 | #line 146 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 165 | {"red" , 0xffff0000}, |
| 166 | #line 57 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 167 | {"darkred" , 0xff8b0000}, |
| 168 | #line 163 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 169 | {"tan" , 0xffd2b48c}, |
| 170 | #line 110 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 171 | {"linen" , 0xfffaf0e6}, |
| 172 | #line 154 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 173 | {"sienna" , 0xffa0522d}, |
| 174 | #line 84 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 175 | {"indianred" , 0xffcd5c5c}, |
| 176 | #line 164 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 177 | {"teal" , 0xff008080}, |
| 178 | #line 79 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 179 | {"grey" , 0xff808080}, |
| 180 | #line 80 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 181 | {"green" , 0xff008000}, |
| 182 | #line 78 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 183 | {"gray" , 0xff808080}, |
| 184 | #line 50 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 185 | {"darkgrey" , 0xffa9a9a9}, |
| 186 | #line 51 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 187 | {"darkgreen" , 0xff006400}, |
| 188 | #line 30 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 189 | {"beige" , 0xfff5f5dc}, |
| 190 | #line 131 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 191 | {"orange" , 0xffffa500}, |
| 192 | #line 49 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 193 | {"darkgray" , 0xffa9a9a9}, |
| 194 | #line 132 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 195 | {"orangered" , 0xffff4500}, |
| 196 | #line 87 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 197 | {"khaki" , 0xfff0e68c}, |
| 198 | #line 152 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 199 | {"seagreen" , 0xff2e8b57}, |
| 200 | #line 76 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 201 | {"gold" , 0xffffd700}, |
| 202 | #line 55 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 203 | {"darkorange" , 0xffff8c00}, |
| 204 | #line 52 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 205 | {"darkkhaki" , 0xffbdb76b}, |
| 206 | #line 85 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 207 | {"indigo" , 0xff4b0082}, |
| 208 | #line 77 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 209 | {"goldenrod" , 0xffdaa520}, |
| 210 | #line 112 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 211 | {"maroon" , 0xff800000}, |
| 212 | #line 74 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 213 | {"gainsboro" , 0xffdcdcdc}, |
| 214 | #line 108 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 215 | {"lime" , 0xff00ff00}, |
| 216 | #line 81 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 217 | {"greenyellow" , 0xffadff2f}, |
| 218 | #line 48 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 219 | {"darkgoldenrod" , 0xffb8860b}, |
| 220 | #line 159 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 221 | {"slategrey" , 0xff708090}, |
| 222 | #line 158 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 223 | {"slategray" , 0xff708090}, |
| 224 | #line 150 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 225 | {"salmon" , 0xfffa8072}, |
| 226 | #line 59 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 227 | {"darkseagreen" , 0xff8fbc8f}, |
| 228 | #line 153 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 229 | {"seashell" , 0xfffff5ee}, |
| 230 | #line 58 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 231 | {"darksalmon" , 0xffe9967a}, |
| 232 | #line 166 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 233 | {"tomato" , 0xffff6347}, |
| 234 | #line 165 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 235 | {"thistle" , 0xffd8bfd8}, |
| 236 | #line 62 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 237 | {"darkslategrey" , 0xff2f4f4f}, |
| 238 | #line 45 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 239 | {"cyan" , 0xff00ffff}, |
| 240 | #line 72 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 241 | {"forestgreen" , 0xff228b22}, |
| 242 | #line 68 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 243 | {"dimgrey" , 0xff696969}, |
| 244 | #line 61 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 245 | {"darkslategray" , 0xff2f4f4f}, |
| 246 | #line 124 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 247 | {"mistyrose" , 0xffffe4e1}, |
| 248 | #line 67 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 249 | {"dimgray" , 0xff696969}, |
| 250 | #line 47 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 251 | {"darkcyan" , 0xff008b8b}, |
| 252 | #line 32 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 253 | {"black" , 0xff000000}, |
| 254 | #line 111 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 255 | {"magenta" , 0xffff00ff}, |
| 256 | #line 109 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 257 | {"limegreen" , 0xff32cd32}, |
| 258 | #line 41 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 259 | {"coral" , 0xffff7f50}, |
| 260 | #line 53 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 261 | {"darkmagenta" , 0xff8b008b}, |
| 262 | #line 29 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 263 | {"azure" , 0xfff0ffff}, |
| 264 | #line 34 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 265 | {"blue" , 0xff0000ff}, |
| 266 | #line 128 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 267 | {"oldlace" , 0xfffdf5e6}, |
| 268 | #line 43 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 269 | {"cornsilk" , 0xfffff8dc}, |
| 270 | #line 46 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 271 | {"darkblue" , 0xff00008b}, |
| 272 | #line 156 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 273 | {"skyblue" , 0xff87ceeb}, |
| 274 | #line 70 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 275 | {"firebrick" , 0xffb22222}, |
| 276 | #line 133 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 277 | {"orchid" , 0xffda70d6}, |
| 278 | #line 97 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 279 | {"lightgrey" , 0xffd3d3d3}, |
| 280 | #line 98 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 281 | {"lightgreen" , 0xff90ee90}, |
| 282 | #line 107 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 283 | {"lightyellow" , 0xffffffe0}, |
| 284 | #line 96 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 285 | {"lightgray" , 0xffd3d3d3}, |
| 286 | #line 56 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 287 | {"darkorchid" , 0xff9932cc}, |
| 288 | #line 148 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 289 | {"royalblue" , 0xff4169e1}, |
| 290 | #line 27 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 291 | {"aqua" , 0xff00ffff}, |
| 292 | #line 162 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 293 | {"steelblue" , 0xff4682b4}, |
| 294 | #line 31 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 295 | {"bisque" , 0xffffe4c4}, |
| 296 | #line 44 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 297 | {"crimson" , 0xffdc143c}, |
| 298 | #line 157 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 299 | {"slateblue" , 0xff6a5acd}, |
| 300 | #line 69 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 301 | {"dodgerblue" , 0xff1e90ff}, |
| 302 | #line 33 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 303 | {"blanchedalmond" , 0xffffebcd}, |
| 304 | #line 101 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 305 | {"lightseagreen" , 0xff20b2aa}, |
| 306 | #line 105 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 307 | {"lightslategrey" , 0xff778899}, |
| 308 | #line 104 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 309 | {"lightslategray" , 0xff778899}, |
| 310 | #line 36 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 311 | {"brown" , 0xffa52a2a}, |
| 312 | #line 100 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 313 | {"lightsalmon" , 0xffffa07a}, |
| 314 | #line 160 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 315 | {"snow" , 0xfffffafa}, |
| 316 | #line 94 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 317 | {"lightcyan" , 0xffe0ffff}, |
| 318 | #line 147 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 319 | {"rosybrown" , 0xffbc8f8f}, |
| 320 | #line 151 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 321 | {"sandybrown" , 0xfff4a460}, |
| 322 | #line 60 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 323 | {"darkslateblue" , 0xff483d8b}, |
| 324 | #line 174 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 325 | {"yellow" , 0xffffff00}, |
| 326 | #line 93 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 327 | {"lightcoral" , 0xfff08080}, |
| 328 | #line 123 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 329 | {"mintcream" , 0xfff5fffa}, |
| 330 | #line 28 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 331 | {"aquamarine" , 0xff7fffd4}, |
| 332 | #line 149 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 333 | {"saddlebrown" , 0xff8b4513}, |
| 334 | #line 82 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 335 | {"honeydew" , 0xfff0fff0}, |
| 336 | #line 141 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 337 | {"pink" , 0xffffc0cb}, |
| 338 | #line 92 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 339 | {"lightblue" , 0xffadd8e6}, |
| 340 | #line 38 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 341 | {"cadetblue" , 0xff5f9ea0}, |
| 342 | #line 171 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 343 | {"wheat" , 0xfff5deb3}, |
| 344 | #line 90 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 345 | {"lawngreen" , 0xff7cfc00}, |
| 346 | #line 172 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 347 | {"white" , 0xffffffff}, |
| 348 | #line 25 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 349 | {"aliceblue" , 0xfff0f8ff}, |
| 350 | #line 40 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 351 | {"chocolate" , 0xffd2691e}, |
| 352 | #line 175 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 353 | {"yellowgreen" , 0xff9acd32}, |
| 354 | #line 125 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 355 | {"moccasin" , 0xffffe4b5}, |
| 356 | #line 127 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 357 | {"navy" , 0xff000080}, |
| 358 | #line 39 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 359 | {"chartreuse" , 0xff7fff00}, |
| 360 | #line 86 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 361 | {"ivory" , 0xfffffff0}, |
| 362 | #line 135 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 363 | {"palegreen" , 0xff98fb98}, |
| 364 | #line 88 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 365 | {"lavender" , 0xffe6e6fa}, |
| 366 | #line 83 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 367 | {"hotpink" , 0xffff69b4}, |
| 368 | #line 129 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 369 | {"olive" , 0xff808000}, |
| 370 | #line 73 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 371 | {"fuchsia" , 0xffff00ff}, |
| 372 | #line 117 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 373 | {"mediumseagreen" , 0xff3cb371}, |
| 374 | #line 155 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 375 | {"silver" , 0xffc0c0c0}, |
| 376 | #line 130 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 377 | {"olivedrab" , 0xff6b8e23}, |
| 378 | #line 63 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 379 | {"darkturquoise" , 0xff00ced1}, |
| 380 | #line 168 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 381 | {"turquoise" , 0xff40e0d0}, |
| 382 | #line 169 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 383 | {"violet" , 0xffee82ee}, |
| 384 | #line 170 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 385 | {"violetred" , 0xffd02090}, |
| 386 | #line 64 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 387 | {"darkviolet" , 0xff9400d3}, |
| 388 | #line 134 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 389 | {"palegoldenrod" , 0xffeee8aa}, |
| 390 | #line 173 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 391 | {"whitesmoke" , 0xfff5f5f5}, |
| 392 | #line 161 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 393 | {"springgreen" , 0xff00ff7f}, |
| 394 | #line 37 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 395 | {"burlywood" , 0xffdeb887}, |
| 396 | #line 140 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 397 | {"peru" , 0xffcd853f}, |
| 398 | #line 71 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 399 | {"floralwhite" , 0xfffffaf0}, |
| 400 | #line 99 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 401 | {"lightpink" , 0xffffb6c1}, |
| 402 | #line 54 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 403 | {"darkolivegreen" , 0xff556b2f}, |
| 404 | #line 75 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 405 | {"ghostwhite" , 0xfff8f8ff}, |
| 406 | #line 114 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 407 | {"mediumblue" , 0xff0000cd}, |
| 408 | #line 115 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 409 | {"mediumorchid" , 0xffba55d3}, |
| 410 | #line 106 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 411 | {"lightsteelblue" , 0xffb0c4de}, |
| 412 | #line 103 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 413 | {"lightslateblue" , 0xff8470ff}, |
| 414 | #line 167 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 415 | {"transparent" , 0x00000000}, |
| 416 | #line 66 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 417 | {"deepskyblue" , 0xff00bfff}, |
| 418 | #line 102 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 419 | {"lightskyblue" , 0xff87cefa}, |
| 420 | #line 95 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 421 | {"lightgoldenrodyellow" , 0xfffafad2}, |
| 422 | #line 142 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 423 | {"plum" , 0xffdda0dd}, |
| 424 | #line 113 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 425 | {"mediumaquamarine" , 0xff66cdaa}, |
| 426 | #line 118 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 427 | {"mediumslateblue" , 0xff7b68ee}, |
| 428 | #line 35 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 429 | {"blueviolet" , 0xff8a2be2}, |
| 430 | #line 122 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 431 | {"midnightblue" , 0xff191970}, |
| 432 | #line 65 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 433 | {"deeppink" , 0xffff1493}, |
| 434 | #line 91 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 435 | {"lemonchiffon" , 0xfffffacd}, |
| 436 | #line 26 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 437 | {"antiquewhite" , 0xfffaebd7}, |
| 438 | #line 136 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 439 | {"paleturquoise" , 0xffafeeee}, |
| 440 | #line 143 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 441 | {"powderblue" , 0xffb0e0e6}, |
| 442 | #line 126 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 443 | {"navajowhite" , 0xffffdead}, |
| 444 | #line 119 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 445 | {"mediumspringgreen" , 0xff00fa9a}, |
| 446 | #line 42 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 447 | {"cornflowerblue" , 0xff6495ed}, |
| 448 | #line 137 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 449 | {"palevioletred" , 0xffdb7093}, |
| 450 | #line 121 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 451 | {"mediumvioletred" , 0xffc71585}, |
| 452 | #line 144 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 453 | {"purple" , 0xff800080}, |
| 454 | #line 145 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 455 | {"rebeccapurple" , 0xff663399}, |
| 456 | #line 89 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 457 | {"lavenderblush" , 0xfffff0f5}, |
| 458 | #line 120 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 459 | {"mediumturquoise" , 0xff48d1cc}, |
| 460 | #line 139 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 461 | {"peachpuff" , 0xffffdab9}, |
| 462 | #line 116 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 463 | {"mediumpurple" , 0xff9370db}, |
| 464 | #line 138 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 465 | {"papayawhip" , 0xffffefd5} |
| 466 | }; |
| 467 | |
| 468 | static const short lookup[] = |
| 469 | { |
| 470 | -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, |
| 471 | -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, |
| 472 | -1, -1, -1, 2, -1, -1, -1, -1, -1, -1, |
| 473 | 3, 4, -1, -1, 5, -1, -1, -1, -1, 6, |
| 474 | -1, -1, -1, -1, 7, 8, -1, -1, -1, 9, |
| 475 | -1, -1, -1, 10, 11, 12, 13, -1, 14, 15, |
| 476 | 16, -1, -1, 17, 18, 19, -1, -1, -1, 20, |
| 477 | -1, 21, -1, -1, 22, -1, -1, -1, -1, -1, |
| 478 | -1, 23, -1, -1, 24, -1, -1, -1, -1, 25, |
| 479 | -1, 26, -1, 27, 28, -1, -1, -1, -1, 29, |
| 480 | -1, 30, 31, 32, -1, -1, -1, -1, -1, -1, |
| 481 | 33, 34, 35, 36, 37, -1, 38, 39, 40, 41, |
| 482 | -1, -1, 42, 43, -1, -1, -1, -1, -1, -1, |
| 483 | 44, -1, 45, -1, 46, 47, 48, -1, -1, -1, |
| 484 | 49, -1, -1, -1, -1, -1, -1, -1, -1, 50, |
| 485 | -1, -1, 51, 52, -1, -1, -1, -1, 53, -1, |
| 486 | -1, -1, 54, -1, 55, -1, 56, -1, -1, 57, |
| 487 | 58, 59, -1, -1, 60, 61, -1, -1, -1, 62, |
| 488 | -1, -1, -1, -1, 63, -1, -1, -1, -1, -1, |
| 489 | -1, -1, -1, -1, 64, -1, 65, 66, -1, 67, |
| 490 | 68, -1, -1, -1, 69, -1, -1, -1, -1, -1, |
| 491 | -1, -1, -1, -1, -1, -1, -1, -1, 70, 71, |
| 492 | -1, -1, -1, -1, 72, 73, -1, -1, -1, -1, |
| 493 | -1, 74, -1, -1, 75, -1, -1, -1, -1, 76, |
| 494 | -1, -1, -1, -1, 77, 78, -1, -1, -1, -1, |
| 495 | -1, -1, -1, 79, -1, -1, 80, -1, -1, -1, |
| 496 | 81, -1, -1, -1, 82, 83, 84, -1, 85, 86, |
| 497 | -1, -1, -1, -1, 87, -1, -1, -1, -1, 88, |
| 498 | 89, -1, -1, -1, 90, 91, -1, -1, -1, 92, |
| 499 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 500 | -1, -1, -1, -1, 93, -1, 94, -1, 95, 96, |
| 501 | -1, -1, -1, -1, -1, 97, -1, -1, -1, -1, |
| 502 | 98, -1, -1, -1, 99, -1, -1, -1, 100, -1, |
| 503 | -1, -1, 101, -1, -1, 102, -1, 103, -1, 104, |
| 504 | -1, 105, -1, -1, 106, -1, -1, -1, 107, 108, |
| 505 | -1, 109, -1, -1, 110, -1, -1, -1, -1, -1, |
| 506 | 111, -1, -1, 112, -1, 113, -1, -1, -1, -1, |
| 507 | -1, 114, -1, -1, -1, -1, -1, -1, -1, 115, |
| 508 | -1, -1, -1, -1, -1, -1, -1, -1, -1, 116, |
| 509 | -1, 117, -1, -1, 118, -1, -1, -1, -1, 119, |
| 510 | 120, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 511 | -1, -1, -1, -1, -1, 121, -1, -1, -1, -1, |
| 512 | -1, -1, 122, -1, 123, -1, -1, -1, -1, 124, |
| 513 | -1, 125, -1, -1, -1, -1, -1, -1, -1, -1, |
| 514 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 515 | -1, 126, -1, -1, -1, -1, -1, 127, -1, -1, |
| 516 | 128, -1, -1, -1, 129, -1, -1, -1, -1, -1, |
| 517 | -1, 130, -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, 131, -1, -1, -1, -1, |
| 520 | 132, -1, 133, -1, -1, -1, -1, -1, -1, -1, |
| 521 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 522 | -1, -1, -1, -1, -1, -1, -1, -1, 134, -1, |
| 523 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 524 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 525 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 526 | -1, -1, 135, -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, -1, -1, |
| 529 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 530 | -1, -1, -1, -1, -1, -1, -1, 136, -1, -1, |
| 531 | -1, -1, -1, -1, -1, -1, -1, -1, 137, -1, |
| 532 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 533 | 138, -1, -1, -1, -1, -1, 139, 140, -1, 141, |
| 534 | -1, -1, -1, 142, -1, -1, -1, -1, -1, -1, |
| 535 | 143, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 536 | -1, 144, -1, -1, -1, -1, -1, -1, 145, -1, |
| 537 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 538 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 539 | -1, -1, -1, -1, -1, -1, -1, -1, 146, -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, -1, |
| 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, 147, -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, 148, |
| 556 | -1, -1, -1, -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, -1, -1, -1, -1, -1, |
| 565 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 566 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 567 | -1, -1, 149, -1, -1, -1, -1, -1, -1, -1, |
| 568 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 569 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 570 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 571 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 572 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 573 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 574 | -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, |
| 575 | -1, -1, -1, -1, -1, 150 |
| 576 | }; |
| 577 | |
| 578 | const struct NamedColor * |
| 579 | ColorDataHash::findColorImpl (const char *str, size_t len) |
| 580 | { |
| 581 | if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) |
| 582 | { |
| 583 | unsigned int key = colordata_hash_function (str, len); |
| 584 | |
| 585 | if (key <= MAX_HASH_VALUE) |
| 586 | { |
| 587 | int index = lookup[key]; |
| 588 | |
| 589 | if (index >= 0) |
| 590 | { |
| 591 | const char *s = wordlist[index].name; |
| 592 | |
| 593 | if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0') |
| 594 | return &wordlist[index]; |
| 595 | } |
| 596 | } |
| 597 | } |
| 598 | return 0; |
| 599 | } |
| 600 | #line 176 "/home/ubuntu/webkit/Source/WebCore/platform/ColorData.gperf" |
| 601 | |
| 602 | const struct NamedColor* findColor(const char* str, unsigned int len) |
| 603 | { |
| 604 | return ColorDataHash::findColorImpl(str, len); |
| 605 | } |
| 606 | |
| 607 | } // namespace WebCore |
| 608 | |
| 609 | IGNORE_WARNINGS_END |
| 610 | |