#include #include #include #include #include #include "gen_qstringconverter.h" #include "_cgo_export.h" QStringEncoder* QStringEncoder_new() { return new QStringEncoder(); } QStringEncoder* QStringEncoder_new2(int encoding) { return new QStringEncoder(static_cast(encoding)); } QStringEncoder* QStringEncoder_new3(const char* name) { return new QStringEncoder(name); } QStringEncoder* QStringEncoder_new4(int encoding, int flags) { return new QStringEncoder(static_cast(encoding), static_cast(flags)); } QStringEncoder* QStringEncoder_new5(const char* name, int flags) { return new QStringEncoder(name, static_cast(flags)); } ptrdiff_t QStringEncoder_RequiredSpace(const QStringEncoder* self, ptrdiff_t inputLength) { qsizetype _ret = self->requiredSpace((qsizetype)(inputLength)); return static_cast(_ret); } void QStringEncoder_Delete(QStringEncoder* self) { delete self; } QStringDecoder* QStringDecoder_new(int encoding) { return new QStringDecoder(static_cast(encoding)); } QStringDecoder* QStringDecoder_new2() { return new QStringDecoder(); } QStringDecoder* QStringDecoder_new3(const char* name) { return new QStringDecoder(name); } QStringDecoder* QStringDecoder_new4(int encoding, int flags) { return new QStringDecoder(static_cast(encoding), static_cast(flags)); } QStringDecoder* QStringDecoder_new5(const char* name, int f) { return new QStringDecoder(name, static_cast(f)); } ptrdiff_t QStringDecoder_RequiredSpace(const QStringDecoder* self, ptrdiff_t inputLength) { qsizetype _ret = self->requiredSpace((qsizetype)(inputLength)); return static_cast(_ret); } QChar* QStringDecoder_AppendToBuffer(QStringDecoder* self, QChar* out, QByteArrayView* ba) { return self->appendToBuffer(out, *ba); } QStringDecoder* QStringDecoder_DecoderForHtml(QByteArrayView* data) { return new QStringDecoder(QStringDecoder::decoderForHtml(*data)); } void QStringDecoder_Delete(QStringDecoder* self) { delete self; }