miqt/qt/gen_qxmlstream.cpp

649 lines
24 KiB
C++

#include <QByteArray>
#include <QIODevice>
#include <QList>
#include <QString>
#include <QByteArray>
#include <cstring>
#include <QTextCodec>
#include <QXmlStreamAttribute>
#include <QXmlStreamEntityDeclaration>
#include <QXmlStreamEntityResolver>
#include <QXmlStreamNamespaceDeclaration>
#include <QXmlStreamNotationDeclaration>
#include <QXmlStreamReader>
#include <QXmlStreamStringRef>
#include <QXmlStreamWriter>
#include "qxmlstream.h"
#include "gen_qxmlstream.h"
#include "_cgo_export.h"
QXmlStreamStringRef* QXmlStreamStringRef_new() {
return new QXmlStreamStringRef();
}
QXmlStreamStringRef* QXmlStreamStringRef_new2(struct miqt_string* aString) {
QString aString_QString = QString::fromUtf8(&aString->data, aString->len);
return new QXmlStreamStringRef(aString_QString);
}
QXmlStreamStringRef* QXmlStreamStringRef_new3(QXmlStreamStringRef* other) {
return new QXmlStreamStringRef(*other);
}
void QXmlStreamStringRef_OperatorAssign(QXmlStreamStringRef* self, QXmlStreamStringRef* other) {
self->operator=(*other);
}
void QXmlStreamStringRef_Swap(QXmlStreamStringRef* self, QXmlStreamStringRef* other) {
self->swap(*other);
}
void QXmlStreamStringRef_Clear(QXmlStreamStringRef* self) {
self->clear();
}
struct miqt_string* QXmlStreamStringRef_String(const QXmlStreamStringRef* self) {
const QString* _ret = self->string();
// Convert QString pointer from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret->toUtf8();
return miqt_strdup(_b.data(), _b.length());
}
int QXmlStreamStringRef_Position(const QXmlStreamStringRef* self) {
return self->position();
}
int QXmlStreamStringRef_Size(const QXmlStreamStringRef* self) {
return self->size();
}
void QXmlStreamStringRef_Delete(QXmlStreamStringRef* self) {
delete self;
}
QXmlStreamAttribute* QXmlStreamAttribute_new() {
return new QXmlStreamAttribute();
}
QXmlStreamAttribute* QXmlStreamAttribute_new2(struct miqt_string* qualifiedName, struct miqt_string* value) {
QString qualifiedName_QString = QString::fromUtf8(&qualifiedName->data, qualifiedName->len);
QString value_QString = QString::fromUtf8(&value->data, value->len);
return new QXmlStreamAttribute(qualifiedName_QString, value_QString);
}
QXmlStreamAttribute* QXmlStreamAttribute_new3(struct miqt_string* namespaceUri, struct miqt_string* name, struct miqt_string* value) {
QString namespaceUri_QString = QString::fromUtf8(&namespaceUri->data, namespaceUri->len);
QString name_QString = QString::fromUtf8(&name->data, name->len);
QString value_QString = QString::fromUtf8(&value->data, value->len);
return new QXmlStreamAttribute(namespaceUri_QString, name_QString, value_QString);
}
QXmlStreamAttribute* QXmlStreamAttribute_new4(QXmlStreamAttribute* param1) {
return new QXmlStreamAttribute(*param1);
}
void QXmlStreamAttribute_OperatorAssign(QXmlStreamAttribute* self, QXmlStreamAttribute* param1) {
self->operator=(*param1);
}
bool QXmlStreamAttribute_IsDefault(const QXmlStreamAttribute* self) {
return self->isDefault();
}
bool QXmlStreamAttribute_OperatorEqual(const QXmlStreamAttribute* self, QXmlStreamAttribute* other) {
return self->operator==(*other);
}
bool QXmlStreamAttribute_OperatorNotEqual(const QXmlStreamAttribute* self, QXmlStreamAttribute* other) {
return self->operator!=(*other);
}
void QXmlStreamAttribute_Delete(QXmlStreamAttribute* self) {
delete self;
}
QXmlStreamNamespaceDeclaration* QXmlStreamNamespaceDeclaration_new() {
return new QXmlStreamNamespaceDeclaration();
}
QXmlStreamNamespaceDeclaration* QXmlStreamNamespaceDeclaration_new2(struct miqt_string* prefix, struct miqt_string* namespaceUri) {
QString prefix_QString = QString::fromUtf8(&prefix->data, prefix->len);
QString namespaceUri_QString = QString::fromUtf8(&namespaceUri->data, namespaceUri->len);
return new QXmlStreamNamespaceDeclaration(prefix_QString, namespaceUri_QString);
}
QXmlStreamNamespaceDeclaration* QXmlStreamNamespaceDeclaration_new3(QXmlStreamNamespaceDeclaration* param1) {
return new QXmlStreamNamespaceDeclaration(*param1);
}
void QXmlStreamNamespaceDeclaration_OperatorAssign(QXmlStreamNamespaceDeclaration* self, QXmlStreamNamespaceDeclaration* param1) {
self->operator=(*param1);
}
bool QXmlStreamNamespaceDeclaration_OperatorEqual(const QXmlStreamNamespaceDeclaration* self, QXmlStreamNamespaceDeclaration* other) {
return self->operator==(*other);
}
bool QXmlStreamNamespaceDeclaration_OperatorNotEqual(const QXmlStreamNamespaceDeclaration* self, QXmlStreamNamespaceDeclaration* other) {
return self->operator!=(*other);
}
void QXmlStreamNamespaceDeclaration_Delete(QXmlStreamNamespaceDeclaration* self) {
delete self;
}
QXmlStreamNotationDeclaration* QXmlStreamNotationDeclaration_new() {
return new QXmlStreamNotationDeclaration();
}
QXmlStreamNotationDeclaration* QXmlStreamNotationDeclaration_new2(QXmlStreamNotationDeclaration* param1) {
return new QXmlStreamNotationDeclaration(*param1);
}
void QXmlStreamNotationDeclaration_OperatorAssign(QXmlStreamNotationDeclaration* self, QXmlStreamNotationDeclaration* param1) {
self->operator=(*param1);
}
bool QXmlStreamNotationDeclaration_OperatorEqual(const QXmlStreamNotationDeclaration* self, QXmlStreamNotationDeclaration* other) {
return self->operator==(*other);
}
bool QXmlStreamNotationDeclaration_OperatorNotEqual(const QXmlStreamNotationDeclaration* self, QXmlStreamNotationDeclaration* other) {
return self->operator!=(*other);
}
void QXmlStreamNotationDeclaration_Delete(QXmlStreamNotationDeclaration* self) {
delete self;
}
QXmlStreamEntityDeclaration* QXmlStreamEntityDeclaration_new() {
return new QXmlStreamEntityDeclaration();
}
QXmlStreamEntityDeclaration* QXmlStreamEntityDeclaration_new2(QXmlStreamEntityDeclaration* param1) {
return new QXmlStreamEntityDeclaration(*param1);
}
void QXmlStreamEntityDeclaration_OperatorAssign(QXmlStreamEntityDeclaration* self, QXmlStreamEntityDeclaration* param1) {
self->operator=(*param1);
}
bool QXmlStreamEntityDeclaration_OperatorEqual(const QXmlStreamEntityDeclaration* self, QXmlStreamEntityDeclaration* other) {
return self->operator==(*other);
}
bool QXmlStreamEntityDeclaration_OperatorNotEqual(const QXmlStreamEntityDeclaration* self, QXmlStreamEntityDeclaration* other) {
return self->operator!=(*other);
}
void QXmlStreamEntityDeclaration_Delete(QXmlStreamEntityDeclaration* self) {
delete self;
}
struct miqt_string* QXmlStreamEntityResolver_ResolveEntity(QXmlStreamEntityResolver* self, struct miqt_string* publicId, struct miqt_string* systemId) {
QString publicId_QString = QString::fromUtf8(&publicId->data, publicId->len);
QString systemId_QString = QString::fromUtf8(&systemId->data, systemId->len);
QString _ret = self->resolveEntity(publicId_QString, systemId_QString);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}
struct miqt_string* QXmlStreamEntityResolver_ResolveUndeclaredEntity(QXmlStreamEntityResolver* self, struct miqt_string* name) {
QString name_QString = QString::fromUtf8(&name->data, name->len);
QString _ret = self->resolveUndeclaredEntity(name_QString);
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}
void QXmlStreamEntityResolver_OperatorAssign(QXmlStreamEntityResolver* self, QXmlStreamEntityResolver* param1) {
self->operator=(*param1);
}
void QXmlStreamEntityResolver_Delete(QXmlStreamEntityResolver* self) {
delete self;
}
QXmlStreamReader* QXmlStreamReader_new() {
return new QXmlStreamReader();
}
QXmlStreamReader* QXmlStreamReader_new2(QIODevice* device) {
return new QXmlStreamReader(device);
}
QXmlStreamReader* QXmlStreamReader_new3(QByteArray* data) {
return new QXmlStreamReader(*data);
}
QXmlStreamReader* QXmlStreamReader_new4(struct miqt_string* data) {
QString data_QString = QString::fromUtf8(&data->data, data->len);
return new QXmlStreamReader(data_QString);
}
QXmlStreamReader* QXmlStreamReader_new5(const char* data) {
return new QXmlStreamReader(data);
}
void QXmlStreamReader_SetDevice(QXmlStreamReader* self, QIODevice* device) {
self->setDevice(device);
}
QIODevice* QXmlStreamReader_Device(const QXmlStreamReader* self) {
return self->device();
}
void QXmlStreamReader_AddData(QXmlStreamReader* self, QByteArray* data) {
self->addData(*data);
}
void QXmlStreamReader_AddDataWithData(QXmlStreamReader* self, struct miqt_string* data) {
QString data_QString = QString::fromUtf8(&data->data, data->len);
self->addData(data_QString);
}
void QXmlStreamReader_AddData2(QXmlStreamReader* self, const char* data) {
self->addData(data);
}
void QXmlStreamReader_Clear(QXmlStreamReader* self) {
self->clear();
}
bool QXmlStreamReader_AtEnd(const QXmlStreamReader* self) {
return self->atEnd();
}
uintptr_t QXmlStreamReader_ReadNext(QXmlStreamReader* self) {
QXmlStreamReader::TokenType _ret = self->readNext();
return static_cast<uintptr_t>(_ret);
}
bool QXmlStreamReader_ReadNextStartElement(QXmlStreamReader* self) {
return self->readNextStartElement();
}
void QXmlStreamReader_SkipCurrentElement(QXmlStreamReader* self) {
self->skipCurrentElement();
}
uintptr_t QXmlStreamReader_TokenType(const QXmlStreamReader* self) {
QXmlStreamReader::TokenType _ret = self->tokenType();
return static_cast<uintptr_t>(_ret);
}
struct miqt_string* QXmlStreamReader_TokenString(const QXmlStreamReader* self) {
QString _ret = self->tokenString();
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}
void QXmlStreamReader_SetNamespaceProcessing(QXmlStreamReader* self, bool namespaceProcessing) {
self->setNamespaceProcessing(namespaceProcessing);
}
bool QXmlStreamReader_NamespaceProcessing(const QXmlStreamReader* self) {
return self->namespaceProcessing();
}
bool QXmlStreamReader_IsStartDocument(const QXmlStreamReader* self) {
return self->isStartDocument();
}
bool QXmlStreamReader_IsEndDocument(const QXmlStreamReader* self) {
return self->isEndDocument();
}
bool QXmlStreamReader_IsStartElement(const QXmlStreamReader* self) {
return self->isStartElement();
}
bool QXmlStreamReader_IsEndElement(const QXmlStreamReader* self) {
return self->isEndElement();
}
bool QXmlStreamReader_IsCharacters(const QXmlStreamReader* self) {
return self->isCharacters();
}
bool QXmlStreamReader_IsWhitespace(const QXmlStreamReader* self) {
return self->isWhitespace();
}
bool QXmlStreamReader_IsCDATA(const QXmlStreamReader* self) {
return self->isCDATA();
}
bool QXmlStreamReader_IsComment(const QXmlStreamReader* self) {
return self->isComment();
}
bool QXmlStreamReader_IsDTD(const QXmlStreamReader* self) {
return self->isDTD();
}
bool QXmlStreamReader_IsEntityReference(const QXmlStreamReader* self) {
return self->isEntityReference();
}
bool QXmlStreamReader_IsProcessingInstruction(const QXmlStreamReader* self) {
return self->isProcessingInstruction();
}
bool QXmlStreamReader_IsStandaloneDocument(const QXmlStreamReader* self) {
return self->isStandaloneDocument();
}
long long QXmlStreamReader_LineNumber(const QXmlStreamReader* self) {
return self->lineNumber();
}
long long QXmlStreamReader_ColumnNumber(const QXmlStreamReader* self) {
return self->columnNumber();
}
long long QXmlStreamReader_CharacterOffset(const QXmlStreamReader* self) {
return self->characterOffset();
}
struct miqt_string* QXmlStreamReader_ReadElementText(QXmlStreamReader* self) {
QString _ret = self->readElementText();
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}
struct miqt_array* QXmlStreamReader_NamespaceDeclarations(const QXmlStreamReader* self) {
QXmlStreamNamespaceDeclarations _ret = self->namespaceDeclarations();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QXmlStreamNamespaceDeclaration** _arr = static_cast<QXmlStreamNamespaceDeclaration**>(malloc(sizeof(QXmlStreamNamespaceDeclaration**) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QXmlStreamNamespaceDeclaration(_ret[i]);
}
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
_out->len = _ret.length();
_out->data = static_cast<void*>(_arr);
return _out;
}
void QXmlStreamReader_AddExtraNamespaceDeclaration(QXmlStreamReader* self, QXmlStreamNamespaceDeclaration* extraNamespaceDeclaraction) {
self->addExtraNamespaceDeclaration(*extraNamespaceDeclaraction);
}
void QXmlStreamReader_AddExtraNamespaceDeclarations(QXmlStreamReader* self, struct miqt_array* /* of QXmlStreamNamespaceDeclaration */ extraNamespaceDeclaractions) {
QVector<QXmlStreamNamespaceDeclaration> extraNamespaceDeclaractions_QList;
extraNamespaceDeclaractions_QList.reserve(extraNamespaceDeclaractions->len);
QXmlStreamNamespaceDeclaration** extraNamespaceDeclaractions_arr = static_cast<QXmlStreamNamespaceDeclaration**>(extraNamespaceDeclaractions->data);
for(size_t i = 0; i < extraNamespaceDeclaractions->len; ++i) {
extraNamespaceDeclaractions_QList.push_back(*(extraNamespaceDeclaractions_arr[i]));
}
self->addExtraNamespaceDeclarations(extraNamespaceDeclaractions_QList);
}
struct miqt_array* QXmlStreamReader_NotationDeclarations(const QXmlStreamReader* self) {
QXmlStreamNotationDeclarations _ret = self->notationDeclarations();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QXmlStreamNotationDeclaration** _arr = static_cast<QXmlStreamNotationDeclaration**>(malloc(sizeof(QXmlStreamNotationDeclaration**) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QXmlStreamNotationDeclaration(_ret[i]);
}
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
_out->len = _ret.length();
_out->data = static_cast<void*>(_arr);
return _out;
}
struct miqt_array* QXmlStreamReader_EntityDeclarations(const QXmlStreamReader* self) {
QXmlStreamEntityDeclarations _ret = self->entityDeclarations();
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
QXmlStreamEntityDeclaration** _arr = static_cast<QXmlStreamEntityDeclaration**>(malloc(sizeof(QXmlStreamEntityDeclaration**) * _ret.length()));
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
_arr[i] = new QXmlStreamEntityDeclaration(_ret[i]);
}
struct miqt_array* _out = static_cast<struct miqt_array*>(malloc(sizeof(struct miqt_array)));
_out->len = _ret.length();
_out->data = static_cast<void*>(_arr);
return _out;
}
int QXmlStreamReader_EntityExpansionLimit(const QXmlStreamReader* self) {
return self->entityExpansionLimit();
}
void QXmlStreamReader_SetEntityExpansionLimit(QXmlStreamReader* self, int limit) {
self->setEntityExpansionLimit(static_cast<int>(limit));
}
void QXmlStreamReader_RaiseError(QXmlStreamReader* self) {
self->raiseError();
}
struct miqt_string* QXmlStreamReader_ErrorString(const QXmlStreamReader* self) {
QString _ret = self->errorString();
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}
uintptr_t QXmlStreamReader_Error(const QXmlStreamReader* self) {
QXmlStreamReader::Error _ret = self->error();
return static_cast<uintptr_t>(_ret);
}
bool QXmlStreamReader_HasError(const QXmlStreamReader* self) {
return self->hasError();
}
void QXmlStreamReader_SetEntityResolver(QXmlStreamReader* self, QXmlStreamEntityResolver* resolver) {
self->setEntityResolver(resolver);
}
QXmlStreamEntityResolver* QXmlStreamReader_EntityResolver(const QXmlStreamReader* self) {
return self->entityResolver();
}
struct miqt_string* QXmlStreamReader_ReadElementText1(QXmlStreamReader* self, uintptr_t behaviour) {
QString _ret = self->readElementText(static_cast<QXmlStreamReader::ReadElementTextBehaviour>(behaviour));
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret.toUtf8();
return miqt_strdup(_b.data(), _b.length());
}
void QXmlStreamReader_RaiseError1(QXmlStreamReader* self, struct miqt_string* message) {
QString message_QString = QString::fromUtf8(&message->data, message->len);
self->raiseError(message_QString);
}
void QXmlStreamReader_Delete(QXmlStreamReader* self) {
delete self;
}
QXmlStreamWriter* QXmlStreamWriter_new() {
return new QXmlStreamWriter();
}
QXmlStreamWriter* QXmlStreamWriter_new2(QIODevice* device) {
return new QXmlStreamWriter(device);
}
QXmlStreamWriter* QXmlStreamWriter_new3(QByteArray* array) {
return new QXmlStreamWriter(array);
}
void QXmlStreamWriter_SetDevice(QXmlStreamWriter* self, QIODevice* device) {
self->setDevice(device);
}
QIODevice* QXmlStreamWriter_Device(const QXmlStreamWriter* self) {
return self->device();
}
void QXmlStreamWriter_SetCodec(QXmlStreamWriter* self, QTextCodec* codec) {
self->setCodec(codec);
}
void QXmlStreamWriter_SetCodecWithCodecName(QXmlStreamWriter* self, const char* codecName) {
self->setCodec(codecName);
}
QTextCodec* QXmlStreamWriter_Codec(const QXmlStreamWriter* self) {
return self->codec();
}
void QXmlStreamWriter_SetAutoFormatting(QXmlStreamWriter* self, bool autoFormatting) {
self->setAutoFormatting(autoFormatting);
}
bool QXmlStreamWriter_AutoFormatting(const QXmlStreamWriter* self) {
return self->autoFormatting();
}
void QXmlStreamWriter_SetAutoFormattingIndent(QXmlStreamWriter* self, int spacesOrTabs) {
self->setAutoFormattingIndent(static_cast<int>(spacesOrTabs));
}
int QXmlStreamWriter_AutoFormattingIndent(const QXmlStreamWriter* self) {
return self->autoFormattingIndent();
}
void QXmlStreamWriter_WriteAttribute(QXmlStreamWriter* self, struct miqt_string* qualifiedName, struct miqt_string* value) {
QString qualifiedName_QString = QString::fromUtf8(&qualifiedName->data, qualifiedName->len);
QString value_QString = QString::fromUtf8(&value->data, value->len);
self->writeAttribute(qualifiedName_QString, value_QString);
}
void QXmlStreamWriter_WriteAttribute2(QXmlStreamWriter* self, struct miqt_string* namespaceUri, struct miqt_string* name, struct miqt_string* value) {
QString namespaceUri_QString = QString::fromUtf8(&namespaceUri->data, namespaceUri->len);
QString name_QString = QString::fromUtf8(&name->data, name->len);
QString value_QString = QString::fromUtf8(&value->data, value->len);
self->writeAttribute(namespaceUri_QString, name_QString, value_QString);
}
void QXmlStreamWriter_WriteAttributeWithAttribute(QXmlStreamWriter* self, QXmlStreamAttribute* attribute) {
self->writeAttribute(*attribute);
}
void QXmlStreamWriter_WriteCDATA(QXmlStreamWriter* self, struct miqt_string* text) {
QString text_QString = QString::fromUtf8(&text->data, text->len);
self->writeCDATA(text_QString);
}
void QXmlStreamWriter_WriteCharacters(QXmlStreamWriter* self, struct miqt_string* text) {
QString text_QString = QString::fromUtf8(&text->data, text->len);
self->writeCharacters(text_QString);
}
void QXmlStreamWriter_WriteComment(QXmlStreamWriter* self, struct miqt_string* text) {
QString text_QString = QString::fromUtf8(&text->data, text->len);
self->writeComment(text_QString);
}
void QXmlStreamWriter_WriteDTD(QXmlStreamWriter* self, struct miqt_string* dtd) {
QString dtd_QString = QString::fromUtf8(&dtd->data, dtd->len);
self->writeDTD(dtd_QString);
}
void QXmlStreamWriter_WriteEmptyElement(QXmlStreamWriter* self, struct miqt_string* qualifiedName) {
QString qualifiedName_QString = QString::fromUtf8(&qualifiedName->data, qualifiedName->len);
self->writeEmptyElement(qualifiedName_QString);
}
void QXmlStreamWriter_WriteEmptyElement2(QXmlStreamWriter* self, struct miqt_string* namespaceUri, struct miqt_string* name) {
QString namespaceUri_QString = QString::fromUtf8(&namespaceUri->data, namespaceUri->len);
QString name_QString = QString::fromUtf8(&name->data, name->len);
self->writeEmptyElement(namespaceUri_QString, name_QString);
}
void QXmlStreamWriter_WriteTextElement(QXmlStreamWriter* self, struct miqt_string* qualifiedName, struct miqt_string* text) {
QString qualifiedName_QString = QString::fromUtf8(&qualifiedName->data, qualifiedName->len);
QString text_QString = QString::fromUtf8(&text->data, text->len);
self->writeTextElement(qualifiedName_QString, text_QString);
}
void QXmlStreamWriter_WriteTextElement2(QXmlStreamWriter* self, struct miqt_string* namespaceUri, struct miqt_string* name, struct miqt_string* text) {
QString namespaceUri_QString = QString::fromUtf8(&namespaceUri->data, namespaceUri->len);
QString name_QString = QString::fromUtf8(&name->data, name->len);
QString text_QString = QString::fromUtf8(&text->data, text->len);
self->writeTextElement(namespaceUri_QString, name_QString, text_QString);
}
void QXmlStreamWriter_WriteEndDocument(QXmlStreamWriter* self) {
self->writeEndDocument();
}
void QXmlStreamWriter_WriteEndElement(QXmlStreamWriter* self) {
self->writeEndElement();
}
void QXmlStreamWriter_WriteEntityReference(QXmlStreamWriter* self, struct miqt_string* name) {
QString name_QString = QString::fromUtf8(&name->data, name->len);
self->writeEntityReference(name_QString);
}
void QXmlStreamWriter_WriteNamespace(QXmlStreamWriter* self, struct miqt_string* namespaceUri) {
QString namespaceUri_QString = QString::fromUtf8(&namespaceUri->data, namespaceUri->len);
self->writeNamespace(namespaceUri_QString);
}
void QXmlStreamWriter_WriteDefaultNamespace(QXmlStreamWriter* self, struct miqt_string* namespaceUri) {
QString namespaceUri_QString = QString::fromUtf8(&namespaceUri->data, namespaceUri->len);
self->writeDefaultNamespace(namespaceUri_QString);
}
void QXmlStreamWriter_WriteProcessingInstruction(QXmlStreamWriter* self, struct miqt_string* target) {
QString target_QString = QString::fromUtf8(&target->data, target->len);
self->writeProcessingInstruction(target_QString);
}
void QXmlStreamWriter_WriteStartDocument(QXmlStreamWriter* self) {
self->writeStartDocument();
}
void QXmlStreamWriter_WriteStartDocumentWithVersion(QXmlStreamWriter* self, struct miqt_string* version) {
QString version_QString = QString::fromUtf8(&version->data, version->len);
self->writeStartDocument(version_QString);
}
void QXmlStreamWriter_WriteStartDocument2(QXmlStreamWriter* self, struct miqt_string* version, bool standalone) {
QString version_QString = QString::fromUtf8(&version->data, version->len);
self->writeStartDocument(version_QString, standalone);
}
void QXmlStreamWriter_WriteStartElement(QXmlStreamWriter* self, struct miqt_string* qualifiedName) {
QString qualifiedName_QString = QString::fromUtf8(&qualifiedName->data, qualifiedName->len);
self->writeStartElement(qualifiedName_QString);
}
void QXmlStreamWriter_WriteStartElement2(QXmlStreamWriter* self, struct miqt_string* namespaceUri, struct miqt_string* name) {
QString namespaceUri_QString = QString::fromUtf8(&namespaceUri->data, namespaceUri->len);
QString name_QString = QString::fromUtf8(&name->data, name->len);
self->writeStartElement(namespaceUri_QString, name_QString);
}
void QXmlStreamWriter_WriteCurrentToken(QXmlStreamWriter* self, QXmlStreamReader* reader) {
self->writeCurrentToken(*reader);
}
bool QXmlStreamWriter_HasError(const QXmlStreamWriter* self) {
return self->hasError();
}
void QXmlStreamWriter_WriteNamespace2(QXmlStreamWriter* self, struct miqt_string* namespaceUri, struct miqt_string* prefix) {
QString namespaceUri_QString = QString::fromUtf8(&namespaceUri->data, namespaceUri->len);
QString prefix_QString = QString::fromUtf8(&prefix->data, prefix->len);
self->writeNamespace(namespaceUri_QString, prefix_QString);
}
void QXmlStreamWriter_WriteProcessingInstruction2(QXmlStreamWriter* self, struct miqt_string* target, struct miqt_string* data) {
QString target_QString = QString::fromUtf8(&target->data, target->len);
QString data_QString = QString::fromUtf8(&data->data, data->len);
self->writeProcessingInstruction(target_QString, data_QString);
}
void QXmlStreamWriter_Delete(QXmlStreamWriter* self) {
delete self;
}