Xerces-C++ 3.2.5

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 fgXercesDisallowDoctype[]; // DOMDisallowDoctype equivalent for SAX.
228 static const XMLCh fgXercesLoadExternalDTD[];
229 static const XMLCh fgXercesContinueAfterFatalError[];
230 static const XMLCh fgXercesValidationErrorAsFatal[];
231 static const XMLCh fgXercesUserAdoptsDOMDocument[];
232 static const XMLCh fgXercesCacheGrammarFromParse[];
233 static const XMLCh fgXercesUseCachedGrammarInParse[];
234 static const XMLCh fgXercesScannerName[];
235 static const XMLCh fgXercesParserUseDocumentFromImplementation[];
236 static const XMLCh fgXercesCalculateSrcOfs[];
237 static const XMLCh fgXercesStandardUriConformant[];
238 static const XMLCh fgXercesDOMHasPSVIInfo[];
239 static const XMLCh fgXercesGenerateSyntheticAnnotations[];
240 static const XMLCh fgXercesValidateAnnotations[];
241 static const XMLCh fgXercesIgnoreCachedDTD[];
242 static const XMLCh fgXercesIgnoreAnnotations[];
243 static const XMLCh fgXercesDisableDefaultEntityResolution[];
244 static const XMLCh fgXercesSkipDTDValidation[];
245 static const XMLCh fgXercesEntityResolver[];
246 static const XMLCh fgXercesHandleMultipleImports[];
247 static const XMLCh fgXercesDoXInclude[];
248 static const XMLCh fgXercesLowWaterMark[];
249
250 // SAX2 features/properties names
251 static const XMLCh fgSAX2CoreValidation[];
252 static const XMLCh fgSAX2CoreNameSpaces[];
253 static const XMLCh fgSAX2CoreNameSpacePrefixes[];
254
255 // Introduced in DOM Level 3
256 // DOMLSParser features
257 static const XMLCh fgDOMCanonicalForm[];
258 static const XMLCh fgDOMCDATASections[];
259 static const XMLCh fgDOMComments[];
260 static const XMLCh fgDOMCharsetOverridesXMLEncoding[];
261 static const XMLCh fgDOMCheckCharacterNormalization[];
262 static const XMLCh fgDOMDatatypeNormalization[];
263 static const XMLCh fgDOMDisallowDoctype[];
264 static const XMLCh fgDOMElementContentWhitespace[];
265 static const XMLCh fgDOMErrorHandler[];
266 static const XMLCh fgDOMEntities[];
267 static const XMLCh fgDOMIgnoreUnknownCharacterDenormalization[];
268 static const XMLCh fgDOMInfoset[];
269 static const XMLCh fgDOMNamespaces[];
270 static const XMLCh fgDOMNamespaceDeclarations[];
271 static const XMLCh fgDOMNormalizeCharacters[];
272 static const XMLCh fgDOMResourceResolver[];
273 static const XMLCh fgDOMSchemaLocation[];
274 static const XMLCh fgDOMSchemaType[];
275 static const XMLCh fgDOMSplitCDATASections[];
276 static const XMLCh fgDOMSupportedMediatypesOnly[];
277 static const XMLCh fgDOMValidate[];
278 static const XMLCh fgDOMValidateIfSchema[];
279 static const XMLCh fgDOMWellFormed[];
280
281 static const XMLCh fgDOMXMLSchemaType[];
282 static const XMLCh fgDOMDTDType[];
283
284 // Introduced in DOM Level 3
285 // DOMLSSerializer feature
286 static const XMLCh fgDOMWRTCanonicalForm[];
287 static const XMLCh fgDOMWRTDiscardDefaultContent[];
288 static const XMLCh fgDOMWRTEntities[];
289 static const XMLCh fgDOMWRTFormatPrettyPrint[];
290 static const XMLCh fgDOMWRTNormalizeCharacters[];
291 static const XMLCh fgDOMWRTSplitCdataSections[];
292 static const XMLCh fgDOMWRTValidation[];
293 static const XMLCh fgDOMWRTWhitespaceInElementContent[];
294 static const XMLCh fgDOMWRTBOM[];
295 static const XMLCh fgDOMXMLDeclaration[];
296 static const XMLCh fgDOMWRTXercesPrettyPrint[];
297
298 // Private interface names
299 static const XMLCh fgXercescInterfacePSVITypeInfo[];
300 static const XMLCh fgXercescInterfaceDOMDocumentTypeImpl[];
301 static const XMLCh fgXercescInterfaceDOMDocumentImpl[];
302 static const XMLCh fgXercescInterfaceDOMMemoryManager[];
303
304 // Locale
305 static const char fgXercescDefaultLocale[];
306
307 // Default Exception String
308 static const XMLCh fgDefErrMsg[];
309
310 // Datatype
311 static const XMLCh fgValueZero[];
312 static const XMLCh fgNegOne[];
313 static const XMLCh fgValueOne[];
314 static const XMLCh fgLongMaxInc[];
315 static const XMLCh fgLongMinInc[];
316 static const XMLCh fgIntMaxInc[];
317 static const XMLCh fgIntMinInc[];
318 static const XMLCh fgShortMaxInc[];
319 static const XMLCh fgShortMinInc[];
320 static const XMLCh fgByteMaxInc[];
321 static const XMLCh fgByteMinInc[];
322 static const XMLCh fgULongMaxInc[];
323 static const XMLCh fgUIntMaxInc[];
324 static const XMLCh fgUShortMaxInc[];
325 static const XMLCh fgUByteMaxInc[];
326 static const XMLCh fgLangPattern[];
327
328 static const XMLCh fgBooleanValueSpace[][8];
329 static const XMLSize_t fgBooleanValueSpaceArraySize;
330
331 private:
332 // -----------------------------------------------------------------------
333 // Unimplemented constructors and operators
334 // -----------------------------------------------------------------------
335 XMLUni();
336};
337
338#if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5))
339# pragma GCC diagnostic pop
340#endif
341
342 XERCES_CPP_NAMESPACE_END
343
344#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:329