http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Release Info

Installation
Download
Build

FAQs
Samples
API Docs

DOM C++ Binding
Programming
Migration Guide

Feedback
Bug-Reporting
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XMLUni.hpp

Go to the documentation of this file.
00001 /*
00002  * Copyright 1999-2004 The Apache Software Foundation.
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  *      http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 /*
00018  * $Id: XMLUni.hpp,v 1.40 2004/09/28 02:14:14 cargilld Exp $
00019  */
00020 
00021 
00022 // ---------------------------------------------------------------------------
00023 //  This file contains the grunt work constants for Unicode characters and
00024 //  common Unicode constant strings. These cannot be created normally because
00025 //  we have to compile on systems that cannot do the L"" style prefix. So
00026 //  they must be created as constant values for Unicode code points and the
00027 //  strings built up as arrays of those constants.
00028 // ---------------------------------------------------------------------------
00029 
00030 #if !defined(XMLUNI_HPP)
00031 #define XMLUNI_HPP
00032 
00033 #include <xercesc/util/XercesDefs.hpp>
00034 
00035 XERCES_CPP_NAMESPACE_BEGIN
00036 
00037 class  XMLUni
00038 {
00039 public :
00040     // -----------------------------------------------------------------------
00041     //  These are constant strings that are common in XML data. Because
00042     //  of the limitation of the compilers we have to work with, these are
00043     //  done as arrays of XMLCh characters, not as constant strings.
00044     // -----------------------------------------------------------------------
00045     static const XMLCh fgAnyString[];
00046     static const XMLCh fgAttListString[];
00047     static const XMLCh fgCommentString[];
00048     static const XMLCh fgCDATAString[];
00049     static const XMLCh fgDefaultString[];
00050     static const XMLCh fgDocTypeString[];
00051     static const XMLCh fgEBCDICEncodingString[];
00052     static const XMLCh fgElemString[];
00053     static const XMLCh fgEmptyString[];
00054     static const XMLCh fgEncodingString[];
00055     static const XMLCh fgEntitString[];
00056     static const XMLCh fgEntityString[];
00057     static const XMLCh fgEntitiesString[];
00058     static const XMLCh fgEnumerationString[];
00059     static const XMLCh fgExceptDomain[];
00060     static const XMLCh fgFixedString[];
00061     static const XMLCh fgIBM037EncodingString[];
00062     static const XMLCh fgIBM037EncodingString2[];
00063     static const XMLCh fgIBM1047EncodingString[];
00064     static const XMLCh fgIBM1047EncodingString2[];
00065     static const XMLCh fgIBM1140EncodingString[];
00066     static const XMLCh fgIBM1140EncodingString2[];
00067     static const XMLCh fgIBM1140EncodingString3[];
00068     static const XMLCh fgIBM1140EncodingString4[];
00069     static const XMLCh fgIESString[];
00070     static const XMLCh fgIDString[];
00071     static const XMLCh fgIDRefString[];
00072     static const XMLCh fgIDRefsString[];
00073     static const XMLCh fgImpliedString[];
00074     static const XMLCh fgIgnoreString[];
00075     static const XMLCh fgIncludeString[];
00076     static const XMLCh fgISO88591EncodingString[];
00077     static const XMLCh fgISO88591EncodingString2[];
00078     static const XMLCh fgISO88591EncodingString3[];
00079     static const XMLCh fgISO88591EncodingString4[];
00080     static const XMLCh fgISO88591EncodingString5[];
00081     static const XMLCh fgISO88591EncodingString6[];
00082     static const XMLCh fgISO88591EncodingString7[];
00083     static const XMLCh fgISO88591EncodingString8[];
00084     static const XMLCh fgISO88591EncodingString9[];
00085     static const XMLCh fgISO88591EncodingString10[];
00086     static const XMLCh fgISO88591EncodingString11[];
00087     static const XMLCh fgISO88591EncodingString12[];
00088     static const XMLCh fgLocalHostString[];
00089     static const XMLCh fgNoString[];
00090     static const XMLCh fgNotationString[];
00091     static const XMLCh fgNDATAString[];
00092     static const XMLCh fgNmTokenString[];
00093     static const XMLCh fgNmTokensString[];
00094     static const XMLCh fgPCDATAString[];
00095     static const XMLCh fgPIString[];
00096     static const XMLCh fgPubIDString[];
00097     static const XMLCh fgRefString[];
00098     static const XMLCh fgRequiredString[];
00099     static const XMLCh fgStandaloneString[];
00100     static const XMLCh fgVersion1_0[];
00101     static const XMLCh fgVersion1_1[];
00102     static const XMLCh fgSysIDString[];
00103     static const XMLCh fgUnknownURIName[];
00104     static const XMLCh fgUCS4EncodingString[];
00105     static const XMLCh fgUCS4EncodingString2[];
00106     static const XMLCh fgUCS4EncodingString3[];
00107     static const XMLCh fgUCS4BEncodingString[];
00108     static const XMLCh fgUCS4BEncodingString2[];
00109     static const XMLCh fgUCS4LEncodingString[];
00110     static const XMLCh fgUCS4LEncodingString2[];
00111     static const XMLCh fgUSASCIIEncodingString[];
00112     static const XMLCh fgUSASCIIEncodingString2[];
00113     static const XMLCh fgUSASCIIEncodingString3[];
00114     static const XMLCh fgUSASCIIEncodingString4[];
00115     static const XMLCh fgUTF8EncodingString[];
00116     static const XMLCh fgUTF8EncodingString2[];
00117     static const XMLCh fgUTF16EncodingString[];
00118     static const XMLCh fgUTF16EncodingString2[];
00119     static const XMLCh fgUTF16EncodingString3[];
00120     static const XMLCh fgUTF16EncodingString4[];
00121     static const XMLCh fgUTF16EncodingString5[];
00122     static const XMLCh fgUTF16BEncodingString[];
00123     static const XMLCh fgUTF16BEncodingString2[];
00124     static const XMLCh fgUTF16LEncodingString[];
00125     static const XMLCh fgUTF16LEncodingString2[];
00126     static const XMLCh fgVersionString[];
00127     static const XMLCh fgValidityDomain[];
00128     static const XMLCh fgWin1252EncodingString[];
00129     static const XMLCh fgXMLChEncodingString[];
00130     static const XMLCh fgXMLDOMMsgDomain[];
00131     static const XMLCh fgXMLString[];
00132     static const XMLCh fgXMLStringSpace[];
00133     static const XMLCh fgXMLStringHTab[];
00134     static const XMLCh fgXMLStringCR[];
00135     static const XMLCh fgXMLStringLF[];
00136     static const XMLCh fgXMLStringSpaceU[];
00137     static const XMLCh fgXMLStringHTabU[];
00138     static const XMLCh fgXMLStringCRU[];
00139     static const XMLCh fgXMLStringLFU[];
00140     static const XMLCh fgXMLDeclString[];
00141     static const XMLCh fgXMLDeclStringSpace[];
00142     static const XMLCh fgXMLDeclStringHTab[];
00143     static const XMLCh fgXMLDeclStringLF[];
00144     static const XMLCh fgXMLDeclStringCR[];
00145     static const XMLCh fgXMLDeclStringSpaceU[];
00146     static const XMLCh fgXMLDeclStringHTabU[];
00147     static const XMLCh fgXMLDeclStringLFU[];
00148     static const XMLCh fgXMLDeclStringCRU[];
00149     static const XMLCh fgXMLNSString[];
00150     static const XMLCh fgXMLNSColonString[];
00151     static const XMLCh fgXMLNSURIName[];
00152     static const XMLCh fgXMLErrDomain[];
00153     static const XMLCh fgXMLURIName[];
00154     static const XMLCh fgInfosetURIName[];
00155     static const XMLCh fgYesString[];
00156     static const XMLCh fgZeroLenString[];
00157     static const XMLCh fgDTDEntityString[];
00158     static const XMLCh fgAmp[];
00159     static const XMLCh fgLT[];
00160     static const XMLCh fgGT[];
00161     static const XMLCh fgQuot[];
00162     static const XMLCh fgApos[];
00163     static const XMLCh fgWFXMLScanner[];
00164     static const XMLCh fgIGXMLScanner[];
00165     static const XMLCh fgSGXMLScanner[];
00166     static const XMLCh fgDGXMLScanner[];
00167     static const XMLCh fgXSAXMLScanner[];
00168     static const XMLCh fgCDataStart[];
00169     static const XMLCh fgCDataEnd[];
00170 
00171     // Exception Name
00172     static const XMLCh fgArrayIndexOutOfBoundsException_Name[];
00173     static const XMLCh fgEmptyStackException_Name[];
00174     static const XMLCh fgIllegalArgumentException_Name[];
00175     static const XMLCh fgInvalidCastException_Name[];
00176     static const XMLCh fgIOException_Name[];
00177     static const XMLCh fgNoSuchElementException_Name[];
00178     static const XMLCh fgNullPointerException_Name[];
00179     static const XMLCh fgXMLPlatformUtilsException_Name[];
00180     static const XMLCh fgRuntimeException_Name[];
00181     static const XMLCh fgTranscodingException_Name[];
00182     static const XMLCh fgUnexpectedEOFException_Name[];
00183     static const XMLCh fgUnsupportedEncodingException_Name[];
00184     static const XMLCh fgUTFDataFormatException_Name[];
00185     static const XMLCh fgNetAccessorException_Name[];
00186     static const XMLCh fgMalformedURLException_Name[];
00187     static const XMLCh fgNumberFormatException_Name[];
00188     static const XMLCh fgParseException_Name[];
00189     static const XMLCh fgInvalidDatatypeFacetException_Name[];
00190     static const XMLCh fgInvalidDatatypeValueException_Name[];
00191     static const XMLCh fgSchemaDateTimeException_Name[];
00192     static const XMLCh fgXPathException_Name[];
00193     static const XMLCh fgXSerializationException_Name[];
00194 
00195     // Numerical String
00196     static const XMLCh fgNegINFString[];
00197     static const XMLCh fgNegZeroString[];
00198     static const XMLCh fgPosZeroString[];
00199     static const XMLCh fgPosINFString[];
00200     static const XMLCh fgNaNString[];
00201     static const XMLCh fgEString[];
00202     static const XMLCh fgZeroString[];
00203     static const XMLCh fgNullString[];
00204 
00205     // Xerces features/properties names
00206     static const XMLCh fgXercesDynamic[];
00207     static const XMLCh fgXercesSchema[];
00208     static const XMLCh fgXercesSchemaFullChecking[];
00209     static const XMLCh fgXercesIdentityConstraintChecking[];
00210     static const XMLCh fgXercesSchemaExternalSchemaLocation[];
00211     static const XMLCh fgXercesSchemaExternalNoNameSpaceSchemaLocation[];
00212     static const XMLCh fgXercesSecurityManager[];
00213     static const XMLCh fgXercesLoadExternalDTD[];
00214     static const XMLCh fgXercesContinueAfterFatalError[];
00215     static const XMLCh fgXercesValidationErrorAsFatal[];
00216     static const XMLCh fgXercesUserAdoptsDOMDocument[];
00217     static const XMLCh fgXercesCacheGrammarFromParse[];
00218     static const XMLCh fgXercesUseCachedGrammarInParse[];
00219     static const XMLCh fgXercesScannerName[];
00220     static const XMLCh fgXercesParserUseDocumentFromImplementation[];
00221     static const XMLCh fgXercesCalculateSrcOfs[];
00222     static const XMLCh fgXercesStandardUriConformant[];
00223     static const XMLCh fgXercesDOMHasPSVIInfo[];
00224     static const XMLCh fgXercesGenerateSyntheticAnnotations[];
00225     static const XMLCh fgXercesValidateAnnotations[];
00226 
00227 
00228     // SAX2 features/properties names
00229     static const XMLCh fgSAX2CoreValidation[];
00230     static const XMLCh fgSAX2CoreNameSpaces[];
00231     static const XMLCh fgSAX2CoreNameSpacePrefixes[];
00232 
00233     // Introduced in DOM Level 3
00234     // DOMBuilder features
00235     static const XMLCh fgDOMCanonicalForm[];
00236     static const XMLCh fgDOMCDATASections[];
00237     static const XMLCh fgDOMComments[];
00238     static const XMLCh fgDOMCharsetOverridesXMLEncoding[];
00239     static const XMLCh fgDOMDatatypeNormalization[];
00240     static const XMLCh fgDOMEntities[];
00241     static const XMLCh fgDOMInfoset[];
00242     static const XMLCh fgDOMNamespaces[];
00243     static const XMLCh fgDOMNamespaceDeclarations[];
00244     static const XMLCh fgDOMSupportedMediatypesOnly[];
00245     static const XMLCh fgDOMValidateIfSchema[];
00246     static const XMLCh fgDOMValidation[];
00247     static const XMLCh fgDOMWhitespaceInElementContent[];
00248 
00249     // Introduced in DOM Level 3
00250     // DOMWriter feature
00251     static const XMLCh fgDOMWRTCanonicalForm[];
00252     static const XMLCh fgDOMWRTDiscardDefaultContent[];
00253     static const XMLCh fgDOMWRTEntities[];
00254     static const XMLCh fgDOMWRTFormatPrettyPrint[];
00255     static const XMLCh fgDOMWRTNormalizeCharacters[];
00256     static const XMLCh fgDOMWRTSplitCdataSections[];
00257     static const XMLCh fgDOMWRTValidation[];
00258     static const XMLCh fgDOMWRTWhitespaceInElementContent[];
00259     static const XMLCh fgDOMWRTBOM[];
00260     static const XMLCh fgDOMXMLDeclaration[];
00261 
00262     // Private interface names
00263     static const XMLCh fgXercescInterfacePSVITypeInfo[];
00264 
00265     // Locale
00266     static const char  fgXercescDefaultLocale[];
00267 
00268     // Default Exception String
00269     static const XMLCh  fgDefErrMsg[];
00270 
00271     // Datatype
00272     static const XMLCh fgValueZero[];
00273     static const XMLCh fgNegOne[];
00274     static const XMLCh fgValueOne[];
00275     static const XMLCh fgLongMaxInc[];
00276     static const XMLCh fgLongMinInc[];
00277     static const XMLCh fgIntMaxInc[];
00278     static const XMLCh fgIntMinInc[];
00279     static const XMLCh fgShortMaxInc[];
00280     static const XMLCh fgShortMinInc[];
00281     static const XMLCh fgByteMaxInc[];
00282     static const XMLCh fgByteMinInc[];
00283     static const XMLCh fgULongMaxInc[];
00284     static const XMLCh fgUIntMaxInc[];
00285     static const XMLCh fgUShortMaxInc[];
00286     static const XMLCh fgUByteMaxInc[];
00287     static const XMLCh fgLangPattern[];
00288 
00289     static const XMLCh fgBooleanValueSpace[][32];
00290     static const unsigned int fgBooleanValueSpaceArraySize;
00291         
00292 private:
00293     // -----------------------------------------------------------------------
00294     //  Unimplemented constructors and operators
00295     // -----------------------------------------------------------------------
00296     XMLUni();
00297 };
00298 
00299 XERCES_CPP_NAMESPACE_END
00300 
00301 #endif


Copyright © 1994-2004 The Apache Software Foundation. All Rights Reserved.