22#if !defined(XERCESC_INCLUDE_GUARD_XMLCHAR_HPP)
23#define XERCESC_INCLUDE_GUARD_XMLCHAR_HPP
53 const XMLCh*
const toCheck
59 const XMLCh*
const toCheck
65 const XMLCh*
const toCheck
71 const XMLCh*
const toCheck
77 const XMLCh*
const toCheck
82 const XMLCh*
const toCheck
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);
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();
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))
278 const XMLCh*
const toCheck
284 const XMLCh*
const toCheck
290 const XMLCh*
const toCheck
296 const XMLCh*
const toCheck
302 const XMLCh*
const toCheck
307 const XMLCh*
const toCheck
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);
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))
const XMLByte gPlainContentCharMask
Definition XMLChar.hpp:36
const XMLByte gNameCharMask
Definition XMLChar.hpp:35
const XMLByte gXMLCharMask
Definition XMLChar.hpp:39
XERCES_CPP_NAMESPACE_BEGIN const XMLByte gNCNameCharMask
Definition XMLChar.hpp:33
const XMLByte gSpecialStartTagCharMask
Definition XMLChar.hpp:37
const XMLByte gFirstNameCharMask
Definition XMLChar.hpp:34
const XMLByte gControlCharMask
Definition XMLChar.hpp:38
const XMLByte gWhitespaceCharMask
Definition XMLChar.hpp:40
const XMLCh chUnderscore
Definition XMLUniDefs.hpp:76
const XMLCh chColon
Definition XMLUniDefs.hpp:53
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
unsigned char XMLByte
Definition XercesDefs.hpp:65
#define XMLUTIL_EXPORT
Definition XercesDefs.hpp:162
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
size_t XMLSize_t
Definition Xerces_autoconf_config.hpp:112
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
Definition XMLChar.hpp:46
static bool isValidName(const XMLCh *const toCheck, const XMLSize_t count)
static bool isSpecialStartTagChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:223
static bool isValidQName(const XMLCh *const toCheck, const XMLSize_t count)
static bool isControlChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:254
static bool isValidName(const XMLCh *const toCheck)
static bool isPlainContentChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:210
static bool isNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:186
static bool isValidNCName(const XMLCh *const toCheck, const XMLSize_t count)
static bool isValidNmtoken(const XMLCh *const toCheck, const XMLSize_t count)
static bool isXMLLetter(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:151
static bool containsWhiteSpace(const XMLCh *const toCheck, const XMLSize_t count)
static bool isXMLChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:230
static bool isNCNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:198
static bool isWhitespace(const XMLCh toCheck)
Definition XMLChar.hpp:242
static bool isPublicIdChar(const XMLCh toCheck, const XMLCh toCheck2=0)
static bool isNELRecognized()
Return true if NEL (0x85) and LSEP (0x2028) to be treated as white space char.
Definition XMLChar.hpp:261
static void enableNELWS()
Method to enable NEL (0x85) and LSEP (0x2028) to be treated as white space char.
static bool isAllSpaces(const XMLCh *const toCheck, const XMLSize_t count)
static bool isFirstNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:161
static bool isFirstNCNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:173
Definition XMLChar.hpp:271
static bool isValidQName(const XMLCh *const toCheck, const XMLSize_t count)
static bool isFirstNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:363
static bool isFirstNCNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:375
static bool isSpecialStartTagChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:425
static bool isAllSpaces(const XMLCh *const toCheck, const XMLSize_t count)
static bool isNCNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:400
static bool isPublicIdChar(const XMLCh toCheck, const XMLCh toCheck2=0)
static bool isPlainContentChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:412
static bool isWhitespace(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:444
static bool isXMLChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:432
static bool containsWhiteSpace(const XMLCh *const toCheck, const XMLSize_t count)
static bool isValidNmtoken(const XMLCh *const toCheck, const XMLSize_t count)
static bool isValidNCName(const XMLCh *const toCheck, const XMLSize_t count)
static bool isControlChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:451
static bool isValidName(const XMLCh *const toCheck, const XMLSize_t count)
static bool isNameChar(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:388
static bool isXMLLetter(const XMLCh toCheck, const XMLCh toCheck2=0)
Definition XMLChar.hpp:357
static bool isValidName(const XMLCh *const toCheck)