miqt/qt6/gen_qstringconverter.h

58 lines
1.9 KiB
C
Raw Normal View History

#pragma once
#ifndef MIQT_QT6_GEN_QSTRINGCONVERTER_H
#define MIQT_QT6_GEN_QSTRINGCONVERTER_H
2024-10-20 05:21:03 +00:00
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "../libmiqt/libmiqt.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QByteArrayView;
class QChar;
2024-11-19 06:29:06 +00:00
class QStringConverter;
class QStringConverterBase;
2024-10-20 05:21:03 +00:00
class QStringDecoder;
class QStringEncoder;
#else
typedef struct QByteArrayView QByteArrayView;
typedef struct QChar QChar;
2024-11-19 06:29:06 +00:00
typedef struct QStringConverter QStringConverter;
typedef struct QStringConverterBase QStringConverterBase;
2024-10-20 05:21:03 +00:00
typedef struct QStringDecoder QStringDecoder;
typedef struct QStringEncoder QStringEncoder;
#endif
2024-12-07 04:15:57 +00:00
QStringEncoder* QStringEncoder_new();
QStringEncoder* QStringEncoder_new2(int encoding);
QStringEncoder* QStringEncoder_new3(const char* name);
QStringEncoder* QStringEncoder_new4(int encoding, int flags);
QStringEncoder* QStringEncoder_new5(const char* name, int flags);
void QStringEncoder_virtbase(QStringEncoder* src, QStringConverter** outptr_QStringConverter);
2024-10-20 05:21:03 +00:00
ptrdiff_t QStringEncoder_RequiredSpace(const QStringEncoder* self, ptrdiff_t inputLength);
2024-11-19 06:29:06 +00:00
void QStringEncoder_Delete(QStringEncoder* self, bool isSubclass);
2024-10-20 05:21:03 +00:00
2024-12-07 04:15:57 +00:00
QStringDecoder* QStringDecoder_new(int encoding);
QStringDecoder* QStringDecoder_new2();
QStringDecoder* QStringDecoder_new3(const char* name);
QStringDecoder* QStringDecoder_new4(int encoding, int flags);
QStringDecoder* QStringDecoder_new5(const char* name, int f);
void QStringDecoder_virtbase(QStringDecoder* src, QStringConverter** outptr_QStringConverter);
2024-10-20 05:21:03 +00:00
ptrdiff_t QStringDecoder_RequiredSpace(const QStringDecoder* self, ptrdiff_t inputLength);
QChar* QStringDecoder_AppendToBuffer(QStringDecoder* self, QChar* out, QByteArrayView* ba);
QStringDecoder* QStringDecoder_DecoderForHtml(QByteArrayView* data);
2024-11-19 06:29:06 +00:00
void QStringDecoder_Delete(QStringDecoder* self, bool isSubclass);
2024-10-20 05:21:03 +00:00
#ifdef __cplusplus
} /* extern C */
#endif
#endif