1%{ 2#include "HashTools.h" 3#include <string.h> 4 5namespace WebCore { 6%} 7%struct-type 8struct NamedColor; 9%omit-struct-type 10%language=C++ 11%readonly-tables 12%global-table 13%compare-strncmp 14%define class-name ColorDataHash 15%define lookup-function-name findColorImpl 16%define hash-function-name colordata_hash_function 17%enum 18%% 19aliceblue, 0xfff0f8ff 20antiquewhite, 0xfffaebd7 21aqua, 0xff00ffff 22aquamarine, 0xff7fffd4 23azure, 0xfff0ffff 24beige, 0xfff5f5dc 25bisque, 0xffffe4c4 26black, 0xff000000 27blanchedalmond, 0xffffebcd 28blue, 0xff0000ff 29blueviolet, 0xff8a2be2 30brown, 0xffa52a2a 31burlywood, 0xffdeb887 32cadetblue, 0xff5f9ea0 33chartreuse, 0xff7fff00 34chocolate, 0xffd2691e 35coral, 0xffff7f50 36cornflowerblue, 0xff6495ed 37cornsilk, 0xfffff8dc 38crimson, 0xffdc143c 39cyan, 0xff00ffff 40darkblue, 0xff00008b 41darkcyan, 0xff008b8b 42darkgoldenrod, 0xffb8860b 43darkgray, 0xffa9a9a9 44darkgrey, 0xffa9a9a9 45darkgreen, 0xff006400 46darkkhaki, 0xffbdb76b 47darkmagenta, 0xff8b008b 48darkolivegreen, 0xff556b2f 49darkorange, 0xffff8c00 50darkorchid, 0xff9932cc 51darkred, 0xff8b0000 52darksalmon, 0xffe9967a 53darkseagreen, 0xff8fbc8f 54darkslateblue, 0xff483d8b 55darkslategray, 0xff2f4f4f 56darkslategrey, 0xff2f4f4f 57darkturquoise, 0xff00ced1 58darkviolet, 0xff9400d3 59deeppink, 0xffff1493 60deepskyblue, 0xff00bfff 61dimgray, 0xff696969 62dimgrey, 0xff696969 63dodgerblue, 0xff1e90ff 64firebrick, 0xffb22222 65floralwhite, 0xfffffaf0 66forestgreen, 0xff228b22 67fuchsia, 0xffff00ff 68gainsboro, 0xffdcdcdc 69ghostwhite, 0xfff8f8ff 70gold, 0xffffd700 71goldenrod, 0xffdaa520 72gray, 0xff808080 73grey, 0xff808080 74green, 0xff008000 75greenyellow, 0xffadff2f 76honeydew, 0xfff0fff0 77hotpink, 0xffff69b4 78indianred, 0xffcd5c5c 79indigo, 0xff4b0082 80ivory, 0xfffffff0 81khaki, 0xfff0e68c 82lavender, 0xffe6e6fa 83lavenderblush, 0xfffff0f5 84lawngreen, 0xff7cfc00 85lemonchiffon, 0xfffffacd 86lightblue, 0xffadd8e6 87lightcoral, 0xfff08080 88lightcyan, 0xffe0ffff 89lightgoldenrodyellow, 0xfffafad2 90lightgray, 0xffd3d3d3 91lightgrey, 0xffd3d3d3 92lightgreen, 0xff90ee90 93lightpink, 0xffffb6c1 94lightsalmon, 0xffffa07a 95lightseagreen, 0xff20b2aa 96lightskyblue, 0xff87cefa 97lightslateblue, 0xff8470ff 98lightslategray, 0xff778899 99lightslategrey, 0xff778899 100lightsteelblue, 0xffb0c4de 101lightyellow, 0xffffffe0 102lime, 0xff00ff00 103limegreen, 0xff32cd32 104linen, 0xfffaf0e6 105magenta, 0xffff00ff 106maroon, 0xff800000 107mediumaquamarine, 0xff66cdaa 108mediumblue, 0xff0000cd 109mediumorchid, 0xffba55d3 110mediumpurple, 0xff9370db 111mediumseagreen, 0xff3cb371 112mediumslateblue, 0xff7b68ee 113mediumspringgreen, 0xff00fa9a 114mediumturquoise, 0xff48d1cc 115mediumvioletred, 0xffc71585 116midnightblue, 0xff191970 117mintcream, 0xfff5fffa 118mistyrose, 0xffffe4e1 119moccasin, 0xffffe4b5 120navajowhite, 0xffffdead 121navy, 0xff000080 122oldlace, 0xfffdf5e6 123olive, 0xff808000 124olivedrab, 0xff6b8e23 125orange, 0xffffa500 126orangered, 0xffff4500 127orchid, 0xffda70d6 128palegoldenrod, 0xffeee8aa 129palegreen, 0xff98fb98 130paleturquoise, 0xffafeeee 131palevioletred, 0xffdb7093 132papayawhip, 0xffffefd5 133peachpuff, 0xffffdab9 134peru, 0xffcd853f 135pink, 0xffffc0cb 136plum, 0xffdda0dd 137powderblue, 0xffb0e0e6 138purple, 0xff800080 139red, 0xffff0000 140rosybrown, 0xffbc8f8f 141royalblue, 0xff4169e1 142saddlebrown, 0xff8b4513 143salmon, 0xfffa8072 144sandybrown, 0xfff4a460 145seagreen, 0xff2e8b57 146seashell, 0xfffff5ee 147sienna, 0xffa0522d 148silver, 0xffc0c0c0 149skyblue, 0xff87ceeb 150slateblue, 0xff6a5acd 151slategray, 0xff708090 152slategrey, 0xff708090 153snow, 0xfffffafa 154springgreen, 0xff00ff7f 155steelblue, 0xff4682b4 156tan, 0xffd2b48c 157teal, 0xff008080 158thistle, 0xffd8bfd8 159tomato, 0xffff6347 160transparent, 0x00000000 161turquoise, 0xff40e0d0 162violet, 0xffee82ee 163violetred, 0xffd02090 164wheat, 0xfff5deb3 165white, 0xffffffff 166whitesmoke, 0xfff5f5f5 167yellow, 0xffffff00 168yellowgreen, 0xff9acd32 169%% 170const struct NamedColor* findColor(register const char* str, register unsigned int len) 171{ 172 return ColorDataHash::findColorImpl(str, len); 173} 174 175} // namespace WebCore 176