56 #include "private/qxmlutils_p.h" 194 "The prefix is invalid, maybe the arguments were mixed up?");
196 "The local name is invalid, maybe the arguments were mixed up?");
const QString & stringForLocalName(const QXmlName::LocalNameCode code) const
#define QT_END_NAMESPACE
This macro expands to.
LocalNameCode localName() const
PrefixCode prefix() const
The QString class provides a Unicode character string.
QXmlName fromClarkName(const QString &clarkName)
bool operator!=(const QXmlName &other) const
Returns true if this QXmlName is not equal to other; otherwise false.
The QXmlNamePool class is a table of shared strings referenced by instances of QXmlName.
QString namespaceUri(const QXmlNamePool &query) const
Returns the namespace URI.
const QString & stringForPrefix(const QXmlName::PrefixCode code) const
#define QT_BEGIN_NAMESPACE
This macro expands to.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
bool operator==(const QXmlName &other) const
Returns true if this QXmlName is equal to other; otherwise false.
QXmlName & operator=(const QXmlName &other)
Assigns other to this and returns this.
QString toClarkName(const QXmlNamePool &query) const
Returns this QXmlName formatted as a Clark Name.
QExplicitlySharedDataPointer< QPatternist::NamePool > d
NamespaceCode namespaceURI() const
#define Q_ASSERT_X(cond, where, what)
QXmlName()
Constructs an uninitialized QXmlName.
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
QString toClarkName(const QXmlName &name) const
static bool isNCName(const QString &candidate)
Returns true if candidate is an NCName.
static QXmlName fromClarkName(const QString &clarkName, const QXmlNamePool &namePool)
Converts clarkName into a QXmlName, inserts into namePool, and returns it.
const QString & stringForNamespace(const QXmlName::NamespaceCode code) const
QXmlName allocateQName(const QString &uri, const QString &localName, const QString &prefix=QString())
Code code() const
Returns the internal code that contains the id codes for the local name, prefix and namespace 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...
friend Q_XMLPATTERNS_EXPORT uint qHash(const QXmlName &)
bool isNull() const
Returns true if this QXmlName is not initialized with a valid combination of {namespace URI}...