#pragma once #ifndef MIQT_QT6_GEN_QLOCALE_H #define MIQT_QT6_GEN_QLOCALE_H #include #include #include #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include "../libmiqt/libmiqt.h" #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus class QCalendar; class QDate; class QDateTime; class QLocale; class QTime; #else typedef struct QCalendar QCalendar; typedef struct QDate QDate; typedef struct QDateTime QDateTime; typedef struct QLocale QLocale; typedef struct QTime QTime; #endif QLocale* QLocale_new(); QLocale* QLocale_new2(struct miqt_string name); QLocale* QLocale_new3(uint16_t language, uint16_t territory); QLocale* QLocale_new4(uint16_t language); QLocale* QLocale_new5(QLocale* other); QLocale* QLocale_new6(uint16_t language, uint16_t script); QLocale* QLocale_new7(uint16_t language, uint16_t script, uint16_t territory); void QLocale_OperatorAssign(QLocale* self, QLocale* other); void QLocale_Swap(QLocale* self, QLocale* other); uint16_t QLocale_Language(const QLocale* self); uint16_t QLocale_Script(const QLocale* self); uint16_t QLocale_Territory(const QLocale* self); uint16_t QLocale_Country(const QLocale* self); struct miqt_string QLocale_Name(const QLocale* self); struct miqt_string QLocale_Bcp47Name(const QLocale* self); struct miqt_string QLocale_NativeLanguageName(const QLocale* self); struct miqt_string QLocale_NativeTerritoryName(const QLocale* self); struct miqt_string QLocale_NativeCountryName(const QLocale* self); int16_t QLocale_ToShort(const QLocale* self, struct miqt_string s); uint16_t QLocale_ToUShort(const QLocale* self, struct miqt_string s); int QLocale_ToInt(const QLocale* self, struct miqt_string s); unsigned int QLocale_ToUInt(const QLocale* self, struct miqt_string s); long QLocale_ToLong(const QLocale* self, struct miqt_string s); unsigned long QLocale_ToULong(const QLocale* self, struct miqt_string s); long long QLocale_ToLongLong(const QLocale* self, struct miqt_string s); unsigned long long QLocale_ToULongLong(const QLocale* self, struct miqt_string s); float QLocale_ToFloat(const QLocale* self, struct miqt_string s); double QLocale_ToDouble(const QLocale* self, struct miqt_string s); struct miqt_string QLocale_ToString(const QLocale* self, long long i); struct miqt_string QLocale_ToStringWithQulonglong(const QLocale* self, unsigned long long i); struct miqt_string QLocale_ToStringWithLong(const QLocale* self, long i); struct miqt_string QLocale_ToStringWithUlong(const QLocale* self, unsigned long i); struct miqt_string QLocale_ToStringWithShort(const QLocale* self, int16_t i); struct miqt_string QLocale_ToStringWithUshort(const QLocale* self, uint16_t i); struct miqt_string QLocale_ToStringWithInt(const QLocale* self, int i); struct miqt_string QLocale_ToStringWithUint(const QLocale* self, unsigned int i); struct miqt_string QLocale_ToStringWithDouble(const QLocale* self, double f); struct miqt_string QLocale_ToStringWithFloat(const QLocale* self, float f); struct miqt_string QLocale_ToString2(const QLocale* self, QDate* date, struct miqt_string format); struct miqt_string QLocale_ToString3(const QLocale* self, QTime* time, struct miqt_string format); struct miqt_string QLocale_ToString4(const QLocale* self, QDateTime* dateTime, struct miqt_string format); struct miqt_string QLocale_ToStringWithDate(const QLocale* self, QDate* date); struct miqt_string QLocale_ToStringWithTime(const QLocale* self, QTime* time); struct miqt_string QLocale_ToStringWithDateTime(const QLocale* self, QDateTime* dateTime); struct miqt_string QLocale_ToString9(const QLocale* self, QDate* date, int format, QCalendar* cal); struct miqt_string QLocale_ToString10(const QLocale* self, QDateTime* dateTime, int format, QCalendar* cal); struct miqt_string QLocale_DateFormat(const QLocale* self); struct miqt_string QLocale_TimeFormat(const QLocale* self); struct miqt_string QLocale_DateTimeFormat(const QLocale* self); QDate* QLocale_ToDate(const QLocale* self, struct miqt_string stringVal); QTime* QLocale_ToTime(const QLocale* self, struct miqt_string stringVal); QDateTime* QLocale_ToDateTime(const QLocale* self, struct miqt_string stringVal); QDate* QLocale_ToDate2(const QLocale* self, struct miqt_string stringVal, struct miqt_string format); QTime* QLocale_ToTime2(const QLocale* self, struct miqt_string stringVal, struct miqt_string format); QDateTime* QLocale_ToDateTime2(const QLocale* self, struct miqt_string stringVal, struct miqt_string format); QDate* QLocale_ToDate3(const QLocale* self, struct miqt_string stringVal, int format, QCalendar* cal); QDateTime* QLocale_ToDateTime3(const QLocale* self, struct miqt_string stringVal, int format, QCalendar* cal); QDate* QLocale_ToDate4(const QLocale* self, struct miqt_string stringVal, struct miqt_string format, QCalendar* cal); QDateTime* QLocale_ToDateTime4(const QLocale* self, struct miqt_string stringVal, struct miqt_string format, QCalendar* cal); struct miqt_string QLocale_DecimalPoint(const QLocale* self); struct miqt_string QLocale_GroupSeparator(const QLocale* self); struct miqt_string QLocale_Percent(const QLocale* self); struct miqt_string QLocale_ZeroDigit(const QLocale* self); struct miqt_string QLocale_NegativeSign(const QLocale* self); struct miqt_string QLocale_PositiveSign(const QLocale* self); struct miqt_string QLocale_Exponential(const QLocale* self); struct miqt_string QLocale_MonthName(const QLocale* self, int param1); struct miqt_string QLocale_StandaloneMonthName(const QLocale* self, int param1); struct miqt_string QLocale_DayName(const QLocale* self, int param1); struct miqt_string QLocale_StandaloneDayName(const QLocale* self, int param1); int QLocale_FirstDayOfWeek(const QLocale* self); struct miqt_array /* of int */ QLocale_Weekdays(const QLocale* self); struct miqt_string QLocale_AmText(const QLocale* self); struct miqt_string QLocale_PmText(const QLocale* self); int QLocale_MeasurementSystem(const QLocale* self); QLocale* QLocale_Collation(const QLocale* self); int QLocale_TextDirection(const QLocale* self); struct miqt_string QLocale_ToUpper(const QLocale* self, struct miqt_string str); struct miqt_string QLocale_ToLower(const QLocale* self, struct miqt_string str); struct miqt_string QLocale_CurrencySymbol(const QLocale* self); struct miqt_string QLocale_ToCurrencyString(const QLocale* self, long long param1); struct miqt_string QLocale_ToCurrencyStringWithQulonglong(const QLocale* self, unsigned long long param1); struct miqt_string QLocale_ToCurrencyStringWithShort(const QLocale* self, int16_t i); struct miqt_string QLocale_ToCurrencyStringWithUshort(const QLocale* self, uint16_t i); struct miqt_string QLocale_ToCurrencyStringWithInt(const QLocale* self, int i); struct miqt_string QLocale_ToCurrencyStringWithUint(const QLocale* self, unsigned int i); struct miqt_string QLocale_ToCurrencyStringWithDouble(const QLocale* self, double param1); struct miqt_string QLocale_ToCurrencyStringWithFloat(const QLocale* self, float i); struct miqt_string QLocale_FormattedDataSize(const QLocale* self, long long bytes); struct miqt_array /* of struct miqt_string */ QLocale_UiLanguages(const QLocale* self); struct miqt_string QLocale_LanguageToCode(uint16_t language); struct miqt_string QLocale_TerritoryToCode(uint16_t territory); struct miqt_string QLocale_CountryToCode(uint16_t country); struct miqt_string QLocale_ScriptToCode(uint16_t script); struct miqt_string QLocale_LanguageToString(uint16_t language); struct miqt_string QLocale_TerritoryToString(uint16_t territory); struct miqt_string QLocale_CountryToString(uint16_t country); struct miqt_string QLocale_ScriptToString(uint16_t script); void QLocale_SetDefault(QLocale* locale); QLocale* QLocale_C(); QLocale* QLocale_System(); struct miqt_array /* of QLocale* */ QLocale_MatchingLocales(uint16_t language, uint16_t script, uint16_t territory); struct miqt_array /* of uint16_t */ QLocale_CountriesForLanguage(uint16_t lang); void QLocale_SetNumberOptions(QLocale* self, int options); int QLocale_NumberOptions(const QLocale* self); struct miqt_string QLocale_QuoteString(const QLocale* self, struct miqt_string str); struct miqt_string QLocale_CreateSeparatedList(const QLocale* self, struct miqt_array /* of struct miqt_string */ strl); int16_t QLocale_ToShort2(const QLocale* self, struct miqt_string s, bool* ok); uint16_t QLocale_ToUShort2(const QLocale* self, struct miqt_string s, bool* ok); int QLocale_ToInt2(const QLocale* self, struct miqt_string s, bool* ok); unsigned int QLocale_ToUInt2(const QLocale* self, struct miqt_string s, bool* ok); long QLocale_ToLong2(const QLocale* self, struct miqt_string s, bool* ok); unsigned long QLocale_ToULong2(const QLocale* self, struct miqt_string s, bool* ok); long long QLocale_ToLongLong2(const QLocale* self, struct miqt_string s, bool* ok); unsigned long long QLocale_ToULongLong2(const QLocale* self, struct miqt_string s, bool* ok); float QLocale_ToFloat2(const QLocale* self, struct miqt_string s, bool* ok); double QLocale_ToDouble2(const QLocale* self, struct miqt_string s, bool* ok); struct miqt_string QLocale_ToString22(const QLocale* self, double f, char format); struct miqt_string QLocale_ToString32(const QLocale* self, double f, char format, int precision); struct miqt_string QLocale_ToString23(const QLocale* self, float f, char format); struct miqt_string QLocale_ToString33(const QLocale* self, float f, char format, int precision); struct miqt_string QLocale_ToString24(const QLocale* self, QDate* date, int format); struct miqt_string QLocale_ToString25(const QLocale* self, QTime* time, int format); struct miqt_string QLocale_ToString26(const QLocale* self, QDateTime* dateTime, int format); struct miqt_string QLocale_DateFormat1(const QLocale* self, int format); struct miqt_string QLocale_TimeFormat1(const QLocale* self, int format); struct miqt_string QLocale_DateTimeFormat1(const QLocale* self, int format); QDate* QLocale_ToDate22(const QLocale* self, struct miqt_string stringVal, int param2); QTime* QLocale_ToTime22(const QLocale* self, struct miqt_string stringVal, int param2); QDateTime* QLocale_ToDateTime22(const QLocale* self, struct miqt_string stringVal, int format); struct miqt_string QLocale_MonthName2(const QLocale* self, int param1, int format); struct miqt_string QLocale_StandaloneMonthName2(const QLocale* self, int param1, int format); struct miqt_string QLocale_DayName2(const QLocale* self, int param1, int format); struct miqt_string QLocale_StandaloneDayName2(const QLocale* self, int param1, int format); struct miqt_string QLocale_CurrencySymbol1(const QLocale* self, int param1); struct miqt_string QLocale_ToCurrencyString2(const QLocale* self, long long param1, struct miqt_string symbol); struct miqt_string QLocale_ToCurrencyString22(const QLocale* self, unsigned long long param1, struct miqt_string symbol); struct miqt_string QLocale_ToCurrencyString23(const QLocale* self, int16_t i, struct miqt_string symbol); struct miqt_string QLocale_ToCurrencyString24(const QLocale* self, uint16_t i, struct miqt_string symbol); struct miqt_string QLocale_ToCurrencyString25(const QLocale* self, int i, struct miqt_string symbol); struct miqt_string QLocale_ToCurrencyString26(const QLocale* self, unsigned int i, struct miqt_string symbol); struct miqt_string QLocale_ToCurrencyString27(const QLocale* self, double param1, struct miqt_string symbol); struct miqt_string QLocale_ToCurrencyString3(const QLocale* self, double param1, struct miqt_string symbol, int precision); struct miqt_string QLocale_ToCurrencyString28(const QLocale* self, float i, struct miqt_string symbol); struct miqt_string QLocale_ToCurrencyString32(const QLocale* self, float i, struct miqt_string symbol, int precision); struct miqt_string QLocale_FormattedDataSize2(const QLocale* self, long long bytes, int precision); struct miqt_string QLocale_FormattedDataSize3(const QLocale* self, long long bytes, int precision, int format); struct miqt_string QLocale_LanguageToCode2(uint16_t language, int codeTypes); struct miqt_string QLocale_QuoteString2(const QLocale* self, struct miqt_string str, int style); void QLocale_Delete(QLocale* self); #ifdef __cplusplus } /* extern C */ #endif #endif