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