45 #include <QtCore/QString> 46 #include <QtCore/QMetaType> 65 NamespaceOffset = LocalNameLength,
68 InvalidCode = 1 << 31,
69 NamespaceMask = ((1 << ((NamespaceOffset + NamespaceLength) - NamespaceOffset)) - 1) << NamespaceOffset,
70 LocalNameMask = ((1 << ((LocalNameOffset + LocalNameLength) - LocalNameOffset)) - 1) << LocalNameOffset,
71 PrefixOffset = LocalNameLength + NamespaceLength,
72 PrefixMask = ((1 << ((PrefixOffset + PrefixLength) - PrefixOffset)) - 1) << PrefixOffset,
73 MaximumPrefixes = (PrefixMask >> PrefixOffset) - 1,
74 MaximumLocalNames = (LocalNameMask >> LocalNameOffset) - 1,
75 MaximumNamespaces = (NamespaceMask >> NamespaceOffset) - 1,
76 ExpandedNameMask = LocalNameMask | NamespaceMask,
77 LexicalQNameMask = LocalNameMask | PrefixMask
101 static bool isNCName(
const QString &candidate);
109 inline QXmlName(
const NamespaceCode uri,
110 const LocalNameCode ln,
111 const PrefixCode p = 0);
113 inline LocalNameCode localName()
const;
114 inline PrefixCode prefix()
const;
115 inline bool hasPrefix()
const;
116 inline bool hasNamespace()
const;
117 inline NamespaceCode namespaceURI()
const;
118 inline bool isLexicallyEqual(
const QXmlName &other)
const;
119 inline void setPrefix(
const PrefixCode
c);
120 inline void setNamespaceURI(
const NamespaceCode
c);
121 inline void setLocalName(
const LocalNameCode
c);
122 inline Code code()
const;
Q_DECLARE_TYPEINFO(QXmlName, Q_MOVABLE_TYPE)
#define QT_END_NAMESPACE
This macro expands to.
NamespaceCode LocalNameCode
bool operator!=(QBool b1, bool b2)
The QString class provides a Unicode character string.
The QXmlNamePool class is a table of shared strings referenced by instances of QXmlName.
Q_XMLPATTERNS_EXPORT uint qHash(const QXmlName &name)
#define QT_BEGIN_NAMESPACE
This macro expands to.
uint qHash(const QUrl &url)
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
#define Q_XMLPATTERNS_EXPORT
qint64 Code
Stores the QXmlNamePool {name pool} identifiers for the namespace URI, local name, and prefix.
bool operator==(QBool b1, bool b2)
Constant
Various constants used in the QPatternist::NamePool and QXmlName.
static bool isNull(const QVariant::Private *d)