2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QTEXTCODEC_H
|
|
|
|
#define GEN_QTEXTCODEC_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QByteArray;
|
|
|
|
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 QByteArray QByteArray;
|
|
|
|
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
|
|
|
|
|
|
|
|
QTextCodec* QTextCodec_CodecForName(QByteArray* 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);
|
|
|
|
void QTextCodec_AvailableCodecs(QByteArray*** _out, size_t* _out_len);
|
|
|
|
void QTextCodec_AvailableMibs(int** _out, size_t* _out_len);
|
|
|
|
QTextCodec* QTextCodec_CodecForLocale();
|
|
|
|
void QTextCodec_SetCodecForLocale(QTextCodec* c);
|
|
|
|
QTextCodec* QTextCodec_CodecForHtml(QByteArray* ba);
|
|
|
|
QTextCodec* QTextCodec_CodecForHtml2(QByteArray* ba, QTextCodec* defaultCodec);
|
|
|
|
QTextCodec* QTextCodec_CodecForUtfText(QByteArray* ba);
|
|
|
|
QTextCodec* QTextCodec_CodecForUtfText2(QByteArray* ba, QTextCodec* defaultCodec);
|
|
|
|
bool QTextCodec_CanEncode(QTextCodec* self, QChar* param1);
|
|
|
|
bool QTextCodec_CanEncodeWithQString(QTextCodec* self, const char* param1, size_t param1_Strlen);
|
|
|
|
void QTextCodec_ToUnicode(QTextCodec* self, QByteArray* param1, char** _out, int* _out_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTextCodec_ToUnicodeWithChars(QTextCodec* self, const char* chars, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
QByteArray* QTextCodec_FromUnicode(QTextCodec* self, const char* uc, size_t uc_Strlen);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTextCodec_ToUnicode2(QTextCodec* self, const char* in, int length, char** _out, int* _out_Strlen);
|
|
|
|
QByteArray* QTextCodec_FromUnicode2(QTextCodec* self, QChar* in, int length);
|
|
|
|
QTextDecoder* QTextCodec_MakeDecoder(QTextCodec* self);
|
|
|
|
QTextEncoder* QTextCodec_MakeEncoder(QTextCodec* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
QByteArray* QTextCodec_Name(QTextCodec* self);
|
|
|
|
void QTextCodec_Aliases(QTextCodec* self, QByteArray*** _out, size_t* _out_len);
|
|
|
|
int QTextCodec_MibEnum(QTextCodec* self);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTextCodec_ToUnicode3(QTextCodec* self, const char* in, int length, QTextCodec__ConverterState* state, char** _out, int* _out_Strlen);
|
|
|
|
QByteArray* QTextCodec_FromUnicode3(QTextCodec* self, QChar* in, int length, QTextCodec__ConverterState* state);
|
|
|
|
QTextDecoder* QTextCodec_MakeDecoder1(QTextCodec* self, int flags);
|
|
|
|
QTextEncoder* QTextCodec_MakeEncoder1(QTextCodec* self, int flags);
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QTextEncoder* QTextEncoder_new(QTextCodec* codec);
|
2024-08-29 07:01:51 +00:00
|
|
|
QTextEncoder* QTextEncoder_new2(QTextCodec* codec, int flags);
|
2024-08-25 04:08:24 +00:00
|
|
|
QByteArray* QTextEncoder_FromUnicode(QTextEncoder* self, const char* str, size_t str_Strlen);
|
|
|
|
QByteArray* QTextEncoder_FromUnicode2(QTextEncoder* self, QChar* uc, int lenVal);
|
|
|
|
bool QTextEncoder_HasFailure(QTextEncoder* self);
|
|
|
|
void QTextEncoder_Delete(QTextEncoder* self);
|
|
|
|
|
|
|
|
QTextDecoder* QTextDecoder_new(QTextCodec* codec);
|
2024-08-29 07:01:51 +00:00
|
|
|
QTextDecoder* QTextDecoder_new2(QTextCodec* codec, int flags);
|
|
|
|
void QTextDecoder_ToUnicode(QTextDecoder* self, const char* chars, int lenVal, char** _out, int* _out_Strlen);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTextDecoder_ToUnicodeWithBa(QTextDecoder* self, QByteArray* ba, char** _out, int* _out_Strlen);
|
|
|
|
bool QTextDecoder_HasFailure(QTextDecoder* self);
|
|
|
|
bool QTextDecoder_NeedsMoreData(QTextDecoder* self);
|
|
|
|
void QTextDecoder_Delete(QTextDecoder* self);
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QTextCodec__ConverterState* QTextCodec__ConverterState_new();
|
|
|
|
QTextCodec__ConverterState* QTextCodec__ConverterState_new2(int f);
|
|
|
|
void QTextCodec__ConverterState_Delete(QTextCodec__ConverterState* self);
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|