Xerces-C++ 3.1.2

- Main Page
- Related Pages
- Classes
- Files

- File List
- File Members

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: XMLUni.hpp 833045 2009-11-05 13:21:27Z borisk $
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 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 fgUCS4EncodingString5[];
110 static const XMLCh fgUCS4BEncodingString[];
111 static const XMLCh fgUCS4BEncodingString2[];
112 static const XMLCh fgUCS4LEncodingString[];
113 static const XMLCh fgUCS4LEncodingString2[];
114 static const XMLCh fgUSASCIIEncodingString[];
115 static const XMLCh fgUSASCIIEncodingString2[];
116 static const XMLCh fgUSASCIIEncodingString3[];
117 static const XMLCh fgUSASCIIEncodingString4[];
118 static const XMLCh fgUTF8EncodingString[];
119 static const XMLCh fgUTF8EncodingString2[];
120 static const XMLCh fgUTF16EncodingString[];
121 static const XMLCh fgUTF16EncodingString2[];
122 static const XMLCh fgUTF16EncodingString3[];
123 static const XMLCh fgUTF16EncodingString4[];
124 static const XMLCh fgUTF16EncodingString5[];
125 static const XMLCh fgUTF16EncodingString6[];
126 static const XMLCh fgUTF16EncodingString7[];
127 static const XMLCh fgUTF16BEncodingString[];
128 static const XMLCh fgUTF16BEncodingString2[];
129 static const XMLCh fgUTF16LEncodingString[];
130 static const XMLCh fgUTF16LEncodingString2[];
131 static const XMLCh fgVersionString[];
132 static const XMLCh fgValidityDomain[];
133 static const XMLCh fgWin1252EncodingString[];
134 static const XMLCh fgXMLChEncodingString[];
135 static const XMLCh fgXMLDOMMsgDomain[];
136 static const XMLCh fgXMLString[];
137 static const XMLCh fgXMLStringSpace[];
138 static const XMLCh fgXMLStringHTab[];
139 static const XMLCh fgXMLStringCR[];
140 static const XMLCh fgXMLStringLF[];
141 static const XMLCh fgXMLStringSpaceU[];
142 static const XMLCh fgXMLStringHTabU[];
143 static const XMLCh fgXMLStringCRU[];
144 static const XMLCh fgXMLStringLFU[];
145 static const XMLCh fgXMLDeclString[];
146 static const XMLCh fgXMLDeclStringSpace[];
147 static const XMLCh fgXMLDeclStringHTab[];
148 static const XMLCh fgXMLDeclStringLF[];
149 static const XMLCh fgXMLDeclStringCR[];
150 static const XMLCh fgXMLDeclStringSpaceU[];
151 static const XMLCh fgXMLDeclStringHTabU[];
152 static const XMLCh fgXMLDeclStringLFU[];
153 static const XMLCh fgXMLDeclStringCRU[];
154 static const XMLCh fgXMLNSString[];
155 static const XMLCh fgXMLNSColonString[];
156 static const XMLCh fgXMLNSURIName[];
157 static const XMLCh fgXMLErrDomain[];
158 static const XMLCh fgXMLURIName[];
159 static const XMLCh fgInfosetURIName[];
160 static const XMLCh fgYesString[];
161 static const XMLCh fgZeroLenString[];
162 static const XMLCh fgDTDEntityString[];
163 static const XMLCh fgAmp[];
164 static const XMLCh fgLT[];
165 static const XMLCh fgGT[];
166 static const XMLCh fgQuot[];
167 static const XMLCh fgApos[];
168 static const XMLCh fgWFXMLScanner[];
169 static const XMLCh fgIGXMLScanner[];
170 static const XMLCh fgSGXMLScanner[];
171 static const XMLCh fgDGXMLScanner[];
172 static const XMLCh fgXSAXMLScanner[];
173 static const XMLCh fgCDataStart[];
174 static const XMLCh fgCDataEnd[];
175
176 // Exception Name
177 static const XMLCh fgArrayIndexOutOfBoundsException_Name[];
178 static const XMLCh fgEmptyStackException_Name[];
179 static const XMLCh fgIllegalArgumentException_Name[];
180 static const XMLCh fgInvalidCastException_Name[];
181 static const XMLCh fgIOException_Name[];
182 static const XMLCh fgNoSuchElementException_Name[];
183 static const XMLCh fgNullPointerException_Name[];
184 static const XMLCh fgXMLPlatformUtilsException_Name[];
185 static const XMLCh fgRuntimeException_Name[];
186 static const XMLCh fgTranscodingException_Name[];
187 static const XMLCh fgUnexpectedEOFException_Name[];
188 static const XMLCh fgUnsupportedEncodingException_Name[];
189 static const XMLCh fgUTFDataFormatException_Name[];
190 static const XMLCh fgNetAccessorException_Name[];
191 static const XMLCh fgMalformedURLException_Name[];
192 static const XMLCh fgNumberFormatException_Name[];
193 static const XMLCh fgParseException_Name[];
194 static const XMLCh fgInvalidDatatypeFacetException_Name[];
195 static const XMLCh fgInvalidDatatypeValueException_Name[];
196 static const XMLCh fgSchemaDateTimeException_Name[];
197 static const XMLCh fgXPathException_Name[];
198 static const XMLCh fgXSerializationException_Name[];
199 static const XMLCh fgXMLXIncludeException_Name[];
200
201 // Numerical String
202 static const XMLCh fgNegINFString[];
203 static const XMLCh fgNegZeroString[];
204 static const XMLCh fgPosZeroString[];
205 static const XMLCh fgPosINFString[];
206 static const XMLCh fgNaNString[];
207 static const XMLCh fgEString[];
208 static const XMLCh fgZeroString[];
209 static const XMLCh fgNullString[];
210
211 // Xerces features/properties names
212 static const XMLCh fgXercesDynamic[];
213 static const XMLCh fgXercesSchema[];
214 static const XMLCh fgXercesSchemaFullChecking[];
215 static const XMLCh fgXercesLoadSchema[];
216 static const XMLCh fgXercesIdentityConstraintChecking[];
217 static const XMLCh fgXercesSchemaExternalSchemaLocation[];
218 static const XMLCh fgXercesSchemaExternalNoNameSpaceSchemaLocation[];
219 static const XMLCh fgXercesSecurityManager[];
220 static const XMLCh fgXercesLoadExternalDTD[];
221 static const XMLCh fgXercesContinueAfterFatalError[];
222 static const XMLCh fgXercesValidationErrorAsFatal[];
223 static const XMLCh fgXercesUserAdoptsDOMDocument[];
224 static const XMLCh fgXercesCacheGrammarFromParse[];
225 static const XMLCh fgXercesUseCachedGrammarInParse[];
226 static const XMLCh fgXercesScannerName[];
227 static const XMLCh fgXercesParserUseDocumentFromImplementation[];
228 static const XMLCh fgXercesCalculateSrcOfs[];
229 static const XMLCh fgXercesStandardUriConformant[];
230 static const XMLCh fgXercesDOMHasPSVIInfo[];
231 static const XMLCh fgXercesGenerateSyntheticAnnotations[];
232 static const XMLCh fgXercesValidateAnnotations[];
233 static const XMLCh fgXercesIgnoreCachedDTD[];
234 static const XMLCh fgXercesIgnoreAnnotations[];
235 static const XMLCh fgXercesDisableDefaultEntityResolution[];
236 static const XMLCh fgXercesSkipDTDValidation[];
237 static const XMLCh fgXercesEntityResolver[];
238 static const XMLCh fgXercesHandleMultipleImports[];
239 static const XMLCh fgXercesDoXInclude[];
240 static const XMLCh fgXercesLowWaterMark[];
241
242 // SAX2 features/properties names
243 static const XMLCh fgSAX2CoreValidation[];
244 static const XMLCh fgSAX2CoreNameSpaces[];
245 static const XMLCh fgSAX2CoreNameSpacePrefixes[];
246
247 // Introduced in DOM Level 3
248 // DOMLSParser features
249 static const XMLCh fgDOMCanonicalForm[];
250 static const XMLCh fgDOMCDATASections[];
251 static const XMLCh fgDOMComments[];
252 static const XMLCh fgDOMCharsetOverridesXMLEncoding[];
253 static const XMLCh fgDOMCheckCharacterNormalization[];
254 static const XMLCh fgDOMDatatypeNormalization[];
255 static const XMLCh fgDOMDisallowDoctype[];
256 static const XMLCh fgDOMElementContentWhitespace[];
257 static const XMLCh fgDOMErrorHandler[];
258 static const XMLCh fgDOMEntities[];
259 static const XMLCh fgDOMIgnoreUnknownCharacterDenormalization[];
260 static const XMLCh fgDOMInfoset[];
261 static const XMLCh fgDOMNamespaces[];
262 static const XMLCh fgDOMNamespaceDeclarations[];
263 static const XMLCh fgDOMNormalizeCharacters[];
264 static const XMLCh fgDOMResourceResolver[];
265 static const XMLCh fgDOMSchemaLocation[];
266 static const XMLCh fgDOMSchemaType[];
267 static const XMLCh fgDOMSplitCDATASections[];
268 static const XMLCh fgDOMSupportedMediatypesOnly[];
269 static const XMLCh fgDOMValidate[];
270 static const XMLCh fgDOMValidateIfSchema[];
271 static const XMLCh fgDOMWellFormed[];
272
273 static const XMLCh fgDOMXMLSchemaType[];
274 static const XMLCh fgDOMDTDType[];
275
276 // Introduced in DOM Level 3
277 // DOMLSSerializer feature
278 static const XMLCh fgDOMWRTCanonicalForm[];
279 static const XMLCh fgDOMWRTDiscardDefaultContent[];
280 static const XMLCh fgDOMWRTEntities[];
281 static const XMLCh fgDOMWRTFormatPrettyPrint[];
282 static const XMLCh fgDOMWRTNormalizeCharacters[];
283 static const XMLCh fgDOMWRTSplitCdataSections[];
284 static const XMLCh fgDOMWRTValidation[];
285 static const XMLCh fgDOMWRTWhitespaceInElementContent[];
286 static const XMLCh fgDOMWRTBOM[];
287 static const XMLCh fgDOMXMLDeclaration[];
288 static const XMLCh fgDOMWRTXercesPrettyPrint[];
289
290 // Private interface names
291 static const XMLCh fgXercescInterfacePSVITypeInfo[];
292 static const XMLCh fgXercescInterfaceDOMDocumentTypeImpl[];
293 static const XMLCh fgXercescInterfaceDOMDocumentImpl[];
294 static const XMLCh fgXercescInterfaceDOMMemoryManager[];
295
296 // Locale
297 static const char fgXercescDefaultLocale[];
298
299 // Default Exception String
300 static const XMLCh fgDefErrMsg[];
301
302 // Datatype
303 static const XMLCh fgValueZero[];
304 static const XMLCh fgNegOne[];
305 static const XMLCh fgValueOne[];
306 static const XMLCh fgLongMaxInc[];
307 static const XMLCh fgLongMinInc[];
308 static const XMLCh fgIntMaxInc[];
309 static const XMLCh fgIntMinInc[];
310 static const XMLCh fgShortMaxInc[];
311 static const XMLCh fgShortMinInc[];
312 static const XMLCh fgByteMaxInc[];
313 static const XMLCh fgByteMinInc[];
314 static const XMLCh fgULongMaxInc[];
315 static const XMLCh fgUIntMaxInc[];
316 static const XMLCh fgUShortMaxInc[];
317 static const XMLCh fgUByteMaxInc[];
318 static const XMLCh fgLangPattern[];
319
320 static const XMLCh fgBooleanValueSpace[][8];
321 static const XMLSize_t fgBooleanValueSpaceArraySize;
322
323 private:
324 // -----------------------------------------------------------------------
325 // Unimplemented constructors and operators
326 // -----------------------------------------------------------------------
327 XMLUni();
328 };
329
330 XERCES_CPP_NAMESPACE_END
331
332 #endif
XercesDefs.hpp
XMLUni::fgBooleanValueSpaceArraySize
static const XMLSize_t fgBooleanValueSpaceArraySize
Definition: XMLUni.hpp:321
XMLUni
Definition: XMLUni.hpp:38
XMLSize_t
SIZE_T XMLSize_t
Definition: Xerces_autoconf_config.borland.hpp:86
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
XMLCh
wchar_t XMLCh
Definition: Xerces_autoconf_config.borland.hpp:92
XMLUTIL_EXPORT
#define XMLUTIL_EXPORT
Definition: XercesDefs.hpp:162
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113