2024-11-17 06:21:37 +00:00
|
|
|
#pragma once
|
|
|
|
#ifndef MIQT_QT_GEN_QTEXTCODEC_H
|
|
|
|
#define MIQT_QT_GEN_QTEXTCODEC_H
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QChar;
|
|
|
|
class QTextCodec;
|
2024-08-29 07:01:51 +00:00
|
|
|
#if defined(WORKAROUND_INNER_CLASS_DEFINITION_QTextCodec__ConverterState)
|
|
|
|
typedef QTextCodec::ConverterState QTextCodec__ConverterState;
|
|
|
|
#else
|
|
|
|
class QTextCodec__ConverterState;
|
|
|
|
#endif
|
2024-08-25 04:08:24 +00:00
|
|
|
class QTextDecoder;
|
|
|
|
class QTextEncoder;
|
|
|
|
#else
|
|
|
|
typedef struct QChar QChar;
|
|
|
|
typedef struct QTextCodec QTextCodec;
|
2024-08-29 07:01:51 +00:00
|
|
|
typedef struct QTextCodec__ConverterState QTextCodec__ConverterState;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QTextDecoder QTextDecoder;
|
|
|
|
typedef struct QTextEncoder QTextEncoder;
|
|
|
|
#endif
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
QTextCodec* QTextCodec_CodecForName(struct miqt_string name);
|
2024-08-29 07:01:51 +00:00
|
|
|
QTextCodec* QTextCodec_CodecForNameWithName(const char* name);
|
2024-08-25 04:08:24 +00:00
|
|
|
QTextCodec* QTextCodec_CodecForMib(int mib);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of struct miqt_string */ QTextCodec_AvailableCodecs();
|
|
|
|
struct miqt_array /* of int */ QTextCodec_AvailableMibs();
|
2024-08-25 04:08:24 +00:00
|
|
|
QTextCodec* QTextCodec_CodecForLocale();
|
|
|
|
void QTextCodec_SetCodecForLocale(QTextCodec* c);
|
2024-10-18 23:53:33 +00:00
|
|
|
QTextCodec* QTextCodec_CodecForHtml(struct miqt_string ba);
|
|
|
|
QTextCodec* QTextCodec_CodecForHtml2(struct miqt_string ba, QTextCodec* defaultCodec);
|
|
|
|
QTextCodec* QTextCodec_CodecForUtfText(struct miqt_string ba);
|
|
|
|
QTextCodec* QTextCodec_CodecForUtfText2(struct miqt_string ba, QTextCodec* defaultCodec);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTextCodec_CanEncode(const QTextCodec* self, QChar* param1);
|
2024-10-18 23:53:33 +00:00
|
|
|
bool QTextCodec_CanEncodeWithQString(const QTextCodec* self, struct miqt_string param1);
|
|
|
|
struct miqt_string QTextCodec_ToUnicode(const QTextCodec* self, struct miqt_string param1);
|
|
|
|
struct miqt_string QTextCodec_ToUnicodeWithChars(const QTextCodec* self, const char* chars);
|
|
|
|
struct miqt_string QTextCodec_FromUnicode(const QTextCodec* self, struct miqt_string uc);
|
|
|
|
struct miqt_string QTextCodec_ToUnicode2(const QTextCodec* self, const char* in, int length);
|
|
|
|
struct miqt_string QTextCodec_FromUnicode2(const QTextCodec* self, QChar* in, int length);
|
2024-09-11 05:41:09 +00:00
|
|
|
QTextDecoder* QTextCodec_MakeDecoder(const QTextCodec* self);
|
|
|
|
QTextEncoder* QTextCodec_MakeEncoder(const QTextCodec* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTextCodec_Name(const QTextCodec* self);
|
2024-11-17 06:21:37 +00:00
|
|
|
struct miqt_array /* of struct miqt_string */ QTextCodec_Aliases(const QTextCodec* self);
|
2024-09-11 05:41:09 +00:00
|
|
|
int QTextCodec_MibEnum(const QTextCodec* self);
|
2024-11-19 06:29:06 +00:00
|
|
|
struct miqt_string QTextCodec_ConvertToUnicode(const QTextCodec* self, const char* in, int length, QTextCodec__ConverterState* state);
|
|
|
|
struct miqt_string QTextCodec_ConvertFromUnicode(const QTextCodec* self, QChar* in, int length, QTextCodec__ConverterState* state);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTextCodec_ToUnicode3(const QTextCodec* self, const char* in, int length, QTextCodec__ConverterState* state);
|
|
|
|
struct miqt_string QTextCodec_FromUnicode3(const QTextCodec* self, QChar* in, int length, QTextCodec__ConverterState* state);
|
2024-09-11 05:41:09 +00:00
|
|
|
QTextDecoder* QTextCodec_MakeDecoder1(const QTextCodec* self, int flags);
|
|
|
|
QTextEncoder* QTextCodec_MakeEncoder1(const QTextCodec* self, int flags);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QTextEncoder* QTextEncoder_new(QTextCodec* codec);
|
|
|
|
QTextEncoder* QTextEncoder_new2(QTextCodec* codec, int flags);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTextEncoder_FromUnicode(QTextEncoder* self, struct miqt_string str);
|
|
|
|
struct miqt_string QTextEncoder_FromUnicode2(QTextEncoder* self, QChar* uc, int lenVal);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTextEncoder_HasFailure(const QTextEncoder* self);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QTextEncoder_Delete(QTextEncoder* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QTextDecoder* QTextDecoder_new(QTextCodec* codec);
|
|
|
|
QTextDecoder* QTextDecoder_new2(QTextCodec* codec, int flags);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTextDecoder_ToUnicode(QTextDecoder* self, const char* chars, int lenVal);
|
|
|
|
struct miqt_string QTextDecoder_ToUnicodeWithBa(QTextDecoder* self, struct miqt_string ba);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTextDecoder_HasFailure(const QTextDecoder* self);
|
|
|
|
bool QTextDecoder_NeedsMoreData(const QTextDecoder* self);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QTextDecoder_Delete(QTextDecoder* self, bool isSubclass);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QTextCodec__ConverterState* QTextCodec__ConverterState_new();
|
|
|
|
QTextCodec__ConverterState* QTextCodec__ConverterState_new2(int f);
|
2024-11-19 06:29:06 +00:00
|
|
|
void QTextCodec__ConverterState_Delete(QTextCodec__ConverterState* self, bool isSubclass);
|
2024-08-29 07:01:51 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|