Go to the documentation of this file.
   22 #if !defined(XERCESC_INCLUDE_GUARD_XMLCHAR_HPP) 
   23 #define XERCESC_INCLUDE_GUARD_XMLCHAR_HPP 
   51     static bool isAllSpaces
 
   53         const   XMLCh* 
const    toCheck
 
   57     static bool containsWhiteSpace
 
   59         const   XMLCh* 
const    toCheck
 
   63     static bool isValidNmtoken
 
   65         const   XMLCh*        
const    toCheck
 
   69     static bool isValidName
 
   71         const   XMLCh* 
const    toCheck
 
   75     static bool isValidName
 
   77         const   XMLCh* 
const    toCheck
 
   80     static bool isValidNCName
 
   82         const   XMLCh* 
const    toCheck
 
   86     static bool isValidQName
 
   88         const   XMLCh* 
const    toCheck
 
   96     static bool isXMLLetter(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
   97     static bool isFirstNameChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
   98     static bool isNameChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
   99     static bool isPlainContentChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  100     static bool isSpecialStartTagChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  101     static bool isXMLChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  102     static bool isWhitespace(
const XMLCh toCheck);
 
  103     static bool isWhitespace(
const XMLCh toCheck, 
const XMLCh toCheck2);
 
  104     static bool isControlChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  106     static bool isPublicIdChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  107     static bool isFirstNCNameChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  108     static bool isNCNameChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  116     static bool isNELRecognized();
 
  121     static void enableNELWS();
 
  141     static XMLByte  fgCharCharsTable1_0[0x10000];
 
  142     static bool     enableNEL;
 
  144     friend class XMLReader;
 
  166         if ((toCheck >= 0xD800) && (toCheck <= 0xDB7F))
 
  167            if ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
 
  179         if ((toCheck >= 0xD800) && (toCheck <= 0xDB7F))
 
  180            if ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
 
  189         return ((fgCharCharsTable1_0[toCheck] & 
gNameCharMask) != 0);
 
  191         if ((toCheck >= 0xD800) && (toCheck <= 0xDB7F))
 
  192            if ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
 
  203         if ((toCheck >= 0xD800) && (toCheck <= 0xDB7F))
 
  204            if ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
 
  215         if ((toCheck >= 0xD800) && (toCheck <= 0xDBFF))
 
  216            if ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
 
  233         return ((fgCharCharsTable1_0[toCheck] & 
gXMLCharMask) != 0);
 
  235         if ((toCheck >= 0xD800) && (toCheck <= 0xDBFF))
 
  236            if ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
 
  276     static bool isAllSpaces
 
  278         const   XMLCh* 
const    toCheck
 
  282     static bool containsWhiteSpace
 
  284         const   XMLCh* 
const    toCheck
 
  288     static bool isValidNmtoken
 
  290         const   XMLCh*        
const    toCheck
 
  294     static bool isValidName
 
  296         const   XMLCh* 
const    toCheck
 
  300     static bool isValidName
 
  302         const   XMLCh* 
const    toCheck
 
  305     static bool isValidNCName
 
  307         const   XMLCh* 
const    toCheck
 
  311     static bool isValidQName
 
  313         const   XMLCh* 
const    toCheck
 
  320     static bool isXMLLetter(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  321     static bool isFirstNameChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  322     static bool isNameChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  323     static bool isPlainContentChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  324     static bool isSpecialStartTagChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  325     static bool isXMLChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  326     static bool isWhitespace(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  327     static bool isControlChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  329     static bool isPublicIdChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  330     static bool isFirstNCNameChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  331     static bool isNCNameChar(
const XMLCh toCheck, 
const XMLCh toCheck2 = 0);
 
  348     static XMLByte  fgCharCharsTable1_1[0x10000];
 
  350     friend class XMLReader;
 
  368         if ((toCheck >= 0xD800) && (toCheck <= 0xDB7F))
 
  369            if ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
 
  381         if ((toCheck >= 0xD800) && (toCheck <= 0xDB7F))
 
  382            if ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
 
  391         return ((fgCharCharsTable1_1[toCheck] & 
gNameCharMask) != 0);
 
  393         if ((toCheck >= 0xD800) && (toCheck <= 0xDB7F))
 
  394            if ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
 
  405         if ((toCheck >= 0xD800) && (toCheck <= 0xDB7F))
 
  406            if ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
 
  417         if ((toCheck >= 0xD800) && (toCheck <= 0xDBFF))
 
  418            if ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
 
  435         return ((fgCharCharsTable1_1[toCheck] & 
gXMLCharMask) != 0);
 
  437         if ((toCheck >= 0xD800) && (toCheck <= 0xDBFF))
 
  438            if ((toCheck2 >= 0xDC00) && (toCheck2 <= 0xDFFF))
 
  
static bool isFirstNCNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:375
static bool isXMLLetter(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:357
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
const XMLByte gWhitespaceCharMask
Definition: XMLChar.hpp:40
const XMLByte gFirstNameCharMask
Definition: XMLChar.hpp:34
static bool isNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:388
static bool isNCNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:400
static bool isXMLLetter(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:151
Definition: XMLChar.hpp:270
const XMLCh chColon
Definition: XMLUniDefs.hpp:53
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
static bool isXMLChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:230
static bool isNELRecognized()
Return true if NEL (0x85) and LSEP (0x2028) to be treated as white space char.
Definition: XMLChar.hpp:261
const XMLByte gXMLCharMask
Definition: XMLChar.hpp:39
unsigned char XMLByte
Definition: XercesDefs.hpp:65
#define XMLUTIL_EXPORT
Definition: XercesDefs.hpp:162
static bool isNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:186
static bool isFirstNCNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:173
Definition: XMLChar.hpp:45
uint16_t XMLCh
Definition: Xerces_autoconf_config.hpp:120
static bool isWhitespace(const XMLCh toCheck)
Definition: XMLChar.hpp:242
static bool isFirstNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:161
static bool isSpecialStartTagChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:223
static bool isControlChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:254
const XMLByte gNameCharMask
Definition: XMLChar.hpp:35
size_t XMLSize_t
Definition: Xerces_autoconf_config.hpp:112
const XMLCh chUnderscore
Definition: XMLUniDefs.hpp:76
static bool isFirstNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:363
const XMLByte gControlCharMask
Definition: XMLChar.hpp:38
static bool isControlChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:451
static bool isPlainContentChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:412
const XERCES_CPP_NAMESPACE_BEGIN XMLByte gNCNameCharMask
Definition: XMLChar.hpp:33
static bool isSpecialStartTagChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:425
static bool isXMLChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:432
const XMLByte gSpecialStartTagCharMask
Definition: XMLChar.hpp:37
const XMLByte gPlainContentCharMask
Definition: XMLChar.hpp:36
static bool isWhitespace(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:444
static bool isPlainContentChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:210
static bool isNCNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition: XMLChar.hpp:198