#include #include #include #include #include #include #include #include "gen_qstringconverter.h" #ifndef _Bool #define _Bool bool #endif #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)); } void QStringEncoder_virtbase(QStringEncoder* src, QStringConverter** outptr_QStringConverter) { *outptr_QStringConverter = static_cast(src); } 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, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { 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)); } void QStringDecoder_virtbase(QStringDecoder* src, QStringConverter** outptr_QStringConverter) { *outptr_QStringConverter = static_cast(src); } 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, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }