1%{ /* -*-indented-text-*- */ 2 3/* 4 * Copyright © 1998-2010 World Wide Web Consortium 5 * See http://www.w3.org/Consortium/Legal/copyright-software 6 * 7 * Author: Bert Bos <bert@w3.org> 8 * Created: 2 Dec 1998 9 * 10 * Input file for gperf, to generate a perfect hash function 11 * of all HTML named character entities. This list translates 12 * names to Unicode numbers. 13 */ 14#include <config.h> 15#if STDC_HEADERS 16# include <string.h> 17#else 18# ifndef HAVE_STRCHR 19# define strchr index 20# define strrchr rindex 21# endif 22#endif 23#ifdef HAVE_UNISTD_H 24# include <unistd.h> 25#endif 26#include <stdlib.h> 27#include <stdio.h> 28#include <ctype.h> 29#include "export.h" 30 31EXPORT struct _Entity {char *name; unsigned int code;}; 32EXPORT const struct _Entity *lookup_entity (register const char *str, 33 register size_t len); 34 35 36%} 37struct _Entity; 38 39%% 40nbsp, 160 41iexcl, 161 42cent, 162 43pound, 163 44curren, 164 45yen, 165 46brvbar, 166 47sect, 167 48uml, 168 49copy, 169 50ordf, 170 51laquo, 171 52not, 172 53shy, 173 54reg, 174 55macr, 175 56deg, 176 57plusmn, 177 58sup2, 178 59sup3, 179 60acute, 180 61micro, 181 62para, 182 63middot, 183 64cedil, 184 65sup1, 185 66ordm, 186 67raquo, 187 68frac14, 188 69frac12, 189 70frac34, 190 71iquest, 191 72Agrave, 192 73Aacute, 193 74Acirc, 194 75Atilde, 195 76Auml, 196 77Aring, 197 78AElig, 198 79Ccedil, 199 80Egrave, 200 81Eacute, 201 82Ecirc, 202 83Euml, 203 84Igrave, 204 85Iacute, 205 86Icirc, 206 87Iuml, 207 88ETH, 208 89Ntilde, 209 90Ograve, 210 91Oacute, 211 92Ocirc, 212 93Otilde, 213 94Ouml, 214 95times, 215 96Oslash, 216 97Ugrave, 217 98Uacute, 218 99Ucirc, 219 100Uuml, 220 101Yacute, 221 102THORN, 222 103szlig, 223 104agrave, 224 105aacute, 225 106acirc, 226 107atilde, 227 108auml, 228 109aring, 229 110aelig, 230 111ccedil, 231 112egrave, 232 113eacute, 233 114ecirc, 234 115euml, 235 116igrave, 236 117iacute, 237 118icirc, 238 119iuml, 239 120eth, 240 121ntilde, 241 122ograve, 242 123oacute, 243 124ocirc, 244 125otilde, 245 126ouml, 246 127divide, 247 128oslash, 248 129ugrave, 249 130uacute, 250 131ucirc, 251 132uuml, 252 133yacute, 253 134thorn, 254 135yuml, 255 136fnof, 402 137Alpha, 913 138Beta, 914 139Gamma, 915 140Delta, 916 141Epsilon, 917 142Zeta, 918 143Eta, 919 144Theta, 920 145Iota, 921 146Kappa, 922 147Lambda, 923 148Mu, 924 149Nu, 925 150Xi, 926 151Omicron, 927 152Pi, 928 153Rho, 929 154Sigma, 931 155Tau, 932 156Upsilon, 933 157Phi, 934 158Chi, 935 159Psi, 936 160Omega, 937 161alpha, 945 162beta, 946 163gamma, 947 164delta, 948 165epsilon, 949 166zeta, 950 167eta, 951 168theta, 952 169iota, 953 170kappa, 954 171lambda, 955 172mu, 956 173nu, 957 174xi, 958 175omicron, 959 176pi, 960 177rho, 961 178sigmaf, 962 179sigma, 963 180tau, 964 181upsilon, 965 182phi, 966 183chi, 967 184psi, 968 185omega, 969 186thetasym, 977 187upsih, 978 188piv, 982 189bull, 8226 190hellip, 8230 191prime, 8242 192Prime, 8243 193oline, 8254 194frasl, 8260 195weierp, 8472 196image, 8465 197real, 8476 198trade, 8482 199alefsym, 8501 200larr, 8592 201uarr, 8593 202rarr, 8594 203darr, 8595 204harr, 8596 205crarr, 8629 206lArr, 8656 207uArr, 8657 208rArr, 8658 209dArr, 8659 210hArr, 8660 211forall, 8704 212part, 8706 213exist, 8707 214empty, 8709 215nabla, 8711 216isin, 8712 217notin, 8713 218ni, 8715 219prod, 8719 220sum, 8721 221minus, 8722 222lowast, 8727 223radic, 8730 224prop, 8733 225infin, 8734 226ang, 8736 227and, 8743 228or, 8744 229cap, 8745 230cup, 8746 231int, 8747 232there4, 8756 233sim, 8764 234cong, 8773 235asymp, 8776 236ne, 8800 237equiv, 8801 238le, 8804 239ge, 8805 240sub, 8834 241sup, 8835 242nsub, 8836 243sube, 8838 244supe, 8839 245oplus, 8853 246otimes, 8855 247perp, 8869 248sdot, 8901 249lceil, 8968 250rceil, 8969 251lfloor, 8970 252rfloor, 8971 253lang, 9001 254rang, 9002 255loz, 9674 256spades, 9824 257clubs, 9827 258hearts, 9829 259diams, 9830 260quot, 34 261amp, 38 262apos, 39 263lt, 60 264gt, 62 265OElig, 338 266oelig, 339 267Scaron, 352 268scaron, 353 269Yuml, 376 270circ, 710 271tilde, 732 272ensp, 8194 273emsp, 8195 274thinsp, 8201 275zwnj, 8204 276zwj, 8205 277lrm, 8206 278rlm, 8207 279ndash, 8211 280mdash, 8212 281lsquo, 8216 282rsquo, 8217 283sbquo, 8218 284ldquo, 8220 285rdquo, 8221 286bdquo, 8222 287dagger, 8224 288Dagger, 8225 289permil, 8240 290lsaquo, 8249 291rsaquo, 8250 292euro, 8364 293%% 294