2024-08-25 04:08:24 +00:00
|
|
|
#include <QByteArray>
|
2024-08-29 07:01:51 +00:00
|
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QByteArray__FromBase64Result
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QByteArrayDataPtr>
|
|
|
|
#include <QByteRef>
|
|
|
|
#include <QList>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
|
|
|
#include "qbytearray.h"
|
|
|
|
#include "gen_qbytearray.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QByteArrayDataPtr* QByteArrayDataPtr_new() {
|
|
|
|
return new QByteArrayDataPtr();
|
|
|
|
}
|
|
|
|
|
|
|
|
QByteArrayDataPtr* QByteArrayDataPtr_new2(QByteArrayDataPtr* param1) {
|
|
|
|
return new QByteArrayDataPtr(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArrayDataPtr_Delete(QByteArrayDataPtr* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_new() {
|
|
|
|
return new QByteArray();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_new2(const char* param1) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QByteArray(param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_new3(int size, char c) {
|
|
|
|
return new QByteArray(static_cast<int>(size), static_cast<char>(c));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_new4(int size, uintptr_t param2) {
|
|
|
|
return new QByteArray(static_cast<int>(size), static_cast<Qt::Initialization>(param2));
|
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_new5(QByteArray* param1) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QByteArray(*param1);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_new6(QByteArrayDataPtr* dd) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QByteArray(*dd);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_new7(const char* param1, int size) {
|
2024-08-25 04:08:24 +00:00
|
|
|
return new QByteArray(param1, static_cast<int>(size));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_OperatorAssign(QByteArray* self, QByteArray* param1) {
|
|
|
|
self->operator=(*param1);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QByteArray_OperatorAssignWithStr(QByteArray* self, const char* str) {
|
2024-08-25 04:08:24 +00:00
|
|
|
self->operator=(str);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_Swap(QByteArray* self, QByteArray* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_Size(const QByteArray* self) {
|
|
|
|
return self->size();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_IsEmpty(const QByteArray* self) {
|
|
|
|
return self->isEmpty();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_Resize(QByteArray* self, int size) {
|
|
|
|
self->resize(static_cast<int>(size));
|
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Fill(QByteArray* self, char c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->fill(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_Capacity(const QByteArray* self) {
|
|
|
|
return self->capacity();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_Reserve(QByteArray* self, int size) {
|
|
|
|
self->reserve(static_cast<int>(size));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_Squeeze(QByteArray* self) {
|
|
|
|
self->squeeze();
|
|
|
|
}
|
|
|
|
|
|
|
|
char* QByteArray_Data(QByteArray* self) {
|
|
|
|
return self->data();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
const char* QByteArray_Data2(const QByteArray* self) {
|
|
|
|
return (const char*) self->data();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
const char* QByteArray_ConstData(const QByteArray* self) {
|
|
|
|
return (const char*) self->constData();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_Detach(QByteArray* self) {
|
|
|
|
self->detach();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_IsDetached(const QByteArray* self) {
|
|
|
|
return self->isDetached();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_IsSharedWith(const QByteArray* self, QByteArray* other) {
|
|
|
|
return self->isSharedWith(*other);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_Clear(QByteArray* self) {
|
|
|
|
self->clear();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
char QByteArray_At(const QByteArray* self, int i) {
|
|
|
|
return self->at(static_cast<int>(i));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
char QByteArray_OperatorSubscript(const QByteArray* self, int i) {
|
|
|
|
return self->operator[](static_cast<int>(i));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
char QByteArray_OperatorSubscriptWithUint(const QByteArray* self, unsigned int i) {
|
|
|
|
return self->operator[](static_cast<uint>(i));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteRef* QByteArray_OperatorSubscriptWithInt(QByteArray* self, int i) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteRef _ret = self->operator[](static_cast<int>(i));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteRef*>(new QByteRef(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteRef* QByteArray_OperatorSubscript2(QByteArray* self, unsigned int i) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteRef _ret = self->operator[](static_cast<uint>(i));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteRef*>(new QByteRef(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
char QByteArray_Front(const QByteArray* self) {
|
|
|
|
return self->front();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteRef* QByteArray_Front2(QByteArray* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteRef _ret = self->front();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteRef*>(new QByteRef(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
char QByteArray_Back(const QByteArray* self) {
|
|
|
|
return self->back();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteRef* QByteArray_Back2(QByteArray* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteRef _ret = self->back();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteRef*>(new QByteRef(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_IndexOf(const QByteArray* self, char c) {
|
|
|
|
return self->indexOf(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_IndexOfWithChar(const QByteArray* self, const char* c) {
|
|
|
|
return self->indexOf(c);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_IndexOfWithQByteArray(const QByteArray* self, QByteArray* a) {
|
|
|
|
return self->indexOf(*a);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_LastIndexOf(const QByteArray* self, char c) {
|
|
|
|
return self->lastIndexOf(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_LastIndexOfWithChar(const QByteArray* self, const char* c) {
|
|
|
|
return self->lastIndexOf(c);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_LastIndexOfWithQByteArray(const QByteArray* self, QByteArray* a) {
|
|
|
|
return self->lastIndexOf(*a);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_Contains(const QByteArray* self, char c) {
|
|
|
|
return self->contains(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_ContainsWithChar(const QByteArray* self, const char* a) {
|
|
|
|
return self->contains(a);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_ContainsWithQByteArray(const QByteArray* self, QByteArray* a) {
|
|
|
|
return self->contains(*a);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_Count(const QByteArray* self, char c) {
|
|
|
|
return self->count(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_CountWithChar(const QByteArray* self, const char* a) {
|
|
|
|
return self->count(a);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_CountWithQByteArray(const QByteArray* self, QByteArray* a) {
|
|
|
|
return self->count(*a);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_Compare(const QByteArray* self, const char* c) {
|
|
|
|
return self->compare(c);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_CompareWithQByteArray(const QByteArray* self, QByteArray* a) {
|
|
|
|
return self->compare(*a);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_Left(const QByteArray* self, int lenVal) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->left(static_cast<int>(lenVal));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_Right(const QByteArray* self, int lenVal) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->right(static_cast<int>(lenVal));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_Mid(const QByteArray* self, int index) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->mid(static_cast<int>(index));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_Chopped(const QByteArray* self, int lenVal) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->chopped(static_cast<int>(lenVal));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_StartsWith(const QByteArray* self, QByteArray* a) {
|
|
|
|
return self->startsWith(*a);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_StartsWithWithChar(const QByteArray* self, char c) {
|
|
|
|
return self->startsWith(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_StartsWith2(const QByteArray* self, const char* c) {
|
|
|
|
return self->startsWith(c);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_EndsWith(const QByteArray* self, QByteArray* a) {
|
|
|
|
return self->endsWith(*a);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_EndsWithWithChar(const QByteArray* self, char c) {
|
|
|
|
return self->endsWith(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_EndsWith2(const QByteArray* self, const char* c) {
|
|
|
|
return self->endsWith(c);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_IsUpper(const QByteArray* self) {
|
|
|
|
return self->isUpper();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_IsLower(const QByteArray* self) {
|
|
|
|
return self->isLower();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_Truncate(QByteArray* self, int pos) {
|
|
|
|
self->truncate(static_cast<int>(pos));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_Chop(QByteArray* self, int n) {
|
|
|
|
self->chop(static_cast<int>(n));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_ToLower(const QByteArray* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->toLower();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_ToUpper(const QByteArray* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->toUpper();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_Trimmed(const QByteArray* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->trimmed();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_Simplified(const QByteArray* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->simplified();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_LeftJustified(const QByteArray* self, int width) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->leftJustified(static_cast<int>(width));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_RightJustified(const QByteArray* self, int width) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->rightJustified(static_cast<int>(width));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Prepend(QByteArray* self, char c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->prepend(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Prepend2(QByteArray* self, int count, char c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->prepend(static_cast<int>(count), static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_PrependWithChar(QByteArray* self, const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->prepend(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_Prepend3(QByteArray* self, const char* s, int lenVal) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->prepend(s, static_cast<int>(lenVal));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_PrependWithQByteArray(QByteArray* self, QByteArray* a) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->prepend(*a);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Append(QByteArray* self, char c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->append(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Append2(QByteArray* self, int count, char c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->append(static_cast<int>(count), static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_AppendWithChar(QByteArray* self, const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->append(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_Append3(QByteArray* self, const char* s, int lenVal) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->append(s, static_cast<int>(lenVal));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_AppendWithQByteArray(QByteArray* self, QByteArray* a) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->append(*a);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Insert(QByteArray* self, int i, char c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->insert(static_cast<int>(i), static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Insert2(QByteArray* self, int i, int count, char c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->insert(static_cast<int>(i), static_cast<int>(count), static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_Insert3(QByteArray* self, int i, const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->insert(static_cast<int>(i), s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_Insert4(QByteArray* self, int i, const char* s, int lenVal) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->insert(static_cast<int>(i), s, static_cast<int>(lenVal));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Insert5(QByteArray* self, int i, QByteArray* a) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->insert(static_cast<int>(i), *a);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Remove(QByteArray* self, int index, int lenVal) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->remove(static_cast<int>(index), static_cast<int>(lenVal));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_Replace(QByteArray* self, int index, int lenVal, const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->replace(static_cast<int>(index), static_cast<int>(lenVal), s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_Replace2(QByteArray* self, int index, int lenVal, const char* s, int alen) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->replace(static_cast<int>(index), static_cast<int>(lenVal), s, static_cast<int>(alen));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Replace3(QByteArray* self, int index, int lenVal, QByteArray* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->replace(static_cast<int>(index), static_cast<int>(lenVal), *s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_Replace4(QByteArray* self, char before, const char* after) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->replace(static_cast<char>(before), after);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Replace5(QByteArray* self, char before, QByteArray* after) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->replace(static_cast<char>(before), *after);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_Replace6(QByteArray* self, const char* before, const char* after) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->replace(before, after);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_Replace7(QByteArray* self, const char* before, int bsize, const char* after, int asize) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->replace(before, static_cast<int>(bsize), after, static_cast<int>(asize));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Replace8(QByteArray* self, QByteArray* before, QByteArray* after) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->replace(*before, *after);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_Replace9(QByteArray* self, QByteArray* before, const char* after) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->replace(*before, after);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_Replace10(QByteArray* self, const char* before, QByteArray* after) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->replace(before, *after);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Replace11(QByteArray* self, char before, char after) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->replace(static_cast<char>(before), static_cast<char>(after));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_OperatorPlusAssign(QByteArray* self, char c) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->operator+=(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_OperatorPlusAssignWithChar(QByteArray* self, const char* s) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->operator+=(s);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_OperatorPlusAssignWithQByteArray(QByteArray* self, QByteArray* a) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->operator+=(*a);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QByteArray_Split(const QByteArray* self, char sep) {
|
|
|
|
QList<QByteArray> _ret = self->split(static_cast<char>(sep));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QList<> from C++ memory to manually-managed C memory of copy-constructed pointers
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray** _arr = static_cast<QByteArray**>(malloc(sizeof(QByteArray**) * _ret.length()));
|
|
|
|
for (size_t i = 0, e = _ret.length(); i < e; ++i) {
|
|
|
|
_arr[i] = new QByteArray(_ret[i]);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
2024-09-14 22:29:05 +00:00
|
|
|
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;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_Repeated(const QByteArray* self, int times) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->repeated(static_cast<int>(times));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray* QByteArray_AppendWithQString(QByteArray* self, struct miqt_string* s) {
|
|
|
|
QString s_QString = QString::fromUtf8(&s->data, s->len);
|
|
|
|
QByteArray& _ret = self->append(s_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray* QByteArray_Insert6(QByteArray* self, int i, struct miqt_string* s) {
|
|
|
|
QString s_QString = QString::fromUtf8(&s->data, s->len);
|
|
|
|
QByteArray& _ret = self->insert(static_cast<int>(i), s_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray* QByteArray_Replace12(QByteArray* self, struct miqt_string* before, const char* after) {
|
|
|
|
QString before_QString = QString::fromUtf8(&before->data, before->len);
|
|
|
|
QByteArray& _ret = self->replace(before_QString, after);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray* QByteArray_Replace13(QByteArray* self, char c, struct miqt_string* after) {
|
|
|
|
QString after_QString = QString::fromUtf8(&after->data, after->len);
|
|
|
|
QByteArray& _ret = self->replace(static_cast<char>(c), after_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray* QByteArray_Replace14(QByteArray* self, struct miqt_string* before, QByteArray* after) {
|
|
|
|
QString before_QString = QString::fromUtf8(&before->data, before->len);
|
|
|
|
QByteArray& _ret = self->replace(before_QString, *after);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray* QByteArray_OperatorPlusAssignWithQString(QByteArray* self, struct miqt_string* s) {
|
|
|
|
QString s_QString = QString::fromUtf8(&s->data, s->len);
|
|
|
|
QByteArray& _ret = self->operator+=(s_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
int QByteArray_IndexOfWithQString(const QByteArray* self, struct miqt_string* s) {
|
|
|
|
QString s_QString = QString::fromUtf8(&s->data, s->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->indexOf(s_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
int QByteArray_LastIndexOfWithQString(const QByteArray* self, struct miqt_string* s) {
|
|
|
|
QString s_QString = QString::fromUtf8(&s->data, s->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->lastIndexOf(s_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QByteArray_OperatorEqual(const QByteArray* self, struct miqt_string* s2) {
|
|
|
|
QString s2_QString = QString::fromUtf8(&s2->data, s2->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->operator==(s2_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QByteArray_OperatorNotEqual(const QByteArray* self, struct miqt_string* s2) {
|
|
|
|
QString s2_QString = QString::fromUtf8(&s2->data, s2->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->operator!=(s2_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QByteArray_OperatorLesser(const QByteArray* self, struct miqt_string* s2) {
|
|
|
|
QString s2_QString = QString::fromUtf8(&s2->data, s2->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->operator<(s2_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QByteArray_OperatorGreater(const QByteArray* self, struct miqt_string* s2) {
|
|
|
|
QString s2_QString = QString::fromUtf8(&s2->data, s2->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->operator>(s2_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QByteArray_OperatorLesserOrEqual(const QByteArray* self, struct miqt_string* s2) {
|
|
|
|
QString s2_QString = QString::fromUtf8(&s2->data, s2->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->operator<=(s2_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
bool QByteArray_OperatorGreaterOrEqual(const QByteArray* self, struct miqt_string* s2) {
|
|
|
|
QString s2_QString = QString::fromUtf8(&s2->data, s2->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->operator>=(s2_QString);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int16_t QByteArray_ToShort(const QByteArray* self) {
|
|
|
|
return self->toShort();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uint16_t QByteArray_ToUShort(const QByteArray* self) {
|
|
|
|
return self->toUShort();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_ToInt(const QByteArray* self) {
|
|
|
|
return self->toInt();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned int QByteArray_ToUInt(const QByteArray* self) {
|
|
|
|
return self->toUInt();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
long QByteArray_ToLong(const QByteArray* self) {
|
|
|
|
return self->toLong();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned long QByteArray_ToULong(const QByteArray* self) {
|
|
|
|
return self->toULong();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int64_t QByteArray_ToLongLong(const QByteArray* self) {
|
|
|
|
return self->toLongLong();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uint64_t QByteArray_ToULongLong(const QByteArray* self) {
|
|
|
|
return self->toULongLong();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
float QByteArray_ToFloat(const QByteArray* self) {
|
|
|
|
return self->toFloat();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QByteArray_ToDouble(const QByteArray* self) {
|
|
|
|
return self->toDouble();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_ToBase64(const QByteArray* self, int options) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->toBase64(static_cast<QByteArray::Base64Options>(options));
|
2024-08-29 07:01:51 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_ToBase642(const QByteArray* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->toBase64();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_ToHex(const QByteArray* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->toHex();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_ToHexWithSeparator(const QByteArray* self, char separator) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->toHex(static_cast<char>(separator));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_ToPercentEncoding(const QByteArray* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->toPercentEncoding();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNum(QByteArray* self, int16_t param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<short>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNumWithUshort(QByteArray* self, uint16_t param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<ushort>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNumWithInt(QByteArray* self, int param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<int>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNumWithUint(QByteArray* self, unsigned int param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<uint>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-07 03:31:00 +00:00
|
|
|
QByteArray* QByteArray_SetNumWithQlonglong(QByteArray* self, long long param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<qint64>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-07 03:31:00 +00:00
|
|
|
QByteArray* QByteArray_SetNumWithQulonglong(QByteArray* self, unsigned long long param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<quint64>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNumWithFloat(QByteArray* self, float param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<float>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNumWithDouble(QByteArray* self, double param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<double>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_SetRawData(QByteArray* self, const char* a, unsigned int n) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setRawData(a, static_cast<uint>(n));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Number(int param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::number(static_cast<int>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_NumberWithUint(unsigned int param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::number(static_cast<uint>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-07 03:31:00 +00:00
|
|
|
QByteArray* QByteArray_NumberWithQlonglong(long long param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::number(static_cast<qint64>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-07 03:31:00 +00:00
|
|
|
QByteArray* QByteArray_NumberWithQulonglong(unsigned long long param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::number(static_cast<quint64>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_NumberWithDouble(double param1) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::number(static_cast<double>(param1));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray* QByteArray_FromRawData(const char* param1, int size) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::fromRawData(param1, static_cast<int>(size));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray__FromBase64Result* QByteArray_FromBase64Encoding(QByteArray* base64) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray::FromBase64Result _ret = QByteArray::fromBase64Encoding(*base64);
|
2024-08-29 07:01:51 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray::FromBase64Result*>(new QByteArray::FromBase64Result(_ret));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_FromBase64(QByteArray* base64, int options) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::fromBase64(*base64, static_cast<QByteArray::Base64Options>(options));
|
2024-08-29 07:01:51 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_FromBase64WithBase64(QByteArray* base64) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::fromBase64(*base64);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_FromHex(QByteArray* hexEncoded) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::fromHex(*hexEncoded);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_FromPercentEncoding(QByteArray* pctEncoded) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::fromPercentEncoding(*pctEncoded);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
char* QByteArray_Begin(QByteArray* self) {
|
|
|
|
return self->begin();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
const char* QByteArray_Begin2(const QByteArray* self) {
|
|
|
|
return (const char*) self->begin();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
const char* QByteArray_Cbegin(const QByteArray* self) {
|
|
|
|
return (const char*) self->cbegin();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
const char* QByteArray_ConstBegin(const QByteArray* self) {
|
|
|
|
return (const char*) self->constBegin();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
char* QByteArray_End(QByteArray* self) {
|
|
|
|
return self->end();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
const char* QByteArray_End2(const QByteArray* self) {
|
|
|
|
return (const char*) self->end();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
const char* QByteArray_Cend(const QByteArray* self) {
|
|
|
|
return (const char*) self->cend();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
const char* QByteArray_ConstEnd(const QByteArray* self) {
|
|
|
|
return (const char*) self->constEnd();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QByteArray_PushBack(QByteArray* self, char c) {
|
|
|
|
self->push_back(static_cast<char>(c));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QByteArray_PushBackWithChar(QByteArray* self, const char* c) {
|
2024-08-25 04:08:24 +00:00
|
|
|
self->push_back(c);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_PushBackWithQByteArray(QByteArray* self, QByteArray* a) {
|
|
|
|
self->push_back(*a);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_PushFront(QByteArray* self, char c) {
|
|
|
|
self->push_front(static_cast<char>(c));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QByteArray_PushFrontWithChar(QByteArray* self, const char* c) {
|
2024-08-25 04:08:24 +00:00
|
|
|
self->push_front(c);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_PushFrontWithQByteArray(QByteArray* self, QByteArray* a) {
|
|
|
|
self->push_front(*a);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_ShrinkToFit(QByteArray* self) {
|
|
|
|
self->shrink_to_fit();
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_Count2(const QByteArray* self) {
|
|
|
|
return self->count();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_Length(const QByteArray* self) {
|
|
|
|
return self->length();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteArray_IsNull(const QByteArray* self) {
|
|
|
|
return self->isNull();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Fill2(QByteArray* self, char c, int size) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->fill(static_cast<char>(c), static_cast<int>(size));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_IndexOf2(const QByteArray* self, char c, int from) {
|
|
|
|
return self->indexOf(static_cast<char>(c), static_cast<int>(from));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_IndexOf22(const QByteArray* self, const char* c, int from) {
|
|
|
|
return self->indexOf(c, static_cast<int>(from));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_IndexOf23(const QByteArray* self, QByteArray* a, int from) {
|
|
|
|
return self->indexOf(*a, static_cast<int>(from));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_LastIndexOf2(const QByteArray* self, char c, int from) {
|
|
|
|
return self->lastIndexOf(static_cast<char>(c), static_cast<int>(from));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_LastIndexOf22(const QByteArray* self, const char* c, int from) {
|
|
|
|
return self->lastIndexOf(c, static_cast<int>(from));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_LastIndexOf23(const QByteArray* self, QByteArray* a, int from) {
|
|
|
|
return self->lastIndexOf(*a, static_cast<int>(from));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_Compare2(const QByteArray* self, const char* c, uintptr_t cs) {
|
|
|
|
return self->compare(c, static_cast<Qt::CaseSensitivity>(cs));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_Compare22(const QByteArray* self, QByteArray* a, uintptr_t cs) {
|
|
|
|
return self->compare(*a, static_cast<Qt::CaseSensitivity>(cs));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_Mid2(const QByteArray* self, int index, int lenVal) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->mid(static_cast<int>(index), static_cast<int>(lenVal));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_LeftJustified2(const QByteArray* self, int width, char fill) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->leftJustified(static_cast<int>(width), static_cast<char>(fill));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_LeftJustified3(const QByteArray* self, int width, char fill, bool truncate) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->leftJustified(static_cast<int>(width), static_cast<char>(fill), truncate);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_RightJustified2(const QByteArray* self, int width, char fill) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->rightJustified(static_cast<int>(width), static_cast<char>(fill));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_RightJustified3(const QByteArray* self, int width, char fill, bool truncate) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->rightJustified(static_cast<int>(width), static_cast<char>(fill), truncate);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
int QByteArray_IndexOf24(const QByteArray* self, struct miqt_string* s, int from) {
|
|
|
|
QString s_QString = QString::fromUtf8(&s->data, s->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->indexOf(s_QString, static_cast<int>(from));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
int QByteArray_LastIndexOf24(const QByteArray* self, struct miqt_string* s, int from) {
|
|
|
|
QString s_QString = QString::fromUtf8(&s->data, s->len);
|
2024-09-11 05:41:09 +00:00
|
|
|
return self->lastIndexOf(s_QString, static_cast<int>(from));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int16_t QByteArray_ToShort1(const QByteArray* self, bool* ok) {
|
|
|
|
return self->toShort(ok);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int16_t QByteArray_ToShort2(const QByteArray* self, bool* ok, int base) {
|
|
|
|
return self->toShort(ok, static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uint16_t QByteArray_ToUShort1(const QByteArray* self, bool* ok) {
|
|
|
|
return self->toUShort(ok);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uint16_t QByteArray_ToUShort2(const QByteArray* self, bool* ok, int base) {
|
|
|
|
return self->toUShort(ok, static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_ToInt1(const QByteArray* self, bool* ok) {
|
|
|
|
return self->toInt(ok);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QByteArray_ToInt2(const QByteArray* self, bool* ok, int base) {
|
|
|
|
return self->toInt(ok, static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned int QByteArray_ToUInt1(const QByteArray* self, bool* ok) {
|
|
|
|
return self->toUInt(ok);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned int QByteArray_ToUInt2(const QByteArray* self, bool* ok, int base) {
|
|
|
|
return self->toUInt(ok, static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
long QByteArray_ToLong1(const QByteArray* self, bool* ok) {
|
|
|
|
return self->toLong(ok);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
long QByteArray_ToLong2(const QByteArray* self, bool* ok, int base) {
|
|
|
|
return self->toLong(ok, static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned long QByteArray_ToULong1(const QByteArray* self, bool* ok) {
|
|
|
|
return self->toULong(ok);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned long QByteArray_ToULong2(const QByteArray* self, bool* ok, int base) {
|
|
|
|
return self->toULong(ok, static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int64_t QByteArray_ToLongLong1(const QByteArray* self, bool* ok) {
|
|
|
|
return self->toLongLong(ok);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int64_t QByteArray_ToLongLong2(const QByteArray* self, bool* ok, int base) {
|
|
|
|
return self->toLongLong(ok, static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uint64_t QByteArray_ToULongLong1(const QByteArray* self, bool* ok) {
|
|
|
|
return self->toULongLong(ok);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uint64_t QByteArray_ToULongLong2(const QByteArray* self, bool* ok, int base) {
|
|
|
|
return self->toULongLong(ok, static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
float QByteArray_ToFloat1(const QByteArray* self, bool* ok) {
|
|
|
|
return self->toFloat(ok);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QByteArray_ToDouble1(const QByteArray* self, bool* ok) {
|
|
|
|
return self->toDouble(ok);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_ToPercentEncoding1(const QByteArray* self, QByteArray* exclude) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->toPercentEncoding(*exclude);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_ToPercentEncoding2(const QByteArray* self, QByteArray* exclude, QByteArray* include) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->toPercentEncoding(*exclude, *include);
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray_ToPercentEncoding3(const QByteArray* self, QByteArray* exclude, QByteArray* include, char percent) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = self->toPercentEncoding(*exclude, *include, static_cast<char>(percent));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNum2(QByteArray* self, int16_t param1, int base) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<short>(param1), static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNum22(QByteArray* self, uint16_t param1, int base) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<ushort>(param1), static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNum23(QByteArray* self, int param1, int base) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<int>(param1), static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNum24(QByteArray* self, unsigned int param1, int base) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<uint>(param1), static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-07 03:31:00 +00:00
|
|
|
QByteArray* QByteArray_SetNum25(QByteArray* self, long long param1, int base) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<qint64>(param1), static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-07 03:31:00 +00:00
|
|
|
QByteArray* QByteArray_SetNum26(QByteArray* self, unsigned long long param1, int base) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<quint64>(param1), static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNum27(QByteArray* self, float param1, char f) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<float>(param1), static_cast<char>(f));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNum3(QByteArray* self, float param1, char f, int prec) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<float>(param1), static_cast<char>(f), static_cast<int>(prec));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNum28(QByteArray* self, double param1, char f) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<double>(param1), static_cast<char>(f));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_SetNum32(QByteArray* self, double param1, char f, int prec) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->setNum(static_cast<double>(param1), static_cast<char>(f), static_cast<int>(prec));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Number2(int param1, int base) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::number(static_cast<int>(param1), static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Number22(unsigned int param1, int base) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::number(static_cast<uint>(param1), static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-07 03:31:00 +00:00
|
|
|
QByteArray* QByteArray_Number23(long long param1, int base) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::number(static_cast<qint64>(param1), static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-07 03:31:00 +00:00
|
|
|
QByteArray* QByteArray_Number24(unsigned long long param1, int base) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::number(static_cast<quint64>(param1), static_cast<int>(base));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Number25(double param1, char f) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::number(static_cast<double>(param1), static_cast<char>(f));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray_Number3(double param1, char f, int prec) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::number(static_cast<double>(param1), static_cast<char>(f), static_cast<int>(prec));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray__FromBase64Result* QByteArray_FromBase64Encoding2(QByteArray* base64, int options) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray::FromBase64Result _ret = QByteArray::fromBase64Encoding(*base64, static_cast<QByteArray::Base64Options>(options));
|
2024-08-29 07:01:51 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray::FromBase64Result*>(new QByteArray::FromBase64Result(_ret));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
QByteArray* QByteArray_FromPercentEncoding2(QByteArray* pctEncoded, char percent) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _ret = QByteArray::fromPercentEncoding(*pctEncoded, static_cast<char>(percent));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
2024-09-14 22:29:05 +00:00
|
|
|
return static_cast<QByteArray*>(new QByteArray(_ret));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray_Delete(QByteArray* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
|
|
|
QByteRef* QByteRef_new(QByteRef* param1) {
|
|
|
|
return new QByteRef(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QByteRef_OperatorAssign(QByteRef* self, char c) {
|
|
|
|
self->operator=(static_cast<char>(c));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QByteRef_OperatorAssignWithQByteRef(QByteRef* self, QByteRef* c) {
|
|
|
|
self->operator=(*c);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteRef_OperatorEqual(const QByteRef* self, char c) {
|
|
|
|
return self->operator==(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteRef_OperatorNotEqual(const QByteRef* self, char c) {
|
|
|
|
return self->operator!=(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteRef_OperatorGreater(const QByteRef* self, char c) {
|
|
|
|
return self->operator>(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteRef_OperatorGreaterOrEqual(const QByteRef* self, char c) {
|
|
|
|
return self->operator>=(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteRef_OperatorLesser(const QByteRef* self, char c) {
|
|
|
|
return self->operator<(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QByteRef_OperatorLesserOrEqual(const QByteRef* self, char c) {
|
|
|
|
return self->operator<=(static_cast<char>(c));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QByteRef_Delete(QByteRef* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QByteArray__FromBase64Result* QByteArray__FromBase64Result_new(QByteArray__FromBase64Result* param1) {
|
|
|
|
return new QByteArray::FromBase64Result(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray__FromBase64Result_Swap(QByteArray__FromBase64Result* self, QByteArray__FromBase64Result* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
|
|
|
QByteArray* QByteArray__FromBase64Result_OperatorMultiply(QByteArray__FromBase64Result* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray& _ret = self->operator*();
|
2024-08-29 07:01:51 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return &_ret;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QByteArray* QByteArray__FromBase64Result_OperatorMultiply2(const QByteArray__FromBase64Result* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
const QByteArray& _ret = self->operator*();
|
2024-08-29 07:01:51 +00:00
|
|
|
// Cast returned reference into pointer
|
2024-09-14 22:29:05 +00:00
|
|
|
return const_cast<QByteArray*>(&_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QByteArray__FromBase64Result_Delete(QByteArray__FromBase64Result* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|