76 for (
int i = 0; i < declarations.
count(); i++) {
95 if (*itc == namespaceCode)
108 int len = qname.
size();
110 for (
int pos = 0; pos < len; ++pos) {
117 name =
QXmlName(namespaceCode, localNameCode, prefixCode);
130 name =
QXmlName(namespaceCode, localNameCode, 0);
151 QHashIterator<QXmlName::PrefixCode, QXmlName::NamespaceCode>
it(
m_ns);
152 while (it.hasNext()) {
QString toString() const
Returns a copy of the string reference as a QString object.
#define QT_END_NAMESPACE
This macro expands to.
NamespaceCode LocalNameCode
void clear()
Removes all items from the hash.
#define it(className, varName)
QStack< NamespaceHash > m_nsStack
int count(const T &t) const
Returns the number of occurrences of value in the vector.
Store names such as namespace bindings and QNames and allows them to be referenced in efficient ways...
QXmlName::NamespaceCode allocateNamespace(const QString &uri)
The QString class provides a Unicode character string.
bool contains(const Key &key) const
Returns true if the hash contains an item with the key; otherwise returns false.
The QChar class provides a 16-bit Unicode character.
const T value(const Key &key) const
Returns the value associated with the key.
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
QXmlName::PrefixCode allocatePrefix(const QString &prefix)
void setPrefix(const QXmlName::PrefixCode prefixCode, const QXmlName::NamespaceCode namespaceCode)
QXmlName::LocalNameCode allocateLocalName(const QString &ln)
void append(const T &t)
Inserts value at the end of the list.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString left(int n) const Q_REQUIRED_RESULT
Returns a substring that contains the n leftmost characters of the string.
int size() const
Returns the number of characters in this string.
The namespace for the internal API of QtXmlPatterns.
bool isEmpty() const
Returns true if the hash contains no items; otherwise returns false.
static QVector< Declaration > declarations(const QVector< StyleRule > &styleRules, const QString &part, quint64 pseudoClass=PseudoClass_Unspecified)
static const char * data(const QByteArray &arr)
QStringRef namespaceUri() const
Returns the namespaceUri.
QStringRef prefix() const
Returns the prefix.
An element name to process.
void setTargetNamespace(const QXmlName::NamespaceCode code)
const T & at(int i) const
Returns the item at index position i in the vector.
The QXmlStreamNamespaceDeclaration class represents a namespace declaration.
const_iterator constBegin() const
Returns a const STL-style iterator pointing to the first item in the hash.
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...
const_iterator constEnd() const
Returns a const STL-style iterator pointing to the imaginary item after the last item in the hash...
The QXmlName class represents the name of an XML node, in an efficient, namespace-aware way...
QList< QXmlName > namespaceBindings() const
QXmlName::PrefixCode prefix(const QXmlName::NamespaceCode code) const
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
bool processName(const QString &qualifiedName, NameType type, QXmlName &name) const
const QChar * constData() const
Returns a pointer to the data stored in the QString.
QXmlName::NamespaceCode uri(const QXmlName::PrefixCode code) const
void setPrefixes(const QXmlStreamNamespaceDeclarations &declarations)
friend class const_iterator