source: NonGTP/Xerces/xerces/include/xercesc/util/XMLUniDefs.hpp @ 358

Revision 358, 6.1 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 1999-2001,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Id: XMLUniDefs.hpp,v 1.3 2004/09/08 13:56:24 peiyongz Exp $
19 */
20#if !defined(XMLUNIDEFS_HPP)
21#define XMLUNIDEFS_HPP
22
23#include <xercesc/util/XercesDefs.hpp>
24
25XERCES_CPP_NAMESPACE_BEGIN
26
27// ---------------------------------------------------------------------------
28//  Constants for the Unicode characters of interest to us in an XML parser
29//  We don't put these inside the class because then they could not be const
30//  inline values, which would have significant performance ramifications.
31//
32//  We cannot use a namespace because of the requirement to support old
33//  compilers.
34// ---------------------------------------------------------------------------
35const XMLCh chNull                  = 0x00;
36const XMLCh chHTab                  = 0x09;
37const XMLCh chLF                    = 0x0A;
38const XMLCh chVTab                  = 0x0B;
39const XMLCh chFF                    = 0x0C;
40const XMLCh chCR                    = 0x0D;
41const XMLCh chAmpersand             = 0x26;
42const XMLCh chAsterisk              = 0x2A;
43const XMLCh chAt                    = 0x40;
44const XMLCh chBackSlash             = 0x5C;
45const XMLCh chBang                  = 0x21;
46const XMLCh chCaret                 = 0x5E;
47const XMLCh chCloseAngle            = 0x3E;
48const XMLCh chCloseCurly            = 0x7D;
49const XMLCh chCloseParen            = 0x29;
50const XMLCh chCloseSquare           = 0x5D;
51const XMLCh chColon                 = 0x3A;
52const XMLCh chComma                 = 0x2C;
53const XMLCh chDash                  = 0x2D;
54const XMLCh chDollarSign            = 0x24;
55const XMLCh chDoubleQuote           = 0x22;
56const XMLCh chEqual                 = 0x3D;
57const XMLCh chForwardSlash          = 0x2F;
58const XMLCh chGrave                 = 0x60;
59const XMLCh chNEL                   = 0x85;
60const XMLCh chOpenAngle             = 0x3C;
61const XMLCh chOpenCurly             = 0x7B;
62const XMLCh chOpenParen             = 0x28;
63const XMLCh chOpenSquare            = 0x5B;
64const XMLCh chPercent               = 0x25;
65const XMLCh chPeriod                = 0x2E;
66const XMLCh chPipe                  = 0x7C;
67const XMLCh chPlus                  = 0x2B;
68const XMLCh chPound                 = 0x23;
69const XMLCh chQuestion              = 0x3F;
70const XMLCh chSingleQuote           = 0x27;
71const XMLCh chSpace                 = 0x20;
72const XMLCh chSemiColon             = 0x3B;
73const XMLCh chTilde                 = 0x7E;
74const XMLCh chUnderscore            = 0x5F;
75
76const XMLCh chSwappedUnicodeMarker  = XMLCh(0xFFFE);
77const XMLCh chUnicodeMarker         = XMLCh(0xFEFF);
78
79const XMLCh chDigit_0               = 0x30;
80const XMLCh chDigit_1               = 0x31;
81const XMLCh chDigit_2               = 0x32;
82const XMLCh chDigit_3               = 0x33;
83const XMLCh chDigit_4               = 0x34;
84const XMLCh chDigit_5               = 0x35;
85const XMLCh chDigit_6               = 0x36;
86const XMLCh chDigit_7               = 0x37;
87const XMLCh chDigit_8               = 0x38;
88const XMLCh chDigit_9               = 0x39;
89
90const XMLCh chLatin_A               = 0x41;
91const XMLCh chLatin_B               = 0x42;
92const XMLCh chLatin_C               = 0x43;
93const XMLCh chLatin_D               = 0x44;
94const XMLCh chLatin_E               = 0x45;
95const XMLCh chLatin_F               = 0x46;
96const XMLCh chLatin_G               = 0x47;
97const XMLCh chLatin_H               = 0x48;
98const XMLCh chLatin_I               = 0x49;
99const XMLCh chLatin_J               = 0x4A;
100const XMLCh chLatin_K               = 0x4B;
101const XMLCh chLatin_L               = 0x4C;
102const XMLCh chLatin_M               = 0x4D;
103const XMLCh chLatin_N               = 0x4E;
104const XMLCh chLatin_O               = 0x4F;
105const XMLCh chLatin_P               = 0x50;
106const XMLCh chLatin_Q               = 0x51;
107const XMLCh chLatin_R               = 0x52;
108const XMLCh chLatin_S               = 0x53;
109const XMLCh chLatin_T               = 0x54;
110const XMLCh chLatin_U               = 0x55;
111const XMLCh chLatin_V               = 0x56;
112const XMLCh chLatin_W               = 0x57;
113const XMLCh chLatin_X               = 0x58;
114const XMLCh chLatin_Y               = 0x59;
115const XMLCh chLatin_Z               = 0x5A;
116
117const XMLCh chLatin_a               = 0x61;
118const XMLCh chLatin_b               = 0x62;
119const XMLCh chLatin_c               = 0x63;
120const XMLCh chLatin_d               = 0x64;
121const XMLCh chLatin_e               = 0x65;
122const XMLCh chLatin_f               = 0x66;
123const XMLCh chLatin_g               = 0x67;
124const XMLCh chLatin_h               = 0x68;
125const XMLCh chLatin_i               = 0x69;
126const XMLCh chLatin_j               = 0x6A;
127const XMLCh chLatin_k               = 0x6B;
128const XMLCh chLatin_l               = 0x6C;
129const XMLCh chLatin_m               = 0x6D;
130const XMLCh chLatin_n               = 0x6E;
131const XMLCh chLatin_o               = 0x6F;
132const XMLCh chLatin_p               = 0x70;
133const XMLCh chLatin_q               = 0x71;
134const XMLCh chLatin_r               = 0x72;
135const XMLCh chLatin_s               = 0x73;
136const XMLCh chLatin_t               = 0x74;
137const XMLCh chLatin_u               = 0x75;
138const XMLCh chLatin_v               = 0x76;
139const XMLCh chLatin_w               = 0x77;
140const XMLCh chLatin_x               = 0x78;
141const XMLCh chLatin_y               = 0x79;
142const XMLCh chLatin_z               = 0x7A;
143
144const XMLCh chYenSign               = 0xA5;
145const XMLCh chWonSign               = 0x20A9;
146
147const XMLCh chLineSeparator         = 0x2028;
148const XMLCh chParagraphSeparator    = 0x2029;
149
150XERCES_CPP_NAMESPACE_END
151
152#endif
Note: See TracBrowser for help on using the repository browser.