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