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: XMLUni.hpp 568078 2007-08-21 11:43:25Z amassari $ |
---|
20 | */ |
---|
21 | |
---|
22 | |
---|
23 | // --------------------------------------------------------------------------- |
---|
24 | // This file contains the grunt work constants for Unicode characters and |
---|
25 | // common Unicode constant strings. These cannot be created normally because |
---|
26 | // we have to compile on systems that cannot do the L"" style prefix. So |
---|
27 | // they must be created as constant values for Unicode code points and the |
---|
28 | // strings built up as arrays of those constants. |
---|
29 | // --------------------------------------------------------------------------- |
---|
30 | |
---|
31 | #if !defined(XMLUNI_HPP) |
---|
32 | #define XMLUNI_HPP |
---|
33 | |
---|
34 | #include <xercesc/util/XercesDefs.hpp> |
---|
35 | |
---|
36 | XERCES_CPP_NAMESPACE_BEGIN |
---|
37 | |
---|
38 | class XMLUTIL_EXPORT XMLUni |
---|
39 | { |
---|
40 | public : |
---|
41 | // ----------------------------------------------------------------------- |
---|
42 | // These are constant strings that are common in XML data. Because |
---|
43 | // of the limitation of the compilers we have to work with, these are |
---|
44 | // done as arrays of XMLCh characters, not as constant strings. |
---|
45 | // ----------------------------------------------------------------------- |
---|
46 | static const XMLCh fgAnyString[]; |
---|
47 | static const XMLCh fgAttListString[]; |
---|
48 | static const XMLCh fgCommentString[]; |
---|
49 | static const XMLCh fgCDATAString[]; |
---|
50 | static const XMLCh fgDefaultString[]; |
---|
51 | static const XMLCh fgDocTypeString[]; |
---|
52 | static const XMLCh fgEBCDICEncodingString[]; |
---|
53 | static const XMLCh fgElemString[]; |
---|
54 | static const XMLCh fgEmptyString[]; |
---|
55 | static const XMLCh fgEncodingString[]; |
---|
56 | static const XMLCh fgEntitString[]; |
---|
57 | static const XMLCh fgEntityString[]; |
---|
58 | static const XMLCh fgEntitiesString[]; |
---|
59 | static const XMLCh fgEnumerationString[]; |
---|
60 | static const XMLCh fgExceptDomain[]; |
---|
61 | static const XMLCh fgFixedString[]; |
---|
62 | static const XMLCh fgIBM037EncodingString[]; |
---|
63 | static const XMLCh fgIBM037EncodingString2[]; |
---|
64 | static const XMLCh fgIBM1047EncodingString[]; |
---|
65 | static const XMLCh fgIBM1047EncodingString2[]; |
---|
66 | static const XMLCh fgIBM1140EncodingString[]; |
---|
67 | static const XMLCh fgIBM1140EncodingString2[]; |
---|
68 | static const XMLCh fgIBM1140EncodingString3[]; |
---|
69 | static const XMLCh fgIBM1140EncodingString4[]; |
---|
70 | static const XMLCh fgIESString[]; |
---|
71 | static const XMLCh fgIDString[]; |
---|
72 | static const XMLCh fgIDRefString[]; |
---|
73 | static const XMLCh fgIDRefsString[]; |
---|
74 | static const XMLCh fgImpliedString[]; |
---|
75 | static const XMLCh fgIgnoreString[]; |
---|
76 | static const XMLCh fgIncludeString[]; |
---|
77 | static const XMLCh fgISO88591EncodingString[]; |
---|
78 | static const XMLCh fgISO88591EncodingString2[]; |
---|
79 | static const XMLCh fgISO88591EncodingString3[]; |
---|
80 | static const XMLCh fgISO88591EncodingString4[]; |
---|
81 | static const XMLCh fgISO88591EncodingString5[]; |
---|
82 | static const XMLCh fgISO88591EncodingString6[]; |
---|
83 | static const XMLCh fgISO88591EncodingString7[]; |
---|
84 | static const XMLCh fgISO88591EncodingString8[]; |
---|
85 | static const XMLCh fgISO88591EncodingString9[]; |
---|
86 | static const XMLCh fgISO88591EncodingString10[]; |
---|
87 | static const XMLCh fgISO88591EncodingString11[]; |
---|
88 | static const XMLCh fgISO88591EncodingString12[]; |
---|
89 | static const XMLCh fgLocalHostString[]; |
---|
90 | static const XMLCh fgNoString[]; |
---|
91 | static const XMLCh fgNotationString[]; |
---|
92 | static const XMLCh fgNDATAString[]; |
---|
93 | static const XMLCh fgNmTokenString[]; |
---|
94 | static const XMLCh fgNmTokensString[]; |
---|
95 | static const XMLCh fgPCDATAString[]; |
---|
96 | static const XMLCh fgPIString[]; |
---|
97 | static const XMLCh fgPubIDString[]; |
---|
98 | static const XMLCh fgRefString[]; |
---|
99 | static const XMLCh fgRequiredString[]; |
---|
100 | static const XMLCh fgStandaloneString[]; |
---|
101 | static const XMLCh fgVersion1_0[]; |
---|
102 | static const XMLCh fgVersion1_1[]; |
---|
103 | static const XMLCh fgSysIDString[]; |
---|
104 | static const XMLCh fgUnknownURIName[]; |
---|
105 | static const XMLCh fgUCS4EncodingString[]; |
---|
106 | static const XMLCh fgUCS4EncodingString2[]; |
---|
107 | static const XMLCh fgUCS4EncodingString3[]; |
---|
108 | static const XMLCh fgUCS4EncodingString4[]; |
---|
109 | static const XMLCh fgUCS4BEncodingString[]; |
---|
110 | static const XMLCh fgUCS4BEncodingString2[]; |
---|
111 | static const XMLCh fgUCS4LEncodingString[]; |
---|
112 | static const XMLCh fgUCS4LEncodingString2[]; |
---|
113 | static const XMLCh fgUSASCIIEncodingString[]; |
---|
114 | static const XMLCh fgUSASCIIEncodingString2[]; |
---|
115 | static const XMLCh fgUSASCIIEncodingString3[]; |
---|
116 | static const XMLCh fgUSASCIIEncodingString4[]; |
---|
117 | static const XMLCh fgUTF8EncodingString[]; |
---|
118 | static const XMLCh fgUTF8EncodingString2[]; |
---|
119 | static const XMLCh fgUTF16EncodingString[]; |
---|
120 | static const XMLCh fgUTF16EncodingString2[]; |
---|
121 | static const XMLCh fgUTF16EncodingString3[]; |
---|
122 | static const XMLCh fgUTF16EncodingString4[]; |
---|
123 | static const XMLCh fgUTF16EncodingString5[]; |
---|
124 | static const XMLCh fgUTF16EncodingString6[]; |
---|
125 | static const XMLCh fgUTF16EncodingString7[]; |
---|
126 | static const XMLCh fgUTF16BEncodingString[]; |
---|
127 | static const XMLCh fgUTF16BEncodingString2[]; |
---|
128 | static const XMLCh fgUTF16LEncodingString[]; |
---|
129 | static const XMLCh fgUTF16LEncodingString2[]; |
---|
130 | static const XMLCh fgVersionString[]; |
---|
131 | static const XMLCh fgValidityDomain[]; |
---|
132 | static const XMLCh fgWin1252EncodingString[]; |
---|
133 | static const XMLCh fgXMLChEncodingString[]; |
---|
134 | static const XMLCh fgXMLDOMMsgDomain[]; |
---|
135 | static const XMLCh fgXMLString[]; |
---|
136 | static const XMLCh fgXMLStringSpace[]; |
---|
137 | static const XMLCh fgXMLStringHTab[]; |
---|
138 | static const XMLCh fgXMLStringCR[]; |
---|
139 | static const XMLCh fgXMLStringLF[]; |
---|
140 | static const XMLCh fgXMLStringSpaceU[]; |
---|
141 | static const XMLCh fgXMLStringHTabU[]; |
---|
142 | static const XMLCh fgXMLStringCRU[]; |
---|
143 | static const XMLCh fgXMLStringLFU[]; |
---|
144 | static const XMLCh fgXMLDeclString[]; |
---|
145 | static const XMLCh fgXMLDeclStringSpace[]; |
---|
146 | static const XMLCh fgXMLDeclStringHTab[]; |
---|
147 | static const XMLCh fgXMLDeclStringLF[]; |
---|
148 | static const XMLCh fgXMLDeclStringCR[]; |
---|
149 | static const XMLCh fgXMLDeclStringSpaceU[]; |
---|
150 | static const XMLCh fgXMLDeclStringHTabU[]; |
---|
151 | static const XMLCh fgXMLDeclStringLFU[]; |
---|
152 | static const XMLCh fgXMLDeclStringCRU[]; |
---|
153 | static const XMLCh fgXMLNSString[]; |
---|
154 | static const XMLCh fgXMLNSColonString[]; |
---|
155 | static const XMLCh fgXMLNSURIName[]; |
---|
156 | static const XMLCh fgXMLErrDomain[]; |
---|
157 | static const XMLCh fgXMLURIName[]; |
---|
158 | static const XMLCh fgInfosetURIName[]; |
---|
159 | static const XMLCh fgYesString[]; |
---|
160 | static const XMLCh fgZeroLenString[]; |
---|
161 | static const XMLCh fgDTDEntityString[]; |
---|
162 | static const XMLCh fgAmp[]; |
---|
163 | static const XMLCh fgLT[]; |
---|
164 | static const XMLCh fgGT[]; |
---|
165 | static const XMLCh fgQuot[]; |
---|
166 | static const XMLCh fgApos[]; |
---|
167 | static const XMLCh fgWFXMLScanner[]; |
---|
168 | static const XMLCh fgIGXMLScanner[]; |
---|
169 | static const XMLCh fgSGXMLScanner[]; |
---|
170 | static const XMLCh fgDGXMLScanner[]; |
---|
171 | static const XMLCh fgXSAXMLScanner[]; |
---|
172 | static const XMLCh fgCDataStart[]; |
---|
173 | static const XMLCh fgCDataEnd[]; |
---|
174 | |
---|
175 | // Exception Name |
---|
176 | static const XMLCh fgArrayIndexOutOfBoundsException_Name[]; |
---|
177 | static const XMLCh fgEmptyStackException_Name[]; |
---|
178 | static const XMLCh fgIllegalArgumentException_Name[]; |
---|
179 | static const XMLCh fgInvalidCastException_Name[]; |
---|
180 | static const XMLCh fgIOException_Name[]; |
---|
181 | static const XMLCh fgNoSuchElementException_Name[]; |
---|
182 | static const XMLCh fgNullPointerException_Name[]; |
---|
183 | static const XMLCh fgXMLPlatformUtilsException_Name[]; |
---|
184 | static const XMLCh fgRuntimeException_Name[]; |
---|
185 | static const XMLCh fgTranscodingException_Name[]; |
---|
186 | static const XMLCh fgUnexpectedEOFException_Name[]; |
---|
187 | static const XMLCh fgUnsupportedEncodingException_Name[]; |
---|
188 | static const XMLCh fgUTFDataFormatException_Name[]; |
---|
189 | static const XMLCh fgNetAccessorException_Name[]; |
---|
190 | static const XMLCh fgMalformedURLException_Name[]; |
---|
191 | static const XMLCh fgNumberFormatException_Name[]; |
---|
192 | static const XMLCh fgParseException_Name[]; |
---|
193 | static const XMLCh fgInvalidDatatypeFacetException_Name[]; |
---|
194 | static const XMLCh fgInvalidDatatypeValueException_Name[]; |
---|
195 | static const XMLCh fgSchemaDateTimeException_Name[]; |
---|
196 | static const XMLCh fgXPathException_Name[]; |
---|
197 | static const XMLCh fgXSerializationException_Name[]; |
---|
198 | |
---|
199 | // Numerical String |
---|
200 | static const XMLCh fgNegINFString[]; |
---|
201 | static const XMLCh fgNegZeroString[]; |
---|
202 | static const XMLCh fgPosZeroString[]; |
---|
203 | static const XMLCh fgPosINFString[]; |
---|
204 | static const XMLCh fgNaNString[]; |
---|
205 | static const XMLCh fgEString[]; |
---|
206 | static const XMLCh fgZeroString[]; |
---|
207 | static const XMLCh fgNullString[]; |
---|
208 | |
---|
209 | // Xerces features/properties names |
---|
210 | static const XMLCh fgXercesDynamic[]; |
---|
211 | static const XMLCh fgXercesSchema[]; |
---|
212 | static const XMLCh fgXercesSchemaFullChecking[]; |
---|
213 | static const XMLCh fgXercesIdentityConstraintChecking[]; |
---|
214 | static const XMLCh fgXercesSchemaExternalSchemaLocation[]; |
---|
215 | static const XMLCh fgXercesSchemaExternalNoNameSpaceSchemaLocation[]; |
---|
216 | static const XMLCh fgXercesSecurityManager[]; |
---|
217 | static const XMLCh fgXercesLoadExternalDTD[]; |
---|
218 | static const XMLCh fgXercesContinueAfterFatalError[]; |
---|
219 | static const XMLCh fgXercesValidationErrorAsFatal[]; |
---|
220 | static const XMLCh fgXercesUserAdoptsDOMDocument[]; |
---|
221 | static const XMLCh fgXercesCacheGrammarFromParse[]; |
---|
222 | static const XMLCh fgXercesUseCachedGrammarInParse[]; |
---|
223 | static const XMLCh fgXercesScannerName[]; |
---|
224 | static const XMLCh fgXercesParserUseDocumentFromImplementation[]; |
---|
225 | static const XMLCh fgXercesCalculateSrcOfs[]; |
---|
226 | static const XMLCh fgXercesStandardUriConformant[]; |
---|
227 | static const XMLCh fgXercesDOMHasPSVIInfo[]; |
---|
228 | static const XMLCh fgXercesGenerateSyntheticAnnotations[]; |
---|
229 | static const XMLCh fgXercesValidateAnnotations[]; |
---|
230 | static const XMLCh fgXercesIgnoreCachedDTD[]; |
---|
231 | static const XMLCh fgXercesIgnoreAnnotations[]; |
---|
232 | static const XMLCh fgXercesDisableDefaultEntityResolution[]; |
---|
233 | static const XMLCh fgXercesSkipDTDValidation[]; |
---|
234 | |
---|
235 | |
---|
236 | // SAX2 features/properties names |
---|
237 | static const XMLCh fgSAX2CoreValidation[]; |
---|
238 | static const XMLCh fgSAX2CoreNameSpaces[]; |
---|
239 | static const XMLCh fgSAX2CoreNameSpacePrefixes[]; |
---|
240 | |
---|
241 | // Introduced in DOM Level 3 |
---|
242 | // DOMBuilder features |
---|
243 | static const XMLCh fgDOMCanonicalForm[]; |
---|
244 | static const XMLCh fgDOMCDATASections[]; |
---|
245 | static const XMLCh fgDOMComments[]; |
---|
246 | static const XMLCh fgDOMCharsetOverridesXMLEncoding[]; |
---|
247 | static const XMLCh fgDOMDatatypeNormalization[]; |
---|
248 | static const XMLCh fgDOMEntities[]; |
---|
249 | static const XMLCh fgDOMInfoset[]; |
---|
250 | static const XMLCh fgDOMNamespaces[]; |
---|
251 | static const XMLCh fgDOMNamespaceDeclarations[]; |
---|
252 | static const XMLCh fgDOMSupportedMediatypesOnly[]; |
---|
253 | static const XMLCh fgDOMValidateIfSchema[]; |
---|
254 | static const XMLCh fgDOMValidation[]; |
---|
255 | static const XMLCh fgDOMWhitespaceInElementContent[]; |
---|
256 | |
---|
257 | // Introduced in DOM Level 3 |
---|
258 | // DOMWriter feature |
---|
259 | static const XMLCh fgDOMWRTCanonicalForm[]; |
---|
260 | static const XMLCh fgDOMWRTDiscardDefaultContent[]; |
---|
261 | static const XMLCh fgDOMWRTEntities[]; |
---|
262 | static const XMLCh fgDOMWRTFormatPrettyPrint[]; |
---|
263 | static const XMLCh fgDOMWRTNormalizeCharacters[]; |
---|
264 | static const XMLCh fgDOMWRTSplitCdataSections[]; |
---|
265 | static const XMLCh fgDOMWRTValidation[]; |
---|
266 | static const XMLCh fgDOMWRTWhitespaceInElementContent[]; |
---|
267 | static const XMLCh fgDOMWRTBOM[]; |
---|
268 | static const XMLCh fgDOMXMLDeclaration[]; |
---|
269 | |
---|
270 | // Private interface names |
---|
271 | static const XMLCh fgXercescInterfacePSVITypeInfo[]; |
---|
272 | static const XMLCh fgXercescInterfaceDOMDocumentTypeImpl[]; |
---|
273 | |
---|
274 | // Locale |
---|
275 | static const char fgXercescDefaultLocale[]; |
---|
276 | |
---|
277 | // Default Exception String |
---|
278 | static const XMLCh fgDefErrMsg[]; |
---|
279 | |
---|
280 | // Datatype |
---|
281 | static const XMLCh fgValueZero[]; |
---|
282 | static const XMLCh fgNegOne[]; |
---|
283 | static const XMLCh fgValueOne[]; |
---|
284 | static const XMLCh fgLongMaxInc[]; |
---|
285 | static const XMLCh fgLongMinInc[]; |
---|
286 | static const XMLCh fgIntMaxInc[]; |
---|
287 | static const XMLCh fgIntMinInc[]; |
---|
288 | static const XMLCh fgShortMaxInc[]; |
---|
289 | static const XMLCh fgShortMinInc[]; |
---|
290 | static const XMLCh fgByteMaxInc[]; |
---|
291 | static const XMLCh fgByteMinInc[]; |
---|
292 | static const XMLCh fgULongMaxInc[]; |
---|
293 | static const XMLCh fgUIntMaxInc[]; |
---|
294 | static const XMLCh fgUShortMaxInc[]; |
---|
295 | static const XMLCh fgUByteMaxInc[]; |
---|
296 | static const XMLCh fgLangPattern[]; |
---|
297 | |
---|
298 | static const XMLCh fgBooleanValueSpace[][8]; |
---|
299 | static const unsigned int fgBooleanValueSpaceArraySize; |
---|
300 | |
---|
301 | private: |
---|
302 | // ----------------------------------------------------------------------- |
---|
303 | // Unimplemented constructors and operators |
---|
304 | // ----------------------------------------------------------------------- |
---|
305 | XMLUni(); |
---|
306 | }; |
---|
307 | |
---|
308 | XERCES_CPP_NAMESPACE_END |
---|
309 | |
---|
310 | #endif |
---|