Qt 4.8
Functions
qassemblestringfns.cpp File Reference
#include "qcommonvalues_p.h"
#include "qpatternistlocale_p.h"
#include "qschemanumeric_p.h"
#include "qatomicstring_p.h"
#include "qtocodepointsiterator_p.h"
#include "qassemblestringfns_p.h"

Go to the source code of this file.

Functions

static bool isValidXML10Char (const qint32 cp)
 

Function Documentation

◆ isValidXML10Char()

static bool isValidXML10Char ( const qint32  cp)
inlinestatic

Definition at line 60 of file qassemblestringfns.cpp.

Referenced by QPatternist::CodepointsToStringFN::evaluateSingleton().

61 {
62  /* [2] Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] |
63  * [#xE000-#xFFFD] | [#x10000-#x10FFFF]
64  */
65  return (cp == 0x9 ||
66  cp == 0xA ||
67  cp == 0xD ||
68  (0x20 <= cp && cp <= 0xD7FF) ||
69  (0xE000 <= cp && cp <= 0xFFFD) ||
70  (0x10000 <= cp && cp <= 0x10FFFF));
71 }