Xerces-C++: XMLUni.hpp Source File

Xerces-C++ 3.2.4

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