Qt 4.8
|
Contains helper and utility functions. More...
#include <qxpathhelper_p.h>
Static Public Functions | |
template<const ReportContext::ErrorCode code, typename TReportContext > | |
static void | checkCollationSupport (const QString &collation, const TReportContext &context, const SourceLocationReflection *const r) |
static bool | isQName (const QString &qName) |
static bool | isReservedNamespace (const QXmlName::NamespaceCode ns) |
static bool | isWhitespaceOnly (const QStringRef &string) |
Determines whether consists only of whitespace. Characters considered whitespace are the ones for which QChar::isSpace() returns true for. More... | |
static bool | isWhitespaceOnly (const QString &string) |
static QUrl | normalizeQueryURI (const QUrl &uri) |
static void | splitQName (const QString &qName, QString &prefix, QString &localName) |
Splits qName into localName and prefix . More... | |
static QPatternist::ItemTypePtr | typeFromKind (const QXmlNodeModelIndex::NodeKind nodeKind) |
Private Functions | |
XPathHelper () | |
This default constructor has no definition, in order to avoid instantiation, since it makes no sense to instantiate this class. More... | |
Contains helper and utility functions.
The common denominator of its functions is that they do not fit in well elsewhere, such as in a particular class. It is preferred if XPathHelper goes away, and that functions are in more specific classes.
Definition at line 76 of file qxpathhelper_p.h.
|
inlineprivate |
This default constructor has no definition, in order to avoid instantiation, since it makes no sense to instantiate this class.
Referenced by isWhitespaceOnly().
|
inlinestatic |
Determines whether collation
is a supported string collation. If it is not, error code code
is raised via context
.
Definition at line 111 of file qxpathhelper_p.h.
|
static |
Determines whether qName
is a valid QName. For example, "body" and "xhtml:body" is, but "xhtml::body" or "x:body "(note the whitespace) is not.
Definition at line 64 of file qxpathhelper.cpp.
Referenced by QPatternist::XsdTypeChecker::checkConstrainingFacetsQName(), QPatternist::QNameFN::evaluateSingleton(), QPatternist::QNameConstructor::expandQName(), QPatternist::NamePool::fromClarkName(), QPatternist::XsdTypeChecker::isValidString(), QPatternist::XsdSchemaParser::parseGlobalElement(), QPatternist::XsdValidatingInstanceReader::qNameAttribute(), QPatternist::XsdSchemaParser::readQNameAttribute(), QPatternist::XsdSchemaResolver::resolveEnumerationFacetValues(), and splitQName().
|
static |
Determines whether ns
is a reserved namespace.
true
if ns
is a reserved namespace, otherwise false
. Definition at line 55 of file qxpathhelper.cpp.
Referenced by QPatternist::yyparse().
|
inlinestatic |
Determines whether consists
only of whitespace. Characters considered whitespace are the ones for which QChar::isSpace() returns true
for.
For the empty string, true
is returned.
true
if string
consists only of whitespace, otherwise false
. Definition at line 143 of file qxpathhelper_p.h.
Referenced by isWhitespaceOnly(), QXmlFormatter::item(), QXmlFormatter::startFormattingContent(), and QPatternist::yyparse().
|
inlinestatic |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 159 of file qxpathhelper_p.h.
Normalizes an uri
by resolving it to the application directory if empty.
Definition at line 128 of file qxpathhelper.cpp.
Referenced by checkCollationSupport(), QXmlSchemaPrivate::load(), QXmlQuery::setQuery(), and QXmlSchemaValidator::validate().
|
static |
Splits qName
into localName
and prefix
.
qName
must be a valid QName, and that is not checked. Definition at line 80 of file qxpathhelper.cpp.
Referenced by QPatternist::ElementAvailableFN::evaluateEBV(), QPatternist::QNameFN::evaluateSingleton(), QPatternist::QNameConstructor::expandQName(), QPatternist::NamePool::fromClarkName(), and QPatternist::yyparse().
|
static |
Definition at line 103 of file qxpathhelper.cpp.
Referenced by checkCollationSupport(), and QPatternist::AccelTree::type().