Xerces-C++: XMLUni.hpp Source File

- Main Page
- Related Pages
- Classes
- Files

# XMLUni.hpp

Go to the documentation of this file.

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