PageRenderTime 38ms CodeModel.GetById 15ms app.highlight 19ms RepoModel.GetById 2ms app.codeStats 0ms

/parser/htmlparser/src/nsHTMLEntityList.h

http://github.com/zpao/v8monkey
C Header | 335 lines | 259 code | 7 blank | 69 comment | 0 complexity | 570cc92e86df0ba435d4e9351aed9eea MD5 | raw file
  1/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2/* ***** BEGIN LICENSE BLOCK *****
  3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4 *
  5 * The contents of this file are subject to the Mozilla Public License Version
  6 * 1.1 (the "License"); you may not use this file except in compliance with
  7 * the License. You may obtain a copy of the License at
  8 * http://www.mozilla.org/MPL/
  9 *
 10 * Software distributed under the License is distributed on an "AS IS" basis,
 11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 12 * for the specific language governing rights and limitations under the
 13 * License.
 14 *
 15 * The Original Code is mozilla.org code.
 16 *
 17 * The Initial Developer of the Original Code is
 18 * Netscape Communications Corporation.
 19 * Portions created by the Initial Developer are Copyright (C) 1999
 20 * the Initial Developer. All Rights Reserved.
 21 *
 22 * Contributor(s):
 23 *
 24 * Alternatively, the contents of this file may be used under the terms of
 25 * either of the GNU General Public License Version 2 or later (the "GPL"),
 26 * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
 27 * in which case the provisions of the GPL or the LGPL are applicable instead
 28 * of those above. If you wish to allow use of your version of this file only
 29 * under the terms of either the GPL or the LGPL, and not to allow others to
 30 * use your version of this file under the terms of the MPL, indicate your
 31 * decision by deleting the provisions above and replace them with the notice
 32 * and other provisions required by the GPL or the LGPL. If you do not delete
 33 * the provisions above, a recipient may use your version of this file under
 34 * the terms of any one of the MPL, the GPL or the LGPL.
 35 *
 36 * ***** END LICENSE BLOCK ***** */
 37
 38/******
 39
 40  This file contains the list of all HTML entities 
 41  See nsHTMLEntities.h for access to the enum values for entities
 42
 43  It is designed to be used as inline input to nsHTMLEntities.cpp *only*
 44  through the magic of C preprocessing.
 45
 46  All entries must be enclosed in the macro HTML_ENTITY which will have cruel
 47  and unusual things done to it
 48
 49  It is recommended (but not strictly necessary) to keep all entries
 50  in alphabetical order
 51
 52  The first argument to HTML_ENTITY is the string value of the entity
 53  The second argument it HTML_ENTITY is the unicode value of the entity
 54
 55 ******/
 56
 57// ISO 8859-1 entities.
 58// See the HTML4.0 spec for this list in it's DTD form
 59HTML_ENTITY(nbsp, 160)
 60HTML_ENTITY(iexcl, 161)
 61HTML_ENTITY(cent, 162)
 62HTML_ENTITY(pound, 163)
 63HTML_ENTITY(curren, 164)
 64HTML_ENTITY(yen, 165)
 65HTML_ENTITY(brvbar, 166)
 66HTML_ENTITY(sect, 167)
 67HTML_ENTITY(uml, 168)
 68HTML_ENTITY(copy, 169)
 69HTML_ENTITY(ordf, 170)
 70HTML_ENTITY(laquo, 171)
 71HTML_ENTITY(not, 172)
 72HTML_ENTITY(shy, 173)
 73HTML_ENTITY(reg, 174)
 74HTML_ENTITY(macr, 175)
 75HTML_ENTITY(deg, 176)
 76HTML_ENTITY(plusmn, 177)
 77HTML_ENTITY(sup2, 178)
 78HTML_ENTITY(sup3, 179)
 79HTML_ENTITY(acute, 180)
 80HTML_ENTITY(micro, 181)
 81HTML_ENTITY(para, 182)
 82HTML_ENTITY(middot, 183)
 83HTML_ENTITY(cedil, 184)
 84HTML_ENTITY(sup1, 185)
 85HTML_ENTITY(ordm, 186)
 86HTML_ENTITY(raquo, 187)
 87HTML_ENTITY(frac14, 188)
 88HTML_ENTITY(frac12, 189)
 89HTML_ENTITY(frac34, 190)
 90HTML_ENTITY(iquest, 191)
 91HTML_ENTITY(Agrave, 192)
 92HTML_ENTITY(Aacute, 193)
 93HTML_ENTITY(Acirc, 194)
 94HTML_ENTITY(Atilde, 195)
 95HTML_ENTITY(Auml, 196)
 96HTML_ENTITY(Aring, 197)
 97HTML_ENTITY(AElig, 198)
 98HTML_ENTITY(Ccedil, 199)
 99HTML_ENTITY(Egrave, 200)
100HTML_ENTITY(Eacute, 201)
101HTML_ENTITY(Ecirc, 202)
102HTML_ENTITY(Euml, 203)
103HTML_ENTITY(Igrave, 204)
104HTML_ENTITY(Iacute, 205)
105HTML_ENTITY(Icirc, 206)
106HTML_ENTITY(Iuml, 207)
107HTML_ENTITY(ETH, 208)
108HTML_ENTITY(Ntilde, 209)
109HTML_ENTITY(Ograve, 210)
110HTML_ENTITY(Oacute, 211)
111HTML_ENTITY(Ocirc, 212)
112HTML_ENTITY(Otilde, 213)
113HTML_ENTITY(Ouml, 214)
114HTML_ENTITY(times, 215)
115HTML_ENTITY(Oslash, 216)
116HTML_ENTITY(Ugrave, 217)
117HTML_ENTITY(Uacute, 218)
118HTML_ENTITY(Ucirc, 219)
119HTML_ENTITY(Uuml, 220)
120HTML_ENTITY(Yacute, 221)
121HTML_ENTITY(THORN, 222)
122HTML_ENTITY(szlig, 223)
123HTML_ENTITY(agrave, 224)
124HTML_ENTITY(aacute, 225)
125HTML_ENTITY(acirc, 226)
126HTML_ENTITY(atilde, 227)
127HTML_ENTITY(auml, 228)
128HTML_ENTITY(aring, 229)
129HTML_ENTITY(aelig, 230)
130HTML_ENTITY(ccedil, 231)
131HTML_ENTITY(egrave, 232)
132HTML_ENTITY(eacute, 233)
133HTML_ENTITY(ecirc, 234)
134HTML_ENTITY(euml, 235)
135HTML_ENTITY(igrave, 236)
136HTML_ENTITY(iacute, 237)
137HTML_ENTITY(icirc, 238)
138HTML_ENTITY(iuml, 239)
139HTML_ENTITY(eth, 240)
140HTML_ENTITY(ntilde, 241)
141HTML_ENTITY(ograve, 242)
142HTML_ENTITY(oacute, 243)
143HTML_ENTITY(ocirc, 244)
144HTML_ENTITY(otilde, 245)
145HTML_ENTITY(ouml, 246)
146HTML_ENTITY(divide, 247)
147HTML_ENTITY(oslash, 248)
148HTML_ENTITY(ugrave, 249)
149HTML_ENTITY(uacute, 250)
150HTML_ENTITY(ucirc, 251)
151HTML_ENTITY(uuml, 252)
152HTML_ENTITY(yacute, 253)
153HTML_ENTITY(thorn, 254)
154HTML_ENTITY(yuml, 255)
155
156// Symbols, mathematical symbols and Greek letters
157// See the HTML4.0 spec for this list in it's DTD form
158HTML_ENTITY(fnof, 402)
159HTML_ENTITY(Alpha, 913)
160HTML_ENTITY(Beta, 914)
161HTML_ENTITY(Gamma, 915)
162HTML_ENTITY(Delta, 916)
163HTML_ENTITY(Epsilon, 917)
164HTML_ENTITY(Zeta, 918)
165HTML_ENTITY(Eta, 919)
166HTML_ENTITY(Theta, 920)
167HTML_ENTITY(Iota, 921)
168HTML_ENTITY(Kappa, 922)
169HTML_ENTITY(Lambda, 923)
170HTML_ENTITY(Mu, 924)
171HTML_ENTITY(Nu, 925)
172HTML_ENTITY(Xi, 926)
173HTML_ENTITY(Omicron, 927)
174HTML_ENTITY(Pi, 928)
175HTML_ENTITY(Rho, 929)
176HTML_ENTITY(Sigma, 931)
177HTML_ENTITY(Tau, 932)
178HTML_ENTITY(Upsilon, 933)
179HTML_ENTITY(Phi, 934)
180HTML_ENTITY(Chi, 935)
181HTML_ENTITY(Psi, 936)
182HTML_ENTITY(Omega, 937)
183HTML_ENTITY(alpha, 945)
184HTML_ENTITY(beta, 946)
185HTML_ENTITY(gamma, 947)
186HTML_ENTITY(delta, 948)
187HTML_ENTITY(epsilon, 949)
188HTML_ENTITY(zeta, 950)
189HTML_ENTITY(eta, 951)
190HTML_ENTITY(theta, 952)
191HTML_ENTITY(iota, 953)
192HTML_ENTITY(kappa, 954)
193HTML_ENTITY(lambda, 955)
194HTML_ENTITY(mu, 956)
195HTML_ENTITY(nu, 957)
196HTML_ENTITY(xi, 958)
197HTML_ENTITY(omicron, 959)
198HTML_ENTITY(pi, 960)
199HTML_ENTITY(rho, 961)
200HTML_ENTITY(sigmaf, 962)
201HTML_ENTITY(sigma, 963)
202HTML_ENTITY(tau, 964)
203HTML_ENTITY(upsilon, 965)
204HTML_ENTITY(phi, 966)
205HTML_ENTITY(chi, 967)
206HTML_ENTITY(psi, 968)
207HTML_ENTITY(omega, 969)
208HTML_ENTITY(thetasym, 977)
209HTML_ENTITY(upsih, 978)
210HTML_ENTITY(piv, 982)
211HTML_ENTITY(bull, 8226)
212HTML_ENTITY(hellip, 8230)
213HTML_ENTITY(prime, 8242)
214HTML_ENTITY(Prime, 8243)
215HTML_ENTITY(oline, 8254)
216HTML_ENTITY(frasl, 8260)
217HTML_ENTITY(weierp, 8472)
218HTML_ENTITY(image, 8465)
219HTML_ENTITY(real, 8476)
220HTML_ENTITY(trade, 8482)
221HTML_ENTITY(alefsym, 8501)
222HTML_ENTITY(larr, 8592)
223HTML_ENTITY(uarr, 8593)
224HTML_ENTITY(rarr, 8594)
225HTML_ENTITY(darr, 8595)
226HTML_ENTITY(harr, 8596)
227HTML_ENTITY(crarr, 8629)
228HTML_ENTITY(lArr, 8656)
229HTML_ENTITY(uArr, 8657)
230HTML_ENTITY(rArr, 8658)
231HTML_ENTITY(dArr, 8659)
232HTML_ENTITY(hArr, 8660)
233HTML_ENTITY(forall, 8704)
234HTML_ENTITY(part, 8706)
235HTML_ENTITY(exist, 8707)
236HTML_ENTITY(empty, 8709)
237HTML_ENTITY(nabla, 8711)
238HTML_ENTITY(isin, 8712)
239HTML_ENTITY(notin, 8713)
240HTML_ENTITY(ni, 8715)
241HTML_ENTITY(prod, 8719)
242HTML_ENTITY(sum, 8721)
243HTML_ENTITY(minus, 8722)
244HTML_ENTITY(lowast, 8727)
245HTML_ENTITY(radic, 8730)
246HTML_ENTITY(prop, 8733)
247HTML_ENTITY(infin, 8734)
248HTML_ENTITY(ang, 8736)
249HTML_ENTITY(and, 8743)
250HTML_ENTITY(or, 8744)
251HTML_ENTITY(cap, 8745)
252HTML_ENTITY(cup, 8746)
253HTML_ENTITY(int, 8747)
254HTML_ENTITY(there4, 8756)
255HTML_ENTITY(sim, 8764)
256HTML_ENTITY(cong, 8773)
257HTML_ENTITY(asymp, 8776)
258HTML_ENTITY(ne, 8800)
259HTML_ENTITY(equiv, 8801)
260HTML_ENTITY(le, 8804)
261HTML_ENTITY(ge, 8805)
262HTML_ENTITY(sub, 8834)
263HTML_ENTITY(sup, 8835)
264HTML_ENTITY(nsub, 8836)
265HTML_ENTITY(sube, 8838)
266HTML_ENTITY(supe, 8839)
267HTML_ENTITY(oplus, 8853)
268HTML_ENTITY(otimes, 8855)
269HTML_ENTITY(perp, 8869)
270HTML_ENTITY(sdot, 8901)
271HTML_ENTITY(lceil, 8968)
272HTML_ENTITY(rceil, 8969)
273HTML_ENTITY(lfloor, 8970)
274HTML_ENTITY(rfloor, 8971)
275// Bug 603716: expansions of ⟨ and ⟩ have been modified in HTML5.
276// See http://www.w3.org/2003/entities/2007/htmlmathml-f.ent
277HTML_ENTITY(lang, 0x27E8)
278HTML_ENTITY(rang, 0x27E9)
279HTML_ENTITY(loz, 9674)
280HTML_ENTITY(spades, 9824)
281HTML_ENTITY(clubs, 9827)
282HTML_ENTITY(hearts, 9829)
283HTML_ENTITY(diams, 9830)
284
285// Markup-significant and internationalization characters
286// See the HTML4.0 spec for this list in it's DTD form
287HTML_ENTITY(quot, 34)
288HTML_ENTITY(amp, 38)
289HTML_ENTITY(lt, 60)
290HTML_ENTITY(gt, 62)
291HTML_ENTITY(OElig, 338)
292HTML_ENTITY(oelig, 339)
293HTML_ENTITY(Scaron, 352)
294HTML_ENTITY(scaron, 353)
295HTML_ENTITY(Yuml, 376)
296HTML_ENTITY(circ, 710)
297HTML_ENTITY(tilde, 732)
298HTML_ENTITY(ensp, 8194)
299HTML_ENTITY(emsp, 8195)
300HTML_ENTITY(thinsp, 8201)
301HTML_ENTITY(zwnj, 8204)
302HTML_ENTITY(zwj, 8205)
303HTML_ENTITY(lrm, 8206)
304HTML_ENTITY(rlm, 8207)
305HTML_ENTITY(ndash, 8211)
306HTML_ENTITY(mdash, 8212)
307HTML_ENTITY(lsquo, 8216)
308HTML_ENTITY(rsquo, 8217)
309HTML_ENTITY(sbquo, 8218)
310HTML_ENTITY(ldquo, 8220)
311HTML_ENTITY(rdquo, 8221)
312HTML_ENTITY(bdquo, 8222)
313HTML_ENTITY(dagger, 8224)
314HTML_ENTITY(Dagger, 8225)
315HTML_ENTITY(permil, 8240)
316HTML_ENTITY(lsaquo, 8249)
317HTML_ENTITY(rsaquo, 8250)
318HTML_ENTITY(euro, 8364)
319
320// Navigator entity extensions
321// This block of entities needs to be at the bottom of the list since it
322// contains duplicate Unicode codepoints.  The codepoint to entity name
323// mapping (used by Composer) must ignores them, which occurs only
324// because they are listed later.
325
326// apos is from XML
327HTML_ENTITY(apos, 39) 
328// The capitalized versions are required to handle non-standard input.
329HTML_ENTITY(AMP, 38)
330HTML_ENTITY(COPY, 169)
331HTML_ENTITY(GT, 62)
332HTML_ENTITY(LT, 60)
333HTML_ENTITY(QUOT, 34)
334HTML_ENTITY(REG, 174)
335