miqt/qt/gen_qlocale.h

126 lines
8.3 KiB
C
Raw Normal View History

#ifndef GEN_QLOCALE_H
#define GEN_QLOCALE_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QCalendar;
class QChar;
class QDate;
class QDateTime;
class QLocale;
class QTime;
#else
typedef struct QCalendar QCalendar;
typedef struct QChar QChar;
typedef struct QDate QDate;
typedef struct QDateTime QDateTime;
typedef struct QLocale QLocale;
typedef struct QTime QTime;
#endif
QLocale* QLocale_new();
QLocale* QLocale_new2(const char* name, size_t name_Strlen);
QLocale* QLocale_new3(QLocale* other);
void QLocale_OperatorAssign(QLocale* self, QLocale* other);
void QLocale_Swap(QLocale* self, QLocale* other);
void QLocale_Name(QLocale* self, char** _out, int* _out_Strlen);
void QLocale_Bcp47Name(QLocale* self, char** _out, int* _out_Strlen);
void QLocale_NativeLanguageName(QLocale* self, char** _out, int* _out_Strlen);
void QLocale_NativeCountryName(QLocale* self, char** _out, int* _out_Strlen);
int16_t QLocale_ToShort(QLocale* self, const char* s, size_t s_Strlen);
uint16_t QLocale_ToUShort(QLocale* self, const char* s, size_t s_Strlen);
int QLocale_ToInt(QLocale* self, const char* s, size_t s_Strlen);
unsigned int QLocale_ToUInt(QLocale* self, const char* s, size_t s_Strlen);
long QLocale_ToLong(QLocale* self, const char* s, size_t s_Strlen);
unsigned long QLocale_ToULong(QLocale* self, const char* s, size_t s_Strlen);
int64_t QLocale_ToLongLong(QLocale* self, const char* s, size_t s_Strlen);
uint64_t QLocale_ToULongLong(QLocale* self, const char* s, size_t s_Strlen);
float QLocale_ToFloat(QLocale* self, const char* s, size_t s_Strlen);
double QLocale_ToDouble(QLocale* self, const char* s, size_t s_Strlen);
void QLocale_ToString(QLocale* self, int64_t i, char** _out, int* _out_Strlen);
void QLocale_ToStringWithQulonglong(QLocale* self, uint64_t i, char** _out, int* _out_Strlen);
void QLocale_ToStringWithLong(QLocale* self, long i, char** _out, int* _out_Strlen);
void QLocale_ToStringWithUlong(QLocale* self, unsigned long i, char** _out, int* _out_Strlen);
void QLocale_ToStringWithShort(QLocale* self, int16_t i, char** _out, int* _out_Strlen);
void QLocale_ToStringWithUshort(QLocale* self, uint16_t i, char** _out, int* _out_Strlen);
void QLocale_ToStringWithInt(QLocale* self, int i, char** _out, int* _out_Strlen);
void QLocale_ToStringWithUint(QLocale* self, unsigned int i, char** _out, int* _out_Strlen);
void QLocale_ToStringWithDouble(QLocale* self, double i, char** _out, int* _out_Strlen);
void QLocale_ToStringWithFloat(QLocale* self, float i, char** _out, int* _out_Strlen);
void QLocale_ToString2(QLocale* self, QDate* date, const char* formatStr, size_t formatStr_Strlen, char** _out, int* _out_Strlen);
void QLocale_ToString3(QLocale* self, QTime* time, const char* formatStr, size_t formatStr_Strlen, char** _out, int* _out_Strlen);
void QLocale_ToString4(QLocale* self, QDateTime* dateTime, const char* format, size_t format_Strlen, char** _out, int* _out_Strlen);
QDate* QLocale_ToDate(QLocale* self, const char* stringVal, size_t stringVal_Strlen, const char* format, size_t format_Strlen);
QTime* QLocale_ToTime(QLocale* self, const char* stringVal, size_t stringVal_Strlen, const char* format, size_t format_Strlen);
QDateTime* QLocale_ToDateTime(QLocale* self, const char* stringVal, size_t stringVal_Strlen, const char* format, size_t format_Strlen);
QDate* QLocale_ToDate2(QLocale* self, const char* stringVal, size_t stringVal_Strlen, const char* format, size_t format_Strlen, QCalendar* cal);
QDateTime* QLocale_ToDateTime2(QLocale* self, const char* stringVal, size_t stringVal_Strlen, const char* format, size_t format_Strlen, QCalendar* cal);
QTime* QLocale_ToTime2(QLocale* self, const char* stringVal, size_t stringVal_Strlen, const char* format, size_t format_Strlen, QCalendar* cal);
QChar* QLocale_DecimalPoint(QLocale* self);
QChar* QLocale_GroupSeparator(QLocale* self);
QChar* QLocale_Percent(QLocale* self);
QChar* QLocale_ZeroDigit(QLocale* self);
QChar* QLocale_NegativeSign(QLocale* self);
QChar* QLocale_PositiveSign(QLocale* self);
QChar* QLocale_Exponential(QLocale* self);
void QLocale_AmText(QLocale* self, char** _out, int* _out_Strlen);
void QLocale_PmText(QLocale* self, char** _out, int* _out_Strlen);
QLocale* QLocale_Collation(QLocale* self);
void QLocale_ToUpper(QLocale* self, const char* str, size_t str_Strlen, char** _out, int* _out_Strlen);
void QLocale_ToLower(QLocale* self, const char* str, size_t str_Strlen, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyString(QLocale* self, int64_t param1, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyStringWithQulonglong(QLocale* self, uint64_t param1, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyStringWithShort(QLocale* self, int16_t param1, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyStringWithUshort(QLocale* self, uint16_t param1, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyStringWithInt(QLocale* self, int param1, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyStringWithUint(QLocale* self, unsigned int param1, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyStringWithDouble(QLocale* self, double param1, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyString2(QLocale* self, double param1, const char* symbol, size_t symbol_Strlen, int precision, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyStringWithFloat(QLocale* self, float i, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyString3(QLocale* self, float i, const char* symbol, size_t symbol_Strlen, int precision, char** _out, int* _out_Strlen);
void QLocale_UiLanguages(QLocale* self, char*** _out, int** _out_Lengths, size_t* _out_len);
bool QLocale_OperatorEqual(QLocale* self, QLocale* other);
bool QLocale_OperatorNotEqual(QLocale* self, QLocale* other);
void QLocale_SetDefault(QLocale* locale);
QLocale* QLocale_C();
QLocale* QLocale_System();
void QLocale_CreateSeparatedList(QLocale* self, char** strl, uint64_t* strl_Lengths, size_t strl_len, char** _out, int* _out_Strlen);
int16_t QLocale_ToShort2(QLocale* self, const char* s, size_t s_Strlen, bool* ok);
uint16_t QLocale_ToUShort2(QLocale* self, const char* s, size_t s_Strlen, bool* ok);
int QLocale_ToInt2(QLocale* self, const char* s, size_t s_Strlen, bool* ok);
unsigned int QLocale_ToUInt2(QLocale* self, const char* s, size_t s_Strlen, bool* ok);
long QLocale_ToLong2(QLocale* self, const char* s, size_t s_Strlen, bool* ok);
unsigned long QLocale_ToULong2(QLocale* self, const char* s, size_t s_Strlen, bool* ok);
int64_t QLocale_ToLongLong2(QLocale* self, const char* s, size_t s_Strlen, bool* ok);
uint64_t QLocale_ToULongLong2(QLocale* self, const char* s, size_t s_Strlen, bool* ok);
float QLocale_ToFloat2(QLocale* self, const char* s, size_t s_Strlen, bool* ok);
double QLocale_ToDouble2(QLocale* self, const char* s, size_t s_Strlen, bool* ok);
void QLocale_ToString22(QLocale* self, double i, char f, char** _out, int* _out_Strlen);
void QLocale_ToString32(QLocale* self, double i, char f, int prec, char** _out, int* _out_Strlen);
void QLocale_ToString23(QLocale* self, float i, char f, char** _out, int* _out_Strlen);
void QLocale_ToString33(QLocale* self, float i, char f, int prec, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyString22(QLocale* self, int64_t param1, const char* symbol, size_t symbol_Strlen, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyString23(QLocale* self, uint64_t param1, const char* symbol, size_t symbol_Strlen, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyString24(QLocale* self, int16_t param1, const char* symbol, size_t symbol_Strlen, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyString25(QLocale* self, uint16_t param1, const char* symbol, size_t symbol_Strlen, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyString26(QLocale* self, int param1, const char* symbol, size_t symbol_Strlen, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyString27(QLocale* self, unsigned int param1, const char* symbol, size_t symbol_Strlen, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyString28(QLocale* self, double param1, const char* symbol, size_t symbol_Strlen, char** _out, int* _out_Strlen);
void QLocale_ToCurrencyString29(QLocale* self, float i, const char* symbol, size_t symbol_Strlen, char** _out, int* _out_Strlen);
void QLocale_Delete(QLocale* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif