Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:15:16

0001 /*
0002  * Licensed to the Apache Software Foundation (ASF) under one or more
0003  * contributor license agreements.  See the NOTICE file distributed with
0004  * this work for additional information regarding copyright ownership.
0005  * The ASF licenses this file to You under the Apache License, Version 2.0
0006  * (the "License"); you may not use this file except in compliance with
0007  * the License.  You may obtain a copy of the License at
0008  *
0009  *      http://www.apache.org/licenses/LICENSE-2.0
0010  *
0011  * Unless required by applicable law or agreed to in writing, software
0012  * distributed under the License is distributed on an "AS IS" BASIS,
0013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0014  * See the License for the specific language governing permissions and
0015  * limitations under the License.
0016  */
0017 
0018 /*
0019  * $Id$
0020  */
0021 
0022 
0023 // ---------------------------------------------------------------------------
0024 //  This file contains the grunt work constants for Unicode characters and
0025 //  common Unicode constant strings. These cannot be created normally because
0026 //  we have to compile on systems that cannot do the L"" style prefix. So
0027 //  they must be created as constant values for Unicode code points and the
0028 //  strings built up as arrays of those constants.
0029 // ---------------------------------------------------------------------------
0030 
0031 #if !defined(XERCESC_INCLUDE_GUARD_XMLUNI_HPP)
0032 #define XERCESC_INCLUDE_GUARD_XMLUNI_HPP
0033 
0034 #include <xercesc/util/XercesDefs.hpp>
0035 
0036 XERCES_CPP_NAMESPACE_BEGIN
0037 
0038 // Ignore warning about private constructor
0039 #if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5))
0040 #  pragma GCC diagnostic push
0041 #  pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
0042 #endif
0043 
0044 class XMLUTIL_EXPORT XMLUni
0045 {
0046 public :
0047     // -----------------------------------------------------------------------
0048     //  These are constant strings that are common in XML data. Because
0049     //  of the limitation of the compilers we have to work with, these are
0050     //  done as arrays of XMLCh characters, not as constant strings.
0051     // -----------------------------------------------------------------------
0052     static const XMLCh fgAnyString[];
0053     static const XMLCh fgAttListString[];
0054     static const XMLCh fgCommentString[];
0055     static const XMLCh fgCDATAString[];
0056     static const XMLCh fgDefaultString[];
0057     static const XMLCh fgDocTypeString[];
0058     static const XMLCh fgEBCDICEncodingString[];
0059     static const XMLCh fgElemString[];
0060     static const XMLCh fgEmptyString[];
0061     static const XMLCh fgEncodingString[];
0062     static const XMLCh fgEntitString[];
0063     static const XMLCh fgEntityString[];
0064     static const XMLCh fgEntitiesString[];
0065     static const XMLCh fgEnumerationString[];
0066     static const XMLCh fgExceptDomain[];
0067     static const XMLCh fgFixedString[];
0068     static const XMLCh fgIBM037EncodingString[];
0069     static const XMLCh fgIBM037EncodingString2[];
0070     static const XMLCh fgIBM1047EncodingString[];
0071     static const XMLCh fgIBM1047EncodingString2[];
0072     static const XMLCh fgIBM1140EncodingString[];
0073     static const XMLCh fgIBM1140EncodingString2[];
0074     static const XMLCh fgIBM1140EncodingString3[];
0075     static const XMLCh fgIBM1140EncodingString4[];
0076     static const XMLCh fgIESString[];
0077     static const XMLCh fgIDString[];
0078     static const XMLCh fgIDRefString[];
0079     static const XMLCh fgIDRefsString[];
0080     static const XMLCh fgImpliedString[];
0081     static const XMLCh fgIgnoreString[];
0082     static const XMLCh fgIncludeString[];
0083     static const XMLCh fgISO88591EncodingString[];
0084     static const XMLCh fgISO88591EncodingString2[];
0085     static const XMLCh fgISO88591EncodingString3[];
0086     static const XMLCh fgISO88591EncodingString4[];
0087     static const XMLCh fgISO88591EncodingString5[];
0088     static const XMLCh fgISO88591EncodingString6[];
0089     static const XMLCh fgISO88591EncodingString7[];
0090     static const XMLCh fgISO88591EncodingString8[];
0091     static const XMLCh fgISO88591EncodingString9[];
0092     static const XMLCh fgISO88591EncodingString10[];
0093     static const XMLCh fgISO88591EncodingString11[];
0094     static const XMLCh fgISO88591EncodingString12[];
0095     static const XMLCh fgLocalHostString[];
0096     static const XMLCh fgNoString[];
0097     static const XMLCh fgNotationString[];
0098     static const XMLCh fgNDATAString[];
0099     static const XMLCh fgNmTokenString[];
0100     static const XMLCh fgNmTokensString[];
0101     static const XMLCh fgPCDATAString[];
0102     static const XMLCh fgPIString[];
0103     static const XMLCh fgPubIDString[];
0104     static const XMLCh fgRefString[];
0105     static const XMLCh fgRequiredString[];
0106     static const XMLCh fgStandaloneString[];
0107     static const XMLCh fgVersion1[];
0108     static const XMLCh fgVersion1_0[];
0109     static const XMLCh fgVersion1_1[];
0110     static const XMLCh fgSysIDString[];
0111     static const XMLCh fgUnknownURIName[];
0112     static const XMLCh fgUCS4EncodingString[];
0113     static const XMLCh fgUCS4EncodingString2[];
0114     static const XMLCh fgUCS4EncodingString3[];
0115     static const XMLCh fgUCS4EncodingString4[];
0116     static const XMLCh fgUCS4EncodingString5[];
0117     static const XMLCh fgUCS4BEncodingString[];
0118     static const XMLCh fgUCS4BEncodingString2[];
0119     static const XMLCh fgUCS4LEncodingString[];
0120     static const XMLCh fgUCS4LEncodingString2[];
0121     static const XMLCh fgUSASCIIEncodingString[];
0122     static const XMLCh fgUSASCIIEncodingString2[];
0123     static const XMLCh fgUSASCIIEncodingString3[];
0124     static const XMLCh fgUSASCIIEncodingString4[];
0125     static const XMLCh fgUTF8EncodingString[];
0126     static const XMLCh fgUTF8EncodingString2[];
0127     static const XMLCh fgUTF16EncodingString[];
0128     static const XMLCh fgUTF16EncodingString2[];
0129     static const XMLCh fgUTF16EncodingString3[];
0130     static const XMLCh fgUTF16EncodingString4[];
0131     static const XMLCh fgUTF16EncodingString5[];
0132     static const XMLCh fgUTF16EncodingString6[];
0133     static const XMLCh fgUTF16EncodingString7[];
0134     static const XMLCh fgUTF16BEncodingString[];
0135     static const XMLCh fgUTF16BEncodingString2[];
0136     static const XMLCh fgUTF16LEncodingString[];
0137     static const XMLCh fgUTF16LEncodingString2[];
0138     static const XMLCh fgVersionString[];
0139     static const XMLCh fgValidityDomain[];
0140     static const XMLCh fgWin1252EncodingString[];
0141     static const XMLCh fgXMLChEncodingString[];
0142     static const XMLCh fgXMLDOMMsgDomain[];
0143     static const XMLCh fgXMLString[];
0144     static const XMLCh fgXMLStringSpace[];
0145     static const XMLCh fgXMLStringHTab[];
0146     static const XMLCh fgXMLStringCR[];
0147     static const XMLCh fgXMLStringLF[];
0148     static const XMLCh fgXMLStringSpaceU[];
0149     static const XMLCh fgXMLStringHTabU[];
0150     static const XMLCh fgXMLStringCRU[];
0151     static const XMLCh fgXMLStringLFU[];
0152     static const XMLCh fgXMLDeclString[];
0153     static const XMLCh fgXMLDeclStringSpace[];
0154     static const XMLCh fgXMLDeclStringHTab[];
0155     static const XMLCh fgXMLDeclStringLF[];
0156     static const XMLCh fgXMLDeclStringCR[];
0157     static const XMLCh fgXMLDeclStringSpaceU[];
0158     static const XMLCh fgXMLDeclStringHTabU[];
0159     static const XMLCh fgXMLDeclStringLFU[];
0160     static const XMLCh fgXMLDeclStringCRU[];
0161     static const XMLCh fgXMLNSString[];
0162     static const XMLCh fgXMLNSColonString[];
0163     static const XMLCh fgXMLNSURIName[];
0164     static const XMLCh fgXMLErrDomain[];
0165     static const XMLCh fgXMLURIName[];
0166     static const XMLCh fgInfosetURIName[];
0167     static const XMLCh fgYesString[];
0168     static const XMLCh fgZeroLenString[];
0169     static const XMLCh fgDTDEntityString[];
0170     static const XMLCh fgAmp[];
0171     static const XMLCh fgLT[];
0172     static const XMLCh fgGT[];
0173     static const XMLCh fgQuot[];
0174     static const XMLCh fgApos[];
0175     static const XMLCh fgWFXMLScanner[];
0176     static const XMLCh fgIGXMLScanner[];
0177     static const XMLCh fgSGXMLScanner[];
0178     static const XMLCh fgDGXMLScanner[];
0179     static const XMLCh fgXSAXMLScanner[];
0180     static const XMLCh fgCDataStart[];
0181     static const XMLCh fgCDataEnd[];
0182 
0183     // Exception Name
0184     static const XMLCh fgArrayIndexOutOfBoundsException_Name[];
0185     static const XMLCh fgEmptyStackException_Name[];
0186     static const XMLCh fgIllegalArgumentException_Name[];
0187     static const XMLCh fgInvalidCastException_Name[];
0188     static const XMLCh fgIOException_Name[];
0189     static const XMLCh fgNoSuchElementException_Name[];
0190     static const XMLCh fgNullPointerException_Name[];
0191     static const XMLCh fgXMLPlatformUtilsException_Name[];
0192     static const XMLCh fgRuntimeException_Name[];
0193     static const XMLCh fgTranscodingException_Name[];
0194     static const XMLCh fgUnexpectedEOFException_Name[];
0195     static const XMLCh fgUnsupportedEncodingException_Name[];
0196     static const XMLCh fgUTFDataFormatException_Name[];
0197     static const XMLCh fgNetAccessorException_Name[];
0198     static const XMLCh fgMalformedURLException_Name[];
0199     static const XMLCh fgNumberFormatException_Name[];
0200     static const XMLCh fgParseException_Name[];
0201     static const XMLCh fgInvalidDatatypeFacetException_Name[];
0202     static const XMLCh fgInvalidDatatypeValueException_Name[];
0203     static const XMLCh fgSchemaDateTimeException_Name[];
0204     static const XMLCh fgXPathException_Name[];
0205     static const XMLCh fgXSerializationException_Name[];
0206     static const XMLCh fgXMLXIncludeException_Name[];
0207 
0208     // Numerical String
0209     static const XMLCh fgNegINFString[];
0210     static const XMLCh fgNegZeroString[];
0211     static const XMLCh fgPosZeroString[];
0212     static const XMLCh fgPosINFString[];
0213     static const XMLCh fgNaNString[];
0214     static const XMLCh fgEString[];
0215     static const XMLCh fgZeroString[];
0216     static const XMLCh fgNullString[];
0217 
0218     // Xerces features/properties names
0219     static const XMLCh fgXercesDynamic[];
0220     static const XMLCh fgXercesSchema[];
0221     static const XMLCh fgXercesSchemaFullChecking[];
0222     static const XMLCh fgXercesLoadSchema[];
0223     static const XMLCh fgXercesIdentityConstraintChecking[];
0224     static const XMLCh fgXercesSchemaExternalSchemaLocation[];
0225     static const XMLCh fgXercesSchemaExternalNoNameSpaceSchemaLocation[];
0226     static const XMLCh fgXercesSecurityManager[];
0227     static const XMLCh fgXercesDisallowDoctype[]; // DOMDisallowDoctype equivalent for SAX.
0228     static const XMLCh fgXercesLoadExternalDTD[];
0229     static const XMLCh fgXercesContinueAfterFatalError[];
0230     static const XMLCh fgXercesValidationErrorAsFatal[];
0231     static const XMLCh fgXercesUserAdoptsDOMDocument[];
0232     static const XMLCh fgXercesCacheGrammarFromParse[];
0233     static const XMLCh fgXercesUseCachedGrammarInParse[];
0234     static const XMLCh fgXercesScannerName[];
0235     static const XMLCh fgXercesParserUseDocumentFromImplementation[];
0236     static const XMLCh fgXercesCalculateSrcOfs[];
0237     static const XMLCh fgXercesStandardUriConformant[];
0238     static const XMLCh fgXercesDOMHasPSVIInfo[];
0239     static const XMLCh fgXercesGenerateSyntheticAnnotations[];
0240     static const XMLCh fgXercesValidateAnnotations[];
0241     static const XMLCh fgXercesIgnoreCachedDTD[];
0242     static const XMLCh fgXercesIgnoreAnnotations[];
0243     static const XMLCh fgXercesDisableDefaultEntityResolution[];
0244     static const XMLCh fgXercesSkipDTDValidation[];
0245     static const XMLCh fgXercesEntityResolver[];
0246     static const XMLCh fgXercesHandleMultipleImports[];
0247     static const XMLCh fgXercesDoXInclude[];
0248     static const XMLCh fgXercesLowWaterMark[];
0249 
0250     // SAX2 features/properties names
0251     static const XMLCh fgSAX2CoreValidation[];
0252     static const XMLCh fgSAX2CoreNameSpaces[];
0253     static const XMLCh fgSAX2CoreNameSpacePrefixes[];
0254 
0255     // Introduced in DOM Level 3
0256     // DOMLSParser features
0257     static const XMLCh fgDOMCanonicalForm[];
0258     static const XMLCh fgDOMCDATASections[];
0259     static const XMLCh fgDOMComments[];
0260     static const XMLCh fgDOMCharsetOverridesXMLEncoding[];
0261     static const XMLCh fgDOMCheckCharacterNormalization[];
0262     static const XMLCh fgDOMDatatypeNormalization[];
0263     static const XMLCh fgDOMDisallowDoctype[];
0264     static const XMLCh fgDOMElementContentWhitespace[];
0265     static const XMLCh fgDOMErrorHandler[];
0266     static const XMLCh fgDOMEntities[];
0267     static const XMLCh fgDOMIgnoreUnknownCharacterDenormalization[];
0268     static const XMLCh fgDOMInfoset[];
0269     static const XMLCh fgDOMNamespaces[];
0270     static const XMLCh fgDOMNamespaceDeclarations[];
0271     static const XMLCh fgDOMNormalizeCharacters[];
0272     static const XMLCh fgDOMResourceResolver[];
0273     static const XMLCh fgDOMSchemaLocation[];
0274     static const XMLCh fgDOMSchemaType[];
0275     static const XMLCh fgDOMSplitCDATASections[];
0276     static const XMLCh fgDOMSupportedMediatypesOnly[];
0277     static const XMLCh fgDOMValidate[];
0278     static const XMLCh fgDOMValidateIfSchema[];
0279     static const XMLCh fgDOMWellFormed[];
0280 
0281     static const XMLCh fgDOMXMLSchemaType[];
0282     static const XMLCh fgDOMDTDType[];
0283 
0284     // Introduced in DOM Level 3
0285     // DOMLSSerializer feature
0286     static const XMLCh fgDOMWRTCanonicalForm[];
0287     static const XMLCh fgDOMWRTDiscardDefaultContent[];
0288     static const XMLCh fgDOMWRTEntities[];
0289     static const XMLCh fgDOMWRTFormatPrettyPrint[];
0290     static const XMLCh fgDOMWRTNormalizeCharacters[];
0291     static const XMLCh fgDOMWRTSplitCdataSections[];
0292     static const XMLCh fgDOMWRTValidation[];
0293     static const XMLCh fgDOMWRTWhitespaceInElementContent[];
0294     static const XMLCh fgDOMWRTBOM[];
0295     static const XMLCh fgDOMXMLDeclaration[];
0296     static const XMLCh fgDOMWRTXercesPrettyPrint[];
0297 
0298     // Private interface names
0299     static const XMLCh fgXercescInterfacePSVITypeInfo[];
0300     static const XMLCh fgXercescInterfaceDOMDocumentTypeImpl[];
0301     static const XMLCh fgXercescInterfaceDOMDocumentImpl[];
0302     static const XMLCh fgXercescInterfaceDOMMemoryManager[];
0303 
0304     // Locale
0305     static const char  fgXercescDefaultLocale[];
0306 
0307     // Default Exception String
0308     static const XMLCh  fgDefErrMsg[];
0309 
0310     // Datatype
0311     static const XMLCh fgValueZero[];
0312     static const XMLCh fgNegOne[];
0313     static const XMLCh fgValueOne[];
0314     static const XMLCh fgLongMaxInc[];
0315     static const XMLCh fgLongMinInc[];
0316     static const XMLCh fgIntMaxInc[];
0317     static const XMLCh fgIntMinInc[];
0318     static const XMLCh fgShortMaxInc[];
0319     static const XMLCh fgShortMinInc[];
0320     static const XMLCh fgByteMaxInc[];
0321     static const XMLCh fgByteMinInc[];
0322     static const XMLCh fgULongMaxInc[];
0323     static const XMLCh fgUIntMaxInc[];
0324     static const XMLCh fgUShortMaxInc[];
0325     static const XMLCh fgUByteMaxInc[];
0326     static const XMLCh fgLangPattern[];
0327 
0328     static const XMLCh fgBooleanValueSpace[][8];
0329     static const XMLSize_t fgBooleanValueSpaceArraySize;
0330 
0331 private:
0332     // -----------------------------------------------------------------------
0333     //  Unimplemented constructors and operators
0334     // -----------------------------------------------------------------------
0335     XMLUni();
0336 };
0337 
0338 #if defined __GNUC__ && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 5))
0339 #  pragma GCC diagnostic pop
0340 #endif
0341 
0342 XERCES_CPP_NAMESPACE_END
0343 
0344 #endif