44 #include "private/qxmlutils_p.h" 272 return QXmlName(nsCode, localCode, prefixCode);
303 return indexInLocalNames;
317 return indexInPrefixes;
const QString & stringForLocalName(const QXmlName::LocalNameCode code) const
QString displayName(const QXmlName qName) const
QHash< QString, QXmlName::PrefixCode > m_prefixMapping
#define QT_END_NAMESPACE
This macro expands to.
bool hasNamespace() const
Returns true if this QXmlName has a non-empty namespace URI.
NamespaceCode LocalNameCode
QHash< QString, QXmlName::LocalNameCode > m_localNameMapping
const QChar at(int i) const
Returns the character at the given index position in the string.
int count(const T &t) const
Returns the number of occurrences of value in the vector.
QXmlName allocateBinding(const QString &prefix, const QString &uri)
Allocates a namespace binding for prefix and uri.
int length() const
Returns the number of characters in this string.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
QVector< QString > m_localNames
The QString class provides a Unicode character string.
QXmlName fromClarkName(const QString &clarkName)
QXmlName::LocalNameCode unlockedAllocateLocalName(const QString &ln)
QHash< QString, QXmlName::NamespaceCode > m_namespaceMapping
QString prefix(const QXmlNamePool &query) const
Returns the prefix.
const T value(const Key &key) const
Returns the value associated with the key.
void reserve(int size)
Ensures that the QHash's internal hash table consists of at least size buckets.
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
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.
The namespace for the internal API of QtXmlPatterns.
void append(const T &t)
Inserts value at the end of the vector.
QVector< QString > m_namespaces
int indexOf(QChar c, int from=0, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
static QChar fromLatin1(char c)
Converts the Latin-1 character c to its equivalent QChar.
QString right(int n) const Q_REQUIRED_RESULT
Returns a substring that contains the n rightmost characters of the string.
QXmlName::NamespaceCode unlockedAllocateNamespace(const QString &uri)
The QReadLocker class is a convenience class that simplifies locking and unlocking read-write locks f...
The QWriteLocker class is a convenience class that simplifies locking and unlocking read-write locks ...
const T & at(int i) const
Returns the item at index position i in the vector.
QVector< QString > m_prefixes
QString localName(const QXmlNamePool &query) const
Returns the local name.
QString mid(int position, int n=-1) const Q_REQUIRED_RESULT
Returns a string that contains n characters of this string, starting at the specified position index...
NamespaceCode namespaceURI() const
#define Q_ASSERT_X(cond, where, what)
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
QString toClarkName(const QXmlName &name) const
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
static bool isNCName(const QString &candidate)
Returns true if candidate is an NCName.
const QString & stringForNamespace(const QXmlName::NamespaceCode code) const
QXmlName allocateQName(const QString &uri, const QString &localName, const QString &prefix=QString())
static void splitQName(const QString &qName, QString &prefix, QString &localName)
Splits qName into localName and prefix.
void reserve(int size)
Attempts to allocate memory for at least size elements.
QString toLexical(const QXmlName qName) const
static bool isQName(const QString &qName)
#define qPrintable(string)
const QString & displayPrefix(const QXmlName::NamespaceCode nc) const
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.
bool isNull() const
Returns true if this QXmlName is not initialized with a valid combination of {namespace URI}...
QXmlName::PrefixCode unlockedAllocatePrefix(const QString &prefix)