42 #include <QStringList> 44 #include "private/qxmlutils_p.h" 67 const int c = result.count();
83 "qName must be a valid QName.");
87 if(result.count() == 1)
90 ncName = result.first();
98 prefix = result.first();
99 ncName = result.last();
122 "A node type that doesn't exist in the XPath Data Model was encountered.");
131 "The URI passed to QXmlQuery::setQuery() must be valid or empty.");
bool isValid() const
Returns true if the URL is valid; otherwise returns false.
#define QT_END_NAMESPACE
This macro expands to.
static QString applicationFilePath()
Returns the file path of the application executable.
bool isEmpty() const
Returns true if the URL has no data; otherwise returns false.
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
static bool isReservedNamespace(const QXmlName::NamespaceCode ns)
bool isRelative() const
Returns true if the URL is relative; otherwise returns false.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QStringList class provides a list of strings.
The namespace for the internal API of QtXmlPatterns.
static const ItemType::Ptr document
QExplicitlySharedDataPointer< ItemType > Ptr
#define Q_ASSERT_X(cond, where, what)
NodeKind
Identifies a kind of node.
static const ItemType::Ptr attribute
static void splitQName(const QString &qName, QString &prefix, QString &localName)
Splits qName into localName and prefix.
static QUrl fromLocalFile(const QString &localfile)
Returns a QUrl representation of localFile, interpreted as a local file.
static const ItemType::Ptr text
QStringList split(const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
Splits the string into substrings wherever sep occurs, and returns the list of those strings...
static QPatternist::ItemTypePtr typeFromKind(const QXmlNodeModelIndex::NodeKind nodeKind)
static const ItemType::Ptr pi
static bool isQName(const QString &qName)
static const ItemType::Ptr element
static QUrl normalizeQueryURI(const QUrl &uri)
static bool isNCName(const QStringRef &ncName)
Determines whether c is a valid instance of production [4]NCName in the XML 1.0 Namespaces specificat...
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
static const ItemType::Ptr comment