7#include <QtCore/qvariant.h>
8#include <QtCore/qstring.h>
9#include <QtCore/qobjectdefs.h>
10#include <QtCore/qshareddata.h>
52 AmericanSignLanguage = 10,
92 CentralAtlasTamazight = 50,
186 KoyraboroSenni = 144,
201 LiteraryChinese = 159,
245 NigerianPidgin = 203,
251 NorwegianBokmal = 209,
252 NorwegianNynorsk = 210,
308 SouthernKurdish = 266,
313 StandardMoroccanTamazight = 271,
335 TokelauLanguage = 293,
342 TuvaluLanguage = 300,
359 WesternBalochi = 317,
360 WesternFrisian = 318,
373 NorthernFrisian = 331,
383 Byelorussian = Belarusian,
385 CentralMoroccoTamazight = CentralAtlasTamazight,
387 Frisian = WesternFrisian,
388 Greenlandic = Kalaallisut,
395 RhaetoRomance = Romansh,
407 AnatolianHieroglyphsScript = 3,
416 BhaiksukiScript = 12,
422 CanadianAboriginalScript = 18,
424 CaucasianAlbanianScript = 20,
429 CuneiformScript = 25,
433 DevanagariScript = 29,
435 EgyptianHieroglyphsScript = 31,
440 GlagoliticScript = 36,
449 HanWithBopomofoScript = 45,
453 ImperialAramaicScript = 49,
454 InscriptionalPahlaviScript = 50,
455 InscriptionalParthianScript = 51,
463 KharoshthiScript = 59,
466 KhudawadiScript = 62,
478 MalayalamScript = 74,
480 ManichaeanScript = 76,
482 MeiteiMayekScript = 78,
484 MeroiticCursiveScript = 80,
487 MongolianScript = 83,
491 NabataeanScript = 87,
493 NewTaiLueScript = 89,
498 OldHungarianScript = 94,
499 OldItalicScript = 95,
500 OldNorthArabianScript = 96,
501 OldPermicScript = 97,
502 OldPersianScript = 98,
503 OldSouthArabianScript = 99,
507 PahawhHmongScript = 103,
508 PalmyreneScript = 104,
509 PauCinHauScript = 105,
511 PhoenicianScript = 107,
512 PollardPhoneticScript = 108,
513 PsalterPahlaviScript = 109,
516 SamaritanScript = 112,
517 SaurashtraScript = 113,
521 SignWritingScript = 117,
522 SimplifiedHanScript = 118,
524 SoraSompengScript = 120,
525 SundaneseScript = 121,
526 SylotiNagriScript = 122,
529 TagbanwaScript = 125,
539 TifinaghScript = 135,
541 TraditionalHanScript = 137,
542 UgariticScript = 138,
544 VarangKshitiScript = 140,
547 BengaliScript = BanglaScript,
548 MendeKikakuiScript = MendeScript,
549 OriyaScript = OdiaScript,
550 SimplifiedChineseScript = SimplifiedHanScript,
551 TraditionalChineseScript = TraditionalHanScript,
553 LastScript = YiScript
568 AntiguaAndBarbuda = 10,
572 AscensionIsland = 14,
587 BosniaAndHerzegovina = 29,
591 BritishIndianOceanTerritory = 33,
592 BritishVirginIslands = 34,
602 CaribbeanNetherlands = 44,
604 CentralAfricanRepublic = 46,
605 CeutaAndMelilla = 47,
609 ChristmasIsland = 51,
610 ClippertonIsland = 52,
614 CongoBrazzaville = 56,
627 DominicanRepublic = 69,
631 EquatorialGuinea = 73,
638 FalklandIslands = 80,
644 FrenchPolynesia = 86,
645 FrenchSouthernTerritories = 87,
663 HeardAndMcDonaldIslands = 105,
705 MarshallIslands = 147,
721 NauruTerritory = 163,
731 NorthernMarianaIslands = 173,
735 OutlyingOceania = 177,
738 PalestinianTerritories = 180,
740 PapuaNewGuinea = 182,
753 SaintBarthelemy = 195,
755 SaintKittsAndNevis = 197,
758 SaintPierreAndMiquelon = 200,
759 SaintVincentAndGrenadines = 201,
762 SaoTomeAndPrincipe = 204,
772 SolomonIslands = 214,
775 SouthGeorgiaAndSouthSandwichIslands = 217,
782 SvalbardAndJanMayen = 224,
792 TokelauTerritory = 234,
794 TrinidadAndTobago = 236,
795 TristanDaCunha = 237,
799 TurksAndCaicosIslands = 241,
800 TuvaluTerritory = 242,
803 UnitedArabEmirates = 245,
805 UnitedStatesOutlyingIslands = 247,
807 UnitedStatesVirginIslands = 249,
814 WallisAndFutuna = 256,
821 AnyCountry = AnyTerritory,
822 Bonaire = CaribbeanNetherlands,
823 BosniaAndHerzegowina = BosniaAndHerzegovina,
825 CzechRepublic = Czechia,
826 DemocraticRepublicOfCongo = CongoKinshasa,
827 DemocraticRepublicOfKorea = NorthKorea,
828 EastTimor = TimorLeste,
829 LatinAmericaAndTheCaribbean = LatinAmerica,
831 NauruCountry = NauruTerritory,
832 PeoplesRepublicOfCongo = CongoBrazzaville,
833 RepublicOfKorea = SouthKorea,
834 RussianFederation = Russia,
835 SaintVincentAndTheGrenadines = SaintVincentAndGrenadines,
836 SouthGeorgiaAndTheSouthSandwichIslands = SouthGeorgiaAndSouthSandwichIslands,
837 SvalbardAndJanMayenIslands = SvalbardAndJanMayen,
838 Swaziland = Eswatini,
839 SyrianArabRepublic = Syria,
840 TokelauCountry = TokelauTerritory,
841 TuvaluCountry = TuvaluTerritory,
842 UnitedStatesMinorOutlyingIslands = UnitedStatesOutlyingIslands,
843 VaticanCityState = VaticanCity,
844 WallisAndFutunaIslands = WallisAndFutuna,
846 LastTerritory = Zimbabwe,
847 LastCountry = LastTerritory
861 ImperialSystem = ImperialUSSystem
868 DefaultNumberOptions = 0x0,
869 OmitGroupSeparator = 0x01,
870 RejectGroupSeparator = 0x02,
871 OmitLeadingZeroInExponent = 0x04,
872 RejectLeadingZeroInExponent = 0x08,
873 IncludeTrailingZeroesAfterDot = 0x10,
874 RejectTrailingZeroesAfterDot = 0x20
880 FloatingPointShortest = -128
891 DataSizeBase1000 = 1,
892 DataSizeSIQuantifiers = 2,
895 DataSizeIecFormat = 0,
896 DataSizeTraditionalFormat = DataSizeSIQuantifiers,
897 DataSizeSIFormat = DataSizeBase1000 | DataSizeSIQuantifiers
903 QT_CORE_INLINE_SINCE(6, 4)
909 QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(
QLocale)
916 Script script()
const;
917 Territory territory()
const;
918#if QT_DEPRECATED_SINCE(6, 6)
920 Country country() const;
925 QString nativeLanguageName()
const;
926 QString nativeTerritoryName()
const;
927#if QT_DEPRECATED_SINCE(6, 6)
929 QString nativeCountryName() const;
999 QString dateTimeFormat(FormatType
format = LongFormat)
const;
1000#if QT_CONFIG(datestring)
1015 QString groupSeparator()
const;
1022 QString monthName(
int, FormatType
format = LongFormat)
const;
1023 QString standaloneMonthName(
int, FormatType
format = LongFormat)
const;
1025 QString standaloneDayName(
int, FormatType
format = LongFormat)
const;
1033 MeasurementSystem measurementSystem()
const;
1040 QString currencySymbol(CurrencySymbolFormat = CurrencySymbol)
const;
1044 {
return toCurrencyString(
qlonglong(
i), symbol); }
1046 {
return toCurrencyString(
qulonglong(
i), symbol); }
1048 {
return toCurrencyString(
qlonglong(
i), symbol); }
1050 {
return toCurrencyString(
qulonglong(
i), symbol); }
1053 {
return toCurrencyString(
double(
i), symbol,
precision); }
1060 ISO639Part1 = 1 << 0,
1061 ISO639Part2B = 1 << 1,
1062 ISO639Part2T = 1 << 2,
1063 ISO639Part3 = 1 << 3,
1064 LegacyLanguageCode = 1 << 15,
1066 ISO639Part2 = ISO639Part2B | ISO639Part2T,
1067 ISO639Alpha2 = ISO639Part1,
1068 ISO639Alpha3 = ISO639Part2 | ISO639Part3,
1069 ISO639 = ISO639Alpha2 | ISO639Alpha3,
1071 AnyLanguageCode = -1
1074 Q_FLAG(LanguageCodeTypes)
1076#if QT_CORE_REMOVED_SINCE(6, 3)
1082 LanguageCodeTypes codeTypes = AnyLanguageCode)
noexcept;
1083 static QString territoryToCode(Territory territory);
1084 static Territory codeToTerritory(
QStringView territoryCode)
noexcept;
1085#if QT_DEPRECATED_SINCE(6, 6)
1087 static
QString countryToCode(Country country);
1089 static Country codeToCountry(
QStringView countryCode) noexcept;
1091 static QString scriptToCode(Script script);
1092 static Script codeToScript(
QStringView scriptCode)
noexcept;
1095 static QString territoryToString(Territory territory);
1096#if QT_DEPRECATED_SINCE(6, 6)
1098 static
QString countryToString(Country country);
1100 static QString scriptToString(Script script);
1108#if QT_DEPRECATED_SINCE(6, 6)
1113 void setNumberOptions(NumberOptions options);
1114 NumberOptions numberOptions()
const;
1141#if QT_CORE_INLINE_IMPL_SINCE(6, 4)
1146#ifndef QT_NO_DATASTREAM
1151#ifndef QT_NO_DEBUG_STREAM
The QCalendarBackend class provides basic calendaring functions.
The QCalendar class describes calendar systems.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\inmodule QtCore \reentrant
The QGregorianCalendar class implements the Gregorian calendar.
The QIntValidator class provides a validator that ensures a string contains a valid integer within a ...
QString quoteString(const QString &str, QuotationStyle style=StandardQuotation) const
QString toString(ulong i) const
double toDouble(const QString &s, bool *ok=nullptr) const
Returns the double represented by the localized string s.
QString toCurrencyString(ushort i, const QString &symbol=QString()) const
float toFloat(const QString &s, bool *ok=nullptr) const
Returns the float represented by the localized string s.
uint toUInt(const QString &s, bool *ok=nullptr) const
Returns the unsigned int represented by the localized string s.
QString toString(uint i) const
long toLong(const QString &s, bool *ok=nullptr) const
FloatingPointPrecisionOption
QString toString(long i) const
QString toString(float f, char format='g', int precision=6) const
QString toString(int i) const
friend bool operator==(const QLocale &lhs, const QLocale &rhs)
friend bool operator!=(const QLocale &lhs, const QLocale &rhs)
int toInt(const QString &s, bool *ok=nullptr) const
Returns the int represented by the localized string s.
static QLocale c()
Returns a QLocale object initialized to the "C" locale.
qulonglong toULongLong(const QString &s, bool *ok=nullptr) const
Returns the unsigned long long int represented by the localized string s.
ulong toULong(const QString &s, bool *ok=nullptr) const
short toShort(const QString &s, bool *ok=nullptr) const
Returns the short int represented by the localized string s.
qlonglong toLongLong(const QString &s, bool *ok=nullptr) const
Returns the long long int represented by the localized string s.
QLocale()
Constructs a QLocale object initialized with the default locale.
ushort toUShort(const QString &s, bool *ok=nullptr) const
Returns the unsigned short int represented by the localized string s.
QString toCurrencyString(float i, const QString &symbol=QString(), int precision=-1) const
QString toString(const QDateTime &dateTime, const QString &format) const
QString toString(ushort i) const
QString toCurrencyString(uint i, const QString &symbol=QString()) const
QString toCurrencyString(int i, const QString &symbol=QString()) const
QString toCurrencyString(short i, const QString &symbol=QString()) const
QString toString(short i) const
\macro QT_RESTRICTED_CAST_FROM_ASCII
\inmodule QtCore \reentrant
Combined button and popup list for selecting options.
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
Q_CORE_EXPORT size_t qHash(const QLocale &key, size_t seed=0) noexcept
Q_CORE_EXPORT QDataStream & operator>>(QDataStream &, QLocale &)
Q_CORE_EXPORT QDataStream & operator<<(QDataStream &, const QLocale &)
static QLocale::Language codeToLanguage(QStringView s)
GLint GLsizei GLsizei GLenum format
GLenum GLint GLint * precision
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
static ISC_DATE toDate(QDate t)
static ISC_TIME toTime(QTime t)
QStringView qToStringViewIgnoringNull(const QStringLike &s) noexcept
#define QT_DEPRECATED_VERSION_X_6_6(text)
static int toInt(const QChar &qc, int R)
static double toDouble(Value v)
char * toString(const MyType &t)
[31]