source: NonGTP/Xerces/xerces/include/xercesc/util/XMLUni.hpp @ 358

Revision 358, 12.7 KB checked in by bittner, 19 years ago (diff)

xerces added

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