7#include <QtCore/qiodevice.h>
11#include <QtCore/qlist.h>
12#include <QtCore/qscopedpointer.h>
13#include <QtCore/qstring.h>
57 return QStringView(m_qualifiedName).
left(
qMax(0, m_qualifiedName.size() - m_name.size() - 1));
60 inline bool isDefault()
const {
return m_isDefault; }
63 && (namespaceUri().isNull() ? (qualifiedName() ==
other.qualifiedName())
64 : (namespaceUri() ==
other.namespaceUri() &&
name() ==
other.name())));
78#if QT_CORE_REMOVED_SINCE(6, 6)
93 return !
value(qualifiedName).isNull();
98 return !
value(namespaceUri,
name).isNull();
115 return (prefix() ==
other.prefix() && namespaceUri() ==
other.namespaceUri());
136 && publicId() ==
other.publicId());
159 && notationName() ==
other.notationName()
160 && systemId() ==
other.systemId()
161 && publicId() ==
other.publicId()
179#if QT_CONFIG(xmlstreamreader)
180class Q_CORE_EXPORT QXmlStreamReader
182 QDOC_PROPERTY(
bool namespaceProcessing READ namespaceProcessing WRITE setNamespaceProcessing)
195 ProcessingInstruction
201#if QT_CORE_REMOVED_SINCE(6, 5)
204 explicit QXmlStreamReader(
const char *
data);
208 : QXmlStreamReader(
data, PrivateConstructorTag{}) { }
214#if QT_CORE_REMOVED_SINCE(6, 5)
217 void addData(
const char *
data);
228 bool readNextStartElement();
229 void skipCurrentElement();
234 void setNamespaceProcessing(
bool);
235 bool namespaceProcessing()
const;
237 inline bool isStartDocument()
const {
return tokenType() == StartDocument; }
238 inline bool isEndDocument()
const {
return tokenType() == EndDocument; }
239 inline bool isStartElement()
const {
return tokenType() == StartElement; }
240 inline bool isEndElement()
const {
return tokenType() == EndElement; }
241 inline bool isCharacters()
const {
return tokenType() == Characters; }
243 bool isCDATA()
const;
244 inline bool isComment()
const {
return tokenType() ==
Comment; }
245 inline bool isDTD()
const {
return tokenType() == DTD; }
246 inline bool isEntityReference()
const {
return tokenType() == EntityReference; }
247 inline bool isProcessingInstruction()
const {
return tokenType() == ProcessingInstruction; }
249 bool isStandaloneDocument()
const;
250 bool hasStandaloneDeclaration()
const;
254 qint64 lineNumber()
const;
255 qint64 columnNumber()
const;
256 qint64 characterOffset()
const;
260 enum ReadElementTextBehaviour {
261 ErrorOnUnexpectedElement,
262 IncludeChildElements,
265 QString readElementText(ReadElementTextBehaviour behaviour = ErrorOnUnexpectedElement);
286 int entityExpansionLimit()
const;
287 void setEntityExpansionLimit(
int limit);
291 UnexpectedElementError,
294 PrematureEndOfDocumentError
300 inline bool hasError()
const
309 struct PrivateConstructorTag { };
313 Q_DISABLE_COPY(QXmlStreamReader)
314 Q_DECLARE_PRIVATE(QXmlStreamReader)
320#if QT_CONFIG(xmlstreamwriter)
322class QXmlStreamWriterPrivate;
324class Q_CORE_EXPORT QXmlStreamWriter
326 QDOC_PROPERTY(
bool autoFormatting READ autoFormatting WRITE setAutoFormatting)
327 QDOC_PROPERTY(
int autoFormattingIndent READ autoFormattingIndent WRITE setAutoFormattingIndent)
332 explicit QXmlStreamWriter(
QString *
string);
338 void setAutoFormatting(
bool);
339 bool autoFormatting()
const;
341 void setAutoFormattingIndent(
int spacesOrTabs);
342 int autoFormattingIndent()
const;
344#if QT_CORE_REMOVED_SINCE(6,5)
354#if QT_CORE_REMOVED_SINCE(6,5)
359 void writeDTD(
const QString &dtd);
361 void writeEmptyElement(
const QString &qualifiedName);
380 void writeEndDocument();
383#if QT_CORE_REMOVED_SINCE(6,5)
385 void writeNamespace(
const QString &namespaceUri,
const QString &prefix);
386 void writeDefaultNamespace(
const QString &namespaceUri);
394 void writeStartDocument();
395#if QT_CORE_REMOVED_SINCE(6,5)
396 void writeStartDocument(
const QString &version);
397 void writeStartDocument(
const QString &version,
bool standalone);
406#if QT_CONFIG(xmlstreamreader)
407 void writeCurrentToken(
const QXmlStreamReader &reader);
410 bool hasError()
const;
413 Q_DISABLE_COPY(QXmlStreamWriter)
414 Q_DECLARE_PRIVATE(QXmlStreamWriter)
IOBluetoothDevice * device
\inmodule QtCore \reentrant
constexpr QStringView left(qsizetype n) const noexcept
\macro QT_RESTRICTED_CAST_FROM_ASCII
QXmlStreamAttribute(const QString &qualifiedName, const QString &value)
QStringView value() const
bool operator!=(const QXmlStreamAttribute &other) const
QStringView prefix() const
QStringView qualifiedName() const
QStringView namespaceUri() const
bool operator==(const QXmlStreamAttribute &other) const
QXmlStreamAttribute(const QString &namespaceUri, const QString &name, const QString &value)
Q_CORE_EXPORT void append(const QString &namespaceUri, const QString &name, const QString &value)
Q_CORE_EXPORT void append(const QString &qualifiedName, const QString &value)
Q_CORE_EXPORT QStringView value(QAnyStringView qualifiedName) const noexcept
bool hasAttribute(QAnyStringView qualifiedName) const
Q_CORE_EXPORT QStringView value(QAnyStringView namespaceUri, QAnyStringView name) const noexcept
bool hasAttribute(QAnyStringView namespaceUri, QAnyStringView name) const
QStringView publicId() const
bool operator==(const QXmlStreamEntityDeclaration &other) const
QXmlStreamEntityDeclaration()
bool operator!=(const QXmlStreamEntityDeclaration &other) const
QStringView value() const
QStringView notationName() const
QStringView systemId() const
virtual QString resolveEntity(const QString &publicId, const QString &systemId)
virtual QString resolveUndeclaredEntity(const QString &name)
virtual ~QXmlStreamEntityResolver()
QXmlStreamNamespaceDeclaration(const QString &prefix, const QString &namespaceUri)
bool operator==(const QXmlStreamNamespaceDeclaration &other) const
bool operator!=(const QXmlStreamNamespaceDeclaration &other) const
QStringView namespaceUri() const
QXmlStreamNamespaceDeclaration()
QStringView prefix() const
bool operator!=(const QXmlStreamNotationDeclaration &other) const
QXmlStreamNotationDeclaration()
QStringView systemId() const
QStringView publicId() const
bool operator==(const QXmlStreamNotationDeclaration &other) const
void swap(QXmlString &other) noexcept
QXmlString(QStringPrivate &&d)
QXmlString(const QString &s)
QXmlString & operator=(const QString &s)
QXmlString & operator=(QString &&s)
Combined button and popup list for selecting options.
static void writeAttribute(QXmlStreamWriter *stream, const QVariant &attribute)
DBusConnection const char DBusError * error
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
EGLOutputLayerEXT EGLint attribute
constexpr const T & qMax(const T &a, const T &b)
static bool isWhitespace(char c)
GLuint GLsizei const GLchar * message
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
const void * data_ptr(const QTransform &t)
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
#define QT_REQUIRE_CONFIG(feature)
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
QList< QXmlStreamNotationDeclaration > QXmlStreamNotationDeclarations
QList< QXmlStreamEntityDeclaration > QXmlStreamEntityDeclarations
QList< QXmlStreamNamespaceDeclaration > QXmlStreamNamespaceDeclarations
writeStartElement(qualifiedName)
[0]
void swap(QArrayDataPointer &other) noexcept