2024-08-25 04:08:24 +00:00
|
|
|
#include <QChar>
|
|
|
|
#include <QLatin1Char>
|
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qchar.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qchar.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QLatin1Char_new(char c, QLatin1Char** outptr_QLatin1Char) {
|
|
|
|
QLatin1Char* ret = new QLatin1Char(static_cast<char>(c));
|
|
|
|
*outptr_QLatin1Char = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QLatin1Char_new2(QLatin1Char* param1, QLatin1Char** outptr_QLatin1Char) {
|
|
|
|
QLatin1Char* ret = new QLatin1Char(*param1);
|
|
|
|
*outptr_QLatin1Char = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
char QLatin1Char_ToLatin1(const QLatin1Char* self) {
|
|
|
|
return self->toLatin1();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uint16_t QLatin1Char_Unicode(const QLatin1Char* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
ushort _ret = self->unicode();
|
|
|
|
return static_cast<uint16_t>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QLatin1Char_Delete(QLatin1Char* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QLatin1Char*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QChar_new(QChar** outptr_QChar) {
|
|
|
|
QChar* ret = new QChar();
|
|
|
|
*outptr_QChar = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QChar_new2(uint16_t rc, QChar** outptr_QChar) {
|
|
|
|
QChar* ret = new QChar(static_cast<ushort>(rc));
|
|
|
|
*outptr_QChar = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QChar_new3(unsigned char c, unsigned char r, QChar** outptr_QChar) {
|
|
|
|
QChar* ret = new QChar(static_cast<uchar>(c), static_cast<uchar>(r));
|
|
|
|
*outptr_QChar = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QChar_new4(int16_t rc, QChar** outptr_QChar) {
|
|
|
|
QChar* ret = new QChar(static_cast<short>(rc));
|
|
|
|
*outptr_QChar = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QChar_new5(unsigned int rc, QChar** outptr_QChar) {
|
|
|
|
QChar* ret = new QChar(static_cast<uint>(rc));
|
|
|
|
*outptr_QChar = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QChar_new6(int rc, QChar** outptr_QChar) {
|
|
|
|
QChar* ret = new QChar(static_cast<int>(rc));
|
|
|
|
*outptr_QChar = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QChar_new7(int s, QChar** outptr_QChar) {
|
|
|
|
QChar* ret = new QChar(static_cast<QChar::SpecialCharacter>(s));
|
|
|
|
*outptr_QChar = ret;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QChar_new8(QLatin1Char* ch, QChar** outptr_QChar) {
|
|
|
|
QChar* ret = new QChar(*ch);
|
|
|
|
*outptr_QChar = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QChar_new9(char c, QChar** outptr_QChar) {
|
|
|
|
QChar* ret = new QChar(static_cast<char>(c));
|
|
|
|
*outptr_QChar = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QChar_new10(unsigned char c, QChar** outptr_QChar) {
|
|
|
|
QChar* ret = new QChar(static_cast<uchar>(c));
|
|
|
|
*outptr_QChar = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QChar_new11(QChar* param1, QChar** outptr_QChar) {
|
|
|
|
QChar* ret = new QChar(*param1);
|
|
|
|
*outptr_QChar = ret;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_Category(const QChar* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::Category _ret = self->category();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_Direction(const QChar* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::Direction _ret = self->direction();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_JoiningType(const QChar* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::JoiningType _ret = self->joiningType();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_Joining(const QChar* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::Joining _ret = self->joining();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QChar_CombiningClass(const QChar* self) {
|
|
|
|
return self->combiningClass();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QChar* QChar_MirroredChar(const QChar* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QChar(self->mirroredChar());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_HasMirrored(const QChar* self) {
|
|
|
|
return self->hasMirrored();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QChar_Decomposition(const QChar* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = self->decomposition();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_DecompositionTag(const QChar* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::Decomposition _ret = self->decompositionTag();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QChar_DigitValue(const QChar* self) {
|
|
|
|
return self->digitValue();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QChar* QChar_ToLower(const QChar* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QChar(self->toLower());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QChar* QChar_ToUpper(const QChar* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QChar(self->toUpper());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QChar* QChar_ToTitleCase(const QChar* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QChar(self->toTitleCase());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QChar* QChar_ToCaseFolded(const QChar* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QChar(self->toCaseFolded());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_Script(const QChar* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::Script _ret = self->script();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_UnicodeVersion(const QChar* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::UnicodeVersion _ret = self->unicodeVersion();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
char QChar_ToLatin1(const QChar* self) {
|
|
|
|
return self->toLatin1();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
uint16_t QChar_Unicode(const QChar* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
ushort _ret = self->unicode();
|
|
|
|
return static_cast<uint16_t>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QChar* QChar_FromLatin1(char c) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QChar(QChar::fromLatin1(static_cast<char>(c)));
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsNull(const QChar* self) {
|
|
|
|
return self->isNull();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsPrint(const QChar* self) {
|
|
|
|
return self->isPrint();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsSpace(const QChar* self) {
|
|
|
|
return self->isSpace();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsMark(const QChar* self) {
|
|
|
|
return self->isMark();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsPunct(const QChar* self) {
|
|
|
|
return self->isPunct();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsSymbol(const QChar* self) {
|
|
|
|
return self->isSymbol();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsLetter(const QChar* self) {
|
|
|
|
return self->isLetter();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsNumber(const QChar* self) {
|
|
|
|
return self->isNumber();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsLetterOrNumber(const QChar* self) {
|
|
|
|
return self->isLetterOrNumber();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsDigit(const QChar* self) {
|
|
|
|
return self->isDigit();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsLower(const QChar* self) {
|
|
|
|
return self->isLower();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsUpper(const QChar* self) {
|
|
|
|
return self->isUpper();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsTitleCase(const QChar* self) {
|
|
|
|
return self->isTitleCase();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsNonCharacter(const QChar* self) {
|
|
|
|
return self->isNonCharacter();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsHighSurrogate(const QChar* self) {
|
|
|
|
return self->isHighSurrogate();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsLowSurrogate(const QChar* self) {
|
|
|
|
return self->isLowSurrogate();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QChar_IsSurrogate(const QChar* self) {
|
|
|
|
return self->isSurrogate();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QChar_Cell(const QChar* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
uchar _ret = self->cell();
|
|
|
|
return static_cast<unsigned char>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
unsigned char QChar_Row(const QChar* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
uchar _ret = self->row();
|
|
|
|
return static_cast<unsigned char>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QChar_SetCell(QChar* self, unsigned char acell) {
|
|
|
|
self->setCell(static_cast<uchar>(acell));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QChar_SetRow(QChar* self, unsigned char arow) {
|
|
|
|
self->setRow(static_cast<uchar>(arow));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsNonCharacterWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isNonCharacter(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsHighSurrogateWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isHighSurrogate(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsLowSurrogateWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isLowSurrogate(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsSurrogateWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isSurrogate(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_RequiresSurrogates(unsigned int ucs4) {
|
|
|
|
return QChar::requiresSurrogates(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int QChar_SurrogateToUcs4(uint16_t high, uint16_t low) {
|
2024-09-18 00:12:02 +00:00
|
|
|
uint _ret = QChar::surrogateToUcs4(static_cast<ushort>(high), static_cast<ushort>(low));
|
|
|
|
return static_cast<unsigned int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int QChar_SurrogateToUcs42(QChar* high, QChar* low) {
|
2024-09-18 00:12:02 +00:00
|
|
|
uint _ret = QChar::surrogateToUcs4(*high, *low);
|
|
|
|
return static_cast<unsigned int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uint16_t QChar_HighSurrogate(unsigned int ucs4) {
|
2024-09-18 00:12:02 +00:00
|
|
|
ushort _ret = QChar::highSurrogate(static_cast<uint>(ucs4));
|
|
|
|
return static_cast<uint16_t>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uint16_t QChar_LowSurrogate(unsigned int ucs4) {
|
2024-09-18 00:12:02 +00:00
|
|
|
ushort _ret = QChar::lowSurrogate(static_cast<uint>(ucs4));
|
|
|
|
return static_cast<uint16_t>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_CategoryWithUcs4(unsigned int ucs4) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::Category _ret = QChar::category(static_cast<uint>(ucs4));
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_DirectionWithUcs4(unsigned int ucs4) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::Direction _ret = QChar::direction(static_cast<uint>(ucs4));
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_JoiningTypeWithUcs4(unsigned int ucs4) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::JoiningType _ret = QChar::joiningType(static_cast<uint>(ucs4));
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_JoiningWithUcs4(unsigned int ucs4) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::Joining _ret = QChar::joining(static_cast<uint>(ucs4));
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
unsigned char QChar_CombiningClassWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::combiningClass(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int QChar_MirroredCharWithUcs4(unsigned int ucs4) {
|
2024-09-18 00:12:02 +00:00
|
|
|
uint _ret = QChar::mirroredChar(static_cast<uint>(ucs4));
|
|
|
|
return static_cast<unsigned int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_HasMirroredWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::hasMirrored(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QChar_DecompositionWithUcs4(unsigned int ucs4) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QString _ret = QChar::decomposition(static_cast<uint>(ucs4));
|
2024-08-25 04:08:24 +00:00
|
|
|
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
|
2024-09-14 22:29:05 +00:00
|
|
|
QByteArray _b = _ret.toUtf8();
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string _ms;
|
|
|
|
_ms.len = _b.length();
|
|
|
|
_ms.data = static_cast<char*>(malloc(_ms.len));
|
|
|
|
memcpy(_ms.data, _b.data(), _ms.len);
|
|
|
|
return _ms;
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_DecompositionTagWithUcs4(unsigned int ucs4) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::Decomposition _ret = QChar::decompositionTag(static_cast<uint>(ucs4));
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
int QChar_DigitValueWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::digitValue(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int QChar_ToLowerWithUcs4(unsigned int ucs4) {
|
2024-09-18 00:12:02 +00:00
|
|
|
uint _ret = QChar::toLower(static_cast<uint>(ucs4));
|
|
|
|
return static_cast<unsigned int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int QChar_ToUpperWithUcs4(unsigned int ucs4) {
|
2024-09-18 00:12:02 +00:00
|
|
|
uint _ret = QChar::toUpper(static_cast<uint>(ucs4));
|
|
|
|
return static_cast<unsigned int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int QChar_ToTitleCaseWithUcs4(unsigned int ucs4) {
|
2024-09-18 00:12:02 +00:00
|
|
|
uint _ret = QChar::toTitleCase(static_cast<uint>(ucs4));
|
|
|
|
return static_cast<unsigned int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int QChar_ToCaseFoldedWithUcs4(unsigned int ucs4) {
|
2024-09-18 00:12:02 +00:00
|
|
|
uint _ret = QChar::toCaseFolded(static_cast<uint>(ucs4));
|
|
|
|
return static_cast<unsigned int>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_ScriptWithUcs4(unsigned int ucs4) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::Script _ret = QChar::script(static_cast<uint>(ucs4));
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_UnicodeVersionWithUcs4(unsigned int ucs4) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::UnicodeVersion _ret = QChar::unicodeVersion(static_cast<uint>(ucs4));
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QChar_CurrentUnicodeVersion() {
|
2024-09-14 22:29:05 +00:00
|
|
|
QChar::UnicodeVersion _ret = QChar::currentUnicodeVersion();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QChar_IsPrintWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isPrint(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsSpaceWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isSpace(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsMarkWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isMark(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsPunctWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isPunct(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsSymbolWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isSymbol(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsLetterWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isLetter(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsNumberWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isNumber(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsLetterOrNumberWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isLetterOrNumber(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsDigitWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isDigit(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsLowerWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isLower(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsUpperWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isUpper(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QChar_IsTitleCaseWithUcs4(unsigned int ucs4) {
|
|
|
|
return QChar::isTitleCase(static_cast<uint>(ucs4));
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QChar_Delete(QChar* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QChar*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|