source: NonGTP/Xerces/xercesc/util/XMLUni.hpp @ 188

Revision 188, 13.5 KB checked in by mattausch, 19 years ago (diff)

added xercesc to support

Line 
1/*
2 * The Apache Software License, Version 1.1
3 *
4 * Copyright (c) 1999-2003 The Apache Software Foundation.  All rights
5 * reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 *
11 * 1. Redistributions of source code must retain the above copyright
12 *    notice, this list of conditions and the following disclaimer.
13 *
14 * 2. Redistributions in binary form must reproduce the above copyright
15 *    notice, this list of conditions and the following disclaimer in
16 *    the documentation and/or other materials provided with the
17 *    distribution.
18 *
19 * 3. The end-user documentation included with the redistribution,
20 *    if any, must include the following acknowledgment:
21 *       "This product includes software developed by the
22 *        Apache Software Foundation (http://www.apache.org/)."
23 *    Alternately, this acknowledgment may appear in the software itself,
24 *    if and wherever such third-party acknowledgments normally appear.
25 *
26 * 4. The names "Xerces" and "Apache Software Foundation" must
27 *    not be used to endorse or promote products derived from this
28 *    software without prior written permission. For written
29 *    permission, please contact apache\@apache.org.
30 *
31 * 5. Products derived from this software may not be called "Apache",
32 *    nor may "Apache" appear in their name, without prior written
33 *    permission of the Apache Software Foundation.
34 *
35 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
36 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
37 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
38 * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
39 * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
41 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
42 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
43 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
44 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
45 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
46 * SUCH DAMAGE.
47 * ====================================================================
48 *
49 * This software consists of voluntary contributions made by many
50 * individuals on behalf of the Apache Software Foundation, and was
51 * originally based on software copyright (c) 1999, International
52 * Business Machines, Inc., http://www.ibm.com .  For more information
53 * on the Apache Software Foundation, please see
54 * <http://www.apache.org/>.
55 */
56
57/*
58 * $Id: XMLUni.hpp,v 1.33 2004/01/29 11:48:47 cargilld Exp $
59 */
60
61
62// ---------------------------------------------------------------------------
63//  This file contains the grunt work constants for Unicode characters and
64//  common Unicode constant strings. These cannot be created normally because
65//  we have to compile on systems that cannot do the L"" style prefix. So
66//  they must be created as constant values for Unicode code points and the
67//  strings built up as arrays of those constants.
68// ---------------------------------------------------------------------------
69
70#if !defined(XMLUNI_HPP)
71#define XMLUNI_HPP
72
73#include <xercesc/util/XercesDefs.hpp>
74
75XERCES_CPP_NAMESPACE_BEGIN
76
77class XMLUTIL_EXPORT XMLUni
78{
79public :
80    // -----------------------------------------------------------------------
81    //  These are constant strings that are common in XML data. Because
82    //  of the limitation of the compilers we have to work with, these are
83    //  done as arrays of XMLCh characters, not as constant strings.
84    // -----------------------------------------------------------------------
85    static const XMLCh fgAnyString[];
86    static const XMLCh fgAttListString[];
87    static const XMLCh fgCommentString[];
88    static const XMLCh fgCDATAString[];
89    static const XMLCh fgDefaultString[];
90    static const XMLCh fgDocTypeString[];
91    static const XMLCh fgEBCDICEncodingString[];
92    static const XMLCh fgElemString[];
93    static const XMLCh fgEmptyString[];
94    static const XMLCh fgEncodingString[];
95    static const XMLCh fgEntitString[];
96    static const XMLCh fgEntityString[];
97    static const XMLCh fgEntitiesString[];
98    static const XMLCh fgEnumerationString[];
99    static const XMLCh fgExceptDomain[];
100    static const XMLCh fgFixedString[];
101    static const XMLCh fgIBM037EncodingString[];
102    static const XMLCh fgIBM037EncodingString2[];
103    static const XMLCh fgIBM1047EncodingString[];
104    static const XMLCh fgIBM1047EncodingString2[];
105    static const XMLCh fgIBM1140EncodingString[];
106    static const XMLCh fgIBM1140EncodingString2[];
107    static const XMLCh fgIBM1140EncodingString3[];
108    static const XMLCh fgIBM1140EncodingString4[];
109    static const XMLCh fgIESString[];
110    static const XMLCh fgIDString[];
111    static const XMLCh fgIDRefString[];
112    static const XMLCh fgIDRefsString[];
113    static const XMLCh fgImpliedString[];
114    static const XMLCh fgIgnoreString[];
115    static const XMLCh fgIncludeString[];
116    static const XMLCh fgISO88591EncodingString[];
117    static const XMLCh fgISO88591EncodingString2[];
118    static const XMLCh fgISO88591EncodingString3[];
119    static const XMLCh fgISO88591EncodingString4[];
120    static const XMLCh fgISO88591EncodingString5[];
121    static const XMLCh fgISO88591EncodingString6[];
122    static const XMLCh fgISO88591EncodingString7[];
123    static const XMLCh fgISO88591EncodingString8[];
124    static const XMLCh fgISO88591EncodingString9[];
125    static const XMLCh fgISO88591EncodingString10[];
126    static const XMLCh fgISO88591EncodingString11[];
127    static const XMLCh fgISO88591EncodingString12[];
128    static const XMLCh fgLocalHostString[];
129    static const XMLCh fgNoString[];
130    static const XMLCh fgNotationString[];
131    static const XMLCh fgNDATAString[];
132    static const XMLCh fgNmTokenString[];
133    static const XMLCh fgNmTokensString[];
134    static const XMLCh fgPCDATAString[];
135    static const XMLCh fgPIString[];
136    static const XMLCh fgPubIDString[];
137    static const XMLCh fgRefString[];
138    static const XMLCh fgRequiredString[];
139    static const XMLCh fgStandaloneString[];
140    static const XMLCh fgVersion1_0[];
141    static const XMLCh fgVersion1_1[];
142    static const XMLCh fgSysIDString[];
143    static const XMLCh fgUnknownURIName[];
144    static const XMLCh fgUCS4EncodingString[];
145    static const XMLCh fgUCS4EncodingString2[];
146    static const XMLCh fgUCS4EncodingString3[];
147    static const XMLCh fgUCS4BEncodingString[];
148    static const XMLCh fgUCS4BEncodingString2[];
149    static const XMLCh fgUCS4LEncodingString[];
150    static const XMLCh fgUCS4LEncodingString2[];
151    static const XMLCh fgUSASCIIEncodingString[];
152    static const XMLCh fgUSASCIIEncodingString2[];
153    static const XMLCh fgUSASCIIEncodingString3[];
154    static const XMLCh fgUSASCIIEncodingString4[];
155    static const XMLCh fgUTF8EncodingString[];
156    static const XMLCh fgUTF8EncodingString2[];
157    static const XMLCh fgUTF16EncodingString[];
158    static const XMLCh fgUTF16EncodingString2[];
159    static const XMLCh fgUTF16EncodingString3[];
160    static const XMLCh fgUTF16EncodingString4[];
161    static const XMLCh fgUTF16EncodingString5[];
162    static const XMLCh fgUTF16BEncodingString[];
163    static const XMLCh fgUTF16BEncodingString2[];
164    static const XMLCh fgUTF16LEncodingString[];
165    static const XMLCh fgUTF16LEncodingString2[];
166    static const XMLCh fgVersionString[];
167    static const XMLCh fgValidityDomain[];
168    static const XMLCh fgWin1252EncodingString[];
169    static const XMLCh fgXMLChEncodingString[];
170    static const XMLCh fgXMLDOMMsgDomain[];
171    static const XMLCh fgXMLString[];
172    static const XMLCh fgXMLStringSpace[];
173    static const XMLCh fgXMLStringHTab[];
174    static const XMLCh fgXMLStringCR[];
175    static const XMLCh fgXMLStringLF[];
176    static const XMLCh fgXMLStringSpaceU[];
177    static const XMLCh fgXMLStringHTabU[];
178    static const XMLCh fgXMLStringCRU[];
179    static const XMLCh fgXMLStringLFU[];
180    static const XMLCh fgXMLDeclString[];
181    static const XMLCh fgXMLDeclStringSpace[];
182    static const XMLCh fgXMLDeclStringHTab[];
183    static const XMLCh fgXMLDeclStringLF[];
184    static const XMLCh fgXMLDeclStringCR[];
185    static const XMLCh fgXMLDeclStringSpaceU[];
186    static const XMLCh fgXMLDeclStringHTabU[];
187    static const XMLCh fgXMLDeclStringLFU[];
188    static const XMLCh fgXMLDeclStringCRU[];
189    static const XMLCh fgXMLNSString[];
190    static const XMLCh fgXMLNSColonString[];
191    static const XMLCh fgXMLNSURIName[];
192    static const XMLCh fgXMLErrDomain[];
193    static const XMLCh fgXMLURIName[];
194    static const XMLCh fgYesString[];
195    static const XMLCh fgZeroLenString[];
196    static const XMLCh fgDTDEntityString[];
197    static const XMLCh fgAmp[];
198    static const XMLCh fgLT[];
199    static const XMLCh fgGT[];
200    static const XMLCh fgQuot[];
201    static const XMLCh fgApos[];
202    static const XMLCh fgWFXMLScanner[];
203    static const XMLCh fgIGXMLScanner[];
204    static const XMLCh fgSGXMLScanner[];
205    static const XMLCh fgDGXMLScanner[];
206    static const XMLCh fgCDataStart[];
207    static const XMLCh fgCDataEnd[];
208
209    // Exception Name
210    static const XMLCh fgArrayIndexOutOfBoundsException_Name[];
211    static const XMLCh fgEmptyStackException_Name[];
212    static const XMLCh fgIllegalArgumentException_Name[];
213    static const XMLCh fgInvalidCastException_Name[];
214    static const XMLCh fgIOException_Name[];
215    static const XMLCh fgNoSuchElementException_Name[];
216    static const XMLCh fgNullPointerException_Name[];
217    static const XMLCh fgXMLPlatformUtilsException_Name[];
218    static const XMLCh fgRuntimeException_Name[];
219    static const XMLCh fgTranscodingException_Name[];
220    static const XMLCh fgUnexpectedEOFException_Name[];
221    static const XMLCh fgUnsupportedEncodingException_Name[];
222    static const XMLCh fgUTFDataFormatException_Name[];
223    static const XMLCh fgNetAccessorException_Name[];
224    static const XMLCh fgMalformedURLException_Name[];
225    static const XMLCh fgNumberFormatException_Name[];
226    static const XMLCh fgParseException_Name[];
227    static const XMLCh fgInvalidDatatypeFacetException_Name[];
228    static const XMLCh fgInvalidDatatypeValueException_Name[];
229    static const XMLCh fgSchemaDateTimeException_Name[];
230    static const XMLCh fgXPathException_Name[];
231    static const XMLCh fgXSerializationException_Name[];
232
233    // Numerical String
234    static const XMLCh fgNegINFString[];
235    static const XMLCh fgNegZeroString[];
236    static const XMLCh fgPosZeroString[];
237    static const XMLCh fgPosINFString[];
238    static const XMLCh fgNaNString[];
239    static const XMLCh fgEString[];
240    static const XMLCh fgZeroString[];
241    static const XMLCh fgNullString[];
242
243    // Xerces features/properties names
244    static const XMLCh fgXercesDynamic[];
245    static const XMLCh fgXercesSchema[];
246    static const XMLCh fgXercesSchemaFullChecking[];
247    static const XMLCh fgXercesSchemaExternalSchemaLocation[];
248    static const XMLCh fgXercesSchemaExternalNoNameSpaceSchemaLocation[];
249    static const XMLCh fgXercesSecurityManager[];
250    static const XMLCh fgXercesLoadExternalDTD[];
251    static const XMLCh fgXercesContinueAfterFatalError[];
252    static const XMLCh fgXercesValidationErrorAsFatal[];
253    static const XMLCh fgXercesUserAdoptsDOMDocument[];
254    static const XMLCh fgXercesCacheGrammarFromParse[];
255    static const XMLCh fgXercesUseCachedGrammarInParse[];
256    static const XMLCh fgXercesScannerName[];
257    static const XMLCh fgXercesParserUseDocumentFromImplementation[];
258    static const XMLCh fgXercesCalculateSrcOfs[];
259    static const XMLCh fgXercesStandardUriConformant[];
260
261    // SAX2 features/properties names
262    static const XMLCh fgSAX2CoreValidation[];
263    static const XMLCh fgSAX2CoreNameSpaces[];
264    static const XMLCh fgSAX2CoreNameSpacePrefixes[];
265
266    // Introduced in DOM Level 3
267    // DOMBuilder features
268    static const XMLCh fgDOMCanonicalForm[];
269    static const XMLCh fgDOMCDATASections[];
270    static const XMLCh fgDOMComments[];
271    static const XMLCh fgDOMCharsetOverridesXMLEncoding[];
272    static const XMLCh fgDOMDatatypeNormalization[];
273    static const XMLCh fgDOMEntities[];
274    static const XMLCh fgDOMInfoset[];
275    static const XMLCh fgDOMNamespaces[];
276    static const XMLCh fgDOMNamespaceDeclarations[];
277    static const XMLCh fgDOMSupportedMediatypesOnly[];
278    static const XMLCh fgDOMValidateIfSchema[];
279    static const XMLCh fgDOMValidation[];
280    static const XMLCh fgDOMWhitespaceInElementContent[];
281
282    // Introduced in DOM Level 3
283    // DOMWriter feature
284    static const XMLCh fgDOMWRTCanonicalForm[];
285    static const XMLCh fgDOMWRTDiscardDefaultContent[];
286    static const XMLCh fgDOMWRTEntities[];
287    static const XMLCh fgDOMWRTFormatPrettyPrint[];
288    static const XMLCh fgDOMWRTNormalizeCharacters[];
289    static const XMLCh fgDOMWRTSplitCdataSections[];
290    static const XMLCh fgDOMWRTValidation[];
291    static const XMLCh fgDOMWRTWhitespaceInElementContent[];
292    static const XMLCh fgDOMWRTBOM[];
293    static const XMLCh fgDOMXMLDeclaration[];
294
295
296    // Locale
297    static const char  fgXercescDefaultLocale[];
298
299private:
300    // -----------------------------------------------------------------------
301    //  Unimplemented constructors and operators
302    // -----------------------------------------------------------------------
303    XMLUni();
304};
305
306XERCES_CPP_NAMESPACE_END
307
308#endif
Note: See TracBrowser for help on using the repository browser.