Qt 4.8
|
This class contains helper functions related to XML, for validating character classes, productions in the XML specification, and so on. More...
#include <qxmlutils_p.h>
Static Public Functions | |
static bool | isChar (const QChar c) |
Determines whether c is a valid instance of production [2]Char in the XML 1.0 specification. More... | |
static bool | isEncName (const QString &encName) |
Determines whether encName is a valid instance of production [81]EncName in the XML 1.0 specification. More... | |
static bool | isLetter (const QChar c) |
Determines whether c is a valid instance of production [84]Letter in the XML 1.0 specification. More... | |
static bool | isNameChar (const QChar c) |
Determines whether c is a valid instance of production [4]NameChar in the XML 1.0 specification. More... | |
static bool | isNCName (const QStringRef &ncName) |
Determines whether c is a valid instance of production [4]NCName in the XML 1.0 Namespaces specification. More... | |
static bool | isNCName (const QString &ncName) |
static bool | isPublicID (const QString &candidate) |
Determines whether c is a valid instance of production [12] PubidLiteral in the XML 1.0 specification. More... | |
Private Types | |
typedef const QXmlCharRange * | RangeIter |
Static Private Functions | |
static bool | isBaseChar (const QChar c) |
static bool | isCombiningChar (const QChar c) |
static bool | isDigit (const QChar c) |
static bool | isExtender (const QChar c) |
static bool | isIdeographic (const QChar c) |
static bool | rangeContains (RangeIter begin, RangeIter end, const QChar c) |
Performs a binary search between begin and end inclusive, to check whether c is contained. More... | |
This class contains helper functions related to XML, for validating character classes, productions in the XML specification, and so on.
Definition at line 69 of file qxmlutils_p.h.
|
private |
Definition at line 81 of file qxmlutils_p.h.
|
staticprivate |
Definition at line 219 of file qxmlutils.cpp.
|
static |
Determines whether c is a valid instance of production [2]Char in the XML 1.0 specification.
If it is, true is returned, otherwise false.
Definition at line 271 of file qxmlutils.cpp.
Referenced by fixedCharData(), and QPatternist::AccelTreeResourceLoader::retrieveUnparsedText().
|
staticprivate |
Definition at line 186 of file qxmlutils.cpp.
|
staticprivate |
Definition at line 200 of file qxmlutils.cpp.
|
static |
Determines whether encName is a valid instance of production [81]EncName in the XML 1.0 specification.
If it is, true is returned, otherwise false.
Definition at line 234 of file qxmlutils.cpp.
Referenced by QXmlStreamReaderPrivate::startDocument().
|
staticprivate |
Definition at line 214 of file qxmlutils.cpp.
|
staticprivate |
Definition at line 157 of file qxmlutils.cpp.
|
static |
Determines whether c is a valid instance of production [84]Letter in the XML 1.0 specification.
If it is, true is returned, otherwise false.
Definition at line 256 of file qxmlutils.cpp.
Referenced by fixedXmlName(), and isNCName().
|
static |
Determines whether c is a valid instance of production [4]NameChar in the XML 1.0 specification.
If it is, true is returned, otherwise false.
Definition at line 291 of file qxmlutils.cpp.
Referenced by fixedXmlName(), and isNCName().
|
static |
Determines whether c is a valid instance of production [4]NCName in the XML 1.0 Namespaces specification.
If it is, true is returned, otherwise false.
Definition at line 377 of file qxmlutils.cpp.
Referenced by QPatternist::NamePool::allocateBinding(), QPatternist::NamePool::allocateQName(), QPatternist::AccelTreeBuilder< true >::attribute(), QPatternist::ComputedNamespaceConstructor::evaluateToSequenceReceiver(), QPatternist::DerivedString< TypeToken >::fromLexical(), QXmlName::isNCName(), QPatternist::XPathHelper::isQName(), StringSplitter::loadNext(), QXmlStreamReaderPrivate::parse(), QXmlName::QXmlName(), QPatternist::XsdSchemaParser::readNameAttribute(), QPatternist::XPathHelper::splitQName(), QPatternist::NamePool::unlockedAllocateLocalName(), QPatternist::NCNameConstructor::validateTargetName(), and QPatternist::yyparse().
|
inlinestatic |
Definition at line 77 of file qxmlutils_p.h.
Referenced by isNCName().
|
static |
Determines whether c is a valid instance of production [12] PubidLiteral in the XML 1.0 specification.
If it is, true is returned, otherwise false.
Definition at line 316 of file qxmlutils.cpp.
Referenced by fixedPubidLiteral(), and QXmlStreamReaderPrivate::parse().
Performs a binary search between begin and end inclusive, to check whether c is contained.
Remember that the QXmlCharRange instances must be in numeric order.
Definition at line 67 of file qxmlutils.cpp.