43 #include <QtCore/qvariant.h>
44 #include <QtCore/qstring.h>
45 #include <QtCore/qobjectdefs.h>
46 #include <QtCore/qshareddata.h>
88 AmericanSignLanguage = 10,
128 CentralAtlasTamazight = 50,
222 KoyraboroSenni = 144,
237 LiteraryChinese = 159,
281 NigerianPidgin = 203,
287 NorwegianBokmal = 209,
288 NorwegianNynorsk = 210,
344 SouthernKurdish = 266,
349 StandardMoroccanTamazight = 271,
371 TokelauLanguage = 293,
378 TuvaluLanguage = 300,
395 WesternBalochi = 317,
396 WesternFrisian = 318,
412 Byelorussian = Belarusian,
414 CentralMoroccoTamazight = CentralAtlasTamazight,
416 Frisian = WesternFrisian,
417 Greenlandic = Kalaallisut,
424 RhaetoRomance = Romansh,
429 LastLanguage = Nheengatu
436 AnatolianHieroglyphsScript = 3,
445 BhaiksukiScript = 12,
451 CanadianAboriginalScript = 18,
453 CaucasianAlbanianScript = 20,
458 CuneiformScript = 25,
462 DevanagariScript = 29,
464 EgyptianHieroglyphsScript = 31,
469 GlagoliticScript = 36,
478 HanWithBopomofoScript = 45,
482 ImperialAramaicScript = 49,
483 InscriptionalPahlaviScript = 50,
484 InscriptionalParthianScript = 51,
492 KharoshthiScript = 59,
495 KhudawadiScript = 62,
507 MalayalamScript = 74,
509 ManichaeanScript = 76,
511 MeiteiMayekScript = 78,
513 MeroiticCursiveScript = 80,
516 MongolianScript = 83,
520 NabataeanScript = 87,
522 NewTaiLueScript = 89,
527 OldHungarianScript = 94,
528 OldItalicScript = 95,
529 OldNorthArabianScript = 96,
530 OldPermicScript = 97,
531 OldPersianScript = 98,
532 OldSouthArabianScript = 99,
536 PahawhHmongScript = 103,
537 PalmyreneScript = 104,
538 PauCinHauScript = 105,
540 PhoenicianScript = 107,
541 PollardPhoneticScript = 108,
542 PsalterPahlaviScript = 109,
545 SamaritanScript = 112,
546 SaurashtraScript = 113,
550 SignWritingScript = 117,
551 SimplifiedHanScript = 118,
553 SoraSompengScript = 120,
554 SundaneseScript = 121,
555 SylotiNagriScript = 122,
558 TagbanwaScript = 125,
568 TifinaghScript = 135,
570 TraditionalHanScript = 137,
571 UgariticScript = 138,
573 VarangKshitiScript = 140,
576 BengaliScript = BanglaScript,
577 MendeKikakuiScript = MendeScript,
578 OriyaScript = OdiaScript,
579 SimplifiedChineseScript = SimplifiedHanScript,
580 TraditionalChineseScript = TraditionalHanScript,
582 LastScript = YiScript
597 AntiguaAndBarbuda = 10,
601 AscensionIsland = 14,
616 BosniaAndHerzegovina = 29,
620 BritishIndianOceanTerritory = 33,
621 BritishVirginIslands = 34,
631 CaribbeanNetherlands = 44,
633 CentralAfricanRepublic = 46,
634 CeutaAndMelilla = 47,
638 ChristmasIsland = 51,
639 ClippertonIsland = 52,
643 CongoBrazzaville = 56,
656 DominicanRepublic = 69,
660 EquatorialGuinea = 73,
667 FalklandIslands = 80,
673 FrenchPolynesia = 86,
674 FrenchSouthernTerritories = 87,
692 HeardAndMcDonaldIslands = 105,
734 MarshallIslands = 147,
750 NauruTerritory = 163,
760 NorthernMarianaIslands = 173,
764 OutlyingOceania = 177,
767 PalestinianTerritories = 180,
769 PapuaNewGuinea = 182,
782 SaintBarthelemy = 195,
784 SaintKittsAndNevis = 197,
787 SaintPierreAndMiquelon = 200,
788 SaintVincentAndGrenadines = 201,
791 SaoTomeAndPrincipe = 204,
801 SolomonIslands = 214,
804 SouthGeorgiaAndSouthSandwichIslands = 217,
811 SvalbardAndJanMayen = 224,
821 TokelauTerritory = 234,
823 TrinidadAndTobago = 236,
824 TristanDaCunha = 237,
828 TurksAndCaicosIslands = 241,
829 TuvaluTerritory = 242,
832 UnitedArabEmirates = 245,
834 UnitedStatesOutlyingIslands = 247,
836 UnitedStatesVirginIslands = 249,
843 WallisAndFutuna = 256,
850 AnyCountry = AnyTerritory,
851 Bonaire = CaribbeanNetherlands,
852 BosniaAndHerzegowina = BosniaAndHerzegovina,
854 CzechRepublic = Czechia,
855 DemocraticRepublicOfCongo = CongoKinshasa,
856 DemocraticRepublicOfKorea = NorthKorea,
857 EastTimor = TimorLeste,
858 LatinAmericaAndTheCaribbean = LatinAmerica,
860 NauruCountry = NauruTerritory,
861 PeoplesRepublicOfCongo = CongoBrazzaville,
862 RepublicOfKorea = SouthKorea,
863 RussianFederation = Russia,
864 SaintVincentAndTheGrenadines = SaintVincentAndGrenadines,
865 SouthGeorgiaAndTheSouthSandwichIslands = SouthGeorgiaAndSouthSandwichIslands,
866 SvalbardAndJanMayenIslands = SvalbardAndJanMayen,
867 Swaziland = Eswatini,
868 SyrianArabRepublic = Syria,
869 TokelauCountry = TokelauTerritory,
870 TuvaluCountry = TuvaluTerritory,
871 UnitedStatesMinorOutlyingIslands = UnitedStatesOutlyingIslands,
872 VaticanCityState = VaticanCity,
873 WallisAndFutunaIslands = WallisAndFutuna,
875 LastTerritory = Zimbabwe,
876 LastCountry = LastTerritory
890 ImperialSystem = ImperialUSSystem
896 DefaultNumberOptions = 0x0,
897 OmitGroupSeparator = 0x01,
898 RejectGroupSeparator = 0x02,
899 OmitLeadingZeroInExponent = 0x04,
900 RejectLeadingZeroInExponent = 0x08,
901 IncludeTrailingZeroesAfterDot = 0x10,
902 RejectTrailingZeroesAfterDot = 0x20
907 FloatingPointShortest = -128
918 DataSizeBase1000 = 1,
919 DataSizeSIQuantifiers = 2,
922 DataSizeIecFormat = 0,
923 DataSizeTraditionalFormat = DataSizeSIQuantifiers,
924 DataSizeSIFormat = DataSizeBase1000 | DataSizeSIQuantifiers
930 #if QT_STRINGVIEW_LEVEL < 2
945 Territory territory()
const;
946 #if QT_DEPRECATED_SINCE(6, 6)
948 Country country()
const;
953 QString nativeLanguageName()
const;
954 QString nativeTerritoryName()
const;
955 #if QT_DEPRECATED_SINCE(6, 6)
960 #if QT_STRINGVIEW_LEVEL < 2
1006 #if QT_STRINGVIEW_LEVEL < 2
1031 QString dateTimeFormat(FormatType
format = LongFormat)
const;
1032 #if QT_CONFIG(datestring)
1033 QDate toDate(
const QString &
string, FormatType = LongFormat)
const;
1034 QTime toTime(
const QString &
string, FormatType = LongFormat)
const;
1047 QString groupSeparator()
const;
1054 QString monthName(
int, FormatType
format = LongFormat)
const;
1055 QString standaloneMonthName(
int, FormatType
format = LongFormat)
const;
1057 QString standaloneDayName(
int, FormatType
format = LongFormat)
const;
1065 MeasurementSystem measurementSystem()
const;
1072 QString currencySymbol(CurrencySymbolFormat = CurrencySymbol)
const;
1076 {
return toCurrencyString(
qlonglong(
i), symbol); }
1078 {
return toCurrencyString(
qulonglong(
i), symbol); }
1080 {
return toCurrencyString(
qlonglong(
i), symbol); }
1082 {
return toCurrencyString(
qulonglong(
i), symbol); }
1085 {
return toCurrencyString(
double(
i), symbol,
precision); }
1092 ISO639Part1 = 1 << 0,
1093 ISO639Part2B = 1 << 1,
1094 ISO639Part2T = 1 << 2,
1095 ISO639Part3 = 1 << 3,
1096 LegacyLanguageCode = 1 << 15,
1098 ISO639Part2 = ISO639Part2B | ISO639Part2T,
1099 ISO639Alpha2 = ISO639Part1,
1100 ISO639Alpha3 = ISO639Part2 | ISO639Part3,
1101 ISO639 = ISO639Alpha2 | ISO639Alpha3,
1103 AnyLanguageCode = -1
1107 #if QT_CORE_REMOVED_SINCE(6, 3)
1113 LanguageCodeTypes codeTypes = AnyLanguageCode) noexcept;
1114 static QString territoryToCode(Territory territory);
1115 static Territory codeToTerritory(
QStringView territoryCode) noexcept;
1116 #if QT_DEPRECATED_SINCE(6, 6)
1118 static
QString countryToCode(Country country);
1120 static Country codeToCountry(
QStringView countryCode) noexcept;
1123 static Script codeToScript(
QStringView scriptCode) noexcept;
1126 static QString territoryToString(Territory territory);
1127 #if QT_DEPRECATED_SINCE(6, 6)
1129 static
QString countryToString(Country country);
1139 #if QT_DEPRECATED_SINCE(6, 6)
1144 void setNumberOptions(NumberOptions options);
1145 NumberOptions numberOptions()
const;
1161 friend Q_CORE_EXPORT
size_t qHash(
const QLocale &
key,
size_t seed) noexcept;
1172 #ifndef QT_NO_DATASTREAM
1177 #ifndef QT_NO_DEBUG_STREAM
small capitals from c petite p scientific i
[1]
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A xE0 xA7 xA6 xE0 xA7 xAA xF0 x91 x84 xA4 xF0 x91 x84 x89 xF0 x91 x84 x9B xF0 x90 x8A xAB xF0 x90 x8B x89 xE2 xB2 x9E xE2 xB2 x9F xD0 xBE xD0 x9E xF0 x90 x90 x84 xF0 x90 x90 xAC xE1 x83 x98 xE1 x83 x94 xE1 x83 x90 xE1 xB2 xBF xE2 xB0 x95 xE2 xB1 x85 xCE xBF xCE x9F xE0 xA8 xA0 xE0 xA8 xB0 xE0 xA9 xA6 Kayah xEA xA4 x8D xEA xA4 x80 Khmer xE1 xA7 xA1 xE1 xA7 xAA xE0 xBB x90 Latin Subscript xE2 x82 x92 xE2 x82 x80 xEA x93 xB3 xF0 x96 xB9 xA1 xF0 x96 xB9 x9B xF0 x96 xB9 xAF xE1 x80 x9D xE1 x80 x84 xE1 x80 x82 no Old xF0 x90 xB0 x97 xF0 x90 x92 x86 xF0 x90 x92 xA0 Saurashtra
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A xE0 xA7 xA6 xE0 xA7 xAA xF0 x91 x84 xA4 xF0 x91 x84 x89 xF0 x91 x84 x9B xF0 x90 x8A xAB xF0 x90 x8B x89 xE2 xB2 x9E xE2 xB2 x9F xD0 xBE xD0 x9E xF0 x90 x90 x84 xF0 x90 x90 xAC xE1 x83 x98 xE1 x83 x94 xE1 x83 x90 xE1 xB2 xBF xE2 xB0 x95 xE2 xB1 x85 xCE xBF xCE x9F xE0 xA8 xA0 xE0 xA8 xB0 xE0 xA9 xA6 Kayah xEA xA4 x8D xEA xA4 x80 Khmer xE1 xA7 xA1 xE1 xA7 xAA Lao
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A xE0 xA7 xA6 xE0 xA7 xAA xF0 x91 x84 xA4 xF0 x91 x84 x89 xF0 x91 x84 x9B xF0 x90 x8A xAB xF0 x90 x8B x89 xE2 xB2 x9E xE2 xB2 x9F xD0 xBE xD0 x9E xF0 x90 x90 x84 xF0 x90 x90 xAC xE1 x83 x98 xE1 x83 x94 xE1 x83 x90 xE1 xB2 xBF xE2 xB0 x95 xE2 xB1 x85 xCE xBF xCE x9F xE0 xA8 xA0 xE0 xA8 xB0 xE0 xA9 xA6 Kayah xEA xA4 x8D xEA xA4 x80 Khmer xE1 xA7 xA1 xE1 xA7 xAA xE0 xBB x90 Latin Subscript xE2 x82 x92 xE2 x82 x80 xEA x93 xB3 xF0 x96 xB9 xA1 xF0 x96 xB9 x9B xF0 x96 xB9 xAF xE1 x80 x9D xE1 x80 x84 xE1 x80 x82 no script
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A xE0 xA7 xA6 xE0 xA7 xAA xF0 x91 x84 xA4 xF0 x91 x84 x89 xF0 x91 x84 x9B xF0 x90 x8A xAB xF0 x90 x8B x89 xE2 xB2 x9E xE2 xB2 x9F xD0 xBE xD0 x9E xF0 x90 x90 x84 xF0 x90 x90 xAC xE1 x83 x98 xE1 x83 x94 xE1 x83 x90 xE1 xB2 xBF xE2 xB0 x95 xE2 xB1 x85 Greek
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A xE0 xA7 xA6 xE0 xA7 xAA xF0 x91 x84 xA4 xF0 x91 x84 x89 xF0 x91 x84 x9B xF0 x90 x8A xAB xF0 x90 x8B x89 xE2 xB2 x9E xE2 xB2 x9F xD0 xBE xD0 x9E xF0 x90 x90 x84 xF0 x90 x90 xAC Georgian(Mkhedruli)"
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A xE0 xA7 xA6 xE0 xA7 xAA xF0 x91 x84 xA4 xF0 x91 x84 x89 xF0 x91 x84 x9B xF0 x90 x8A xAB xF0 x90 x8B x89 Coptic
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A xE0 xA7 xA6 xE0 xA7 xAA Chakma
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A xE0 xA7 xA6 xE0 xA7 xAA xF0 x91 x84 xA4 xF0 x91 x84 x89 xF0 x91 x84 x9B xF0 x90 x8A xAB xF0 x90 x8B x89 xE2 xB2 x9E xE2 xB2 x9F xD0 xBE xD0 x9E xF0 x90 x90 x84 xF0 x90 x90 xAC xE1 x83 x98 xE1 x83 x94 xE1 x83 x90 xE1 xB2 xBF xE2 xB0 x95 xE2 xB1 x85 xCE xBF xCE x9F xE0 xA8 xA0 xE0 xA8 xB0 xE0 xA9 xA6 Kayah xEA xA4 x8D xEA xA4 x80 Khmer xE1 xA7 xA1 xE1 xA7 xAA xE0 xBB x90 Latin Subscript xE2 x82 x92 xE2 x82 x80 xEA x93 xB3 xF0 x96 xB9 xA1 xF0 x96 xB9 x9B xF0 x96 xB9 xAF xE1 x80 x9D xE1 x80 x84 xE1 x80 x82 no Old xF0 x90 xB0 x97 xF0 x90 x92 x86 xF0 x90 x92 xA0 xEA xA2 x9D xEA xA3 x90 xE0 xB6 xA7 Tamil
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A Bengali
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A xE0 xA7 xA6 xE0 xA7 xAA xF0 x91 x84 xA4 xF0 x91 x84 x89 xF0 x91 x84 x9B xF0 x90 x8A xAB xF0 x90 x8B x89 xE2 xB2 x9E xE2 xB2 x9F xD0 xBE xD0 x9E xF0 x90 x90 x84 xF0 x90 x90 xAC xE1 x83 x98 xE1 x83 x94 xE1 x83 x90 xE1 xB2 xBF xE2 xB0 x95 xE2 xB1 x85 xCE xBF xCE x9F xE0 xA8 xA0 xE0 xA8 xB0 xE0 xA9 xA6 Kayah xEA xA4 x8D xEA xA4 x80 Khmer xE1 xA7 xA1 xE1 xA7 xAA xE0 xBB x90 Latin Subscript xE2 x82 x92 xE2 x82 x80 xEA x93 xB3 xF0 x96 xB9 xA1 xF0 x96 xB9 x9B xF0 x96 xB9 xAF Myanmar
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A xE0 xA7 xA6 xE0 xA7 xAA xF0 x91 x84 xA4 xF0 x91 x84 x89 xF0 x91 x84 x9B xF0 x90 x8A xAB xF0 x90 x8B x89 xE2 xB2 x9E xE2 xB2 x9F xD0 xBE xD0 x9E xF0 x90 x90 x84 xF0 x90 x90 xAC xE1 x83 x98 xE1 x83 x94 xE1 x83 x90 xE1 xB2 xBF xE2 xB0 x95 xE2 xB1 x85 xCE xBF xCE x9F xE0 xA8 xA0 xE0 xA8 xB0 xE0 xA9 xA6 Kayah xEA xA4 x8D xEA xA4 x80 Khmer xE1 xA7 xA1 xE1 xA7 xAA xE0 xBB x90 Latin Subscript xE2 x82 x92 xE2 x82 x80 xEA x93 xB3 xF0 x96 xB9 xA1 xF0 x96 xB9 x9B xF0 x96 xB9 xAF xE1 x80 x9D xE1 x80 x84 xE1 x80 x82 no Old xF0 x90 xB0 x97 xF0 x90 x92 x86 xF0 x90 x92 xA0 xEA xA2 x9D xEA xA3 x90 xE0 xB6 xA7 xE0 xAF xA6 Telugu
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A xE0 xA7 xA6 xE0 xA7 xAA xF0 x91 x84 xA4 xF0 x91 x84 x89 xF0 x91 x84 x9B xF0 x90 x8A xAB xF0 x90 x8B x89 xE2 xB2 x9E xE2 xB2 x9F xD0 xBE xD0 x9E xF0 x90 x90 x84 xF0 x90 x90 xAC xE1 x83 x98 xE1 x83 x94 xE1 x83 x90 xE1 xB2 xBF xE2 xB0 x95 xE2 xB1 x85 xCE xBF xCE x9F xE0 xA8 xA0 xE0 xA8 xB0 xE0 xA9 xA6 Kayah xEA xA4 x8D xEA xA4 x80 Khmer xE1 xA7 xA1 xE1 xA7 xAA xE0 xBB x90 Latin Subscript xE2 x82 x92 xE2 x82 x80 xEA x93 xB3 xF0 x96 xB9 xA1 xF0 x96 xB9 x9B xF0 x96 xB9 xAF xE1 x80 x9D xE1 x80 x84 xE1 x80 x82 no Old xF0 x90 xB0 x97 xF0 x90 x92 x86 xF0 x90 x92 xA0 xEA xA2 x9D xEA xA3 x90 Sinhala
xD9 x84 xD8 xAD xD9 x80 xF0 x90 xAC x9A xE0 xA7 xA6 xE0 xA7 xAA xF0 x91 x84 xA4 xF0 x91 x84 x89 xF0 x91 x84 x9B xF0 x90 x8A xAB xF0 x90 x8B x89 xE2 xB2 x9E xE2 xB2 x9F xD0 xBE xD0 x9E xF0 x90 x90 x84 xF0 x90 x90 xAC xE1 x83 x98 xE1 x83 x94 xE1 x83 x90 xE1 xB2 xBF xE2 xB0 x95 xE2 xB1 x85 xCE xBF xCE x9F xE0 xA8 xA0 xE0 xA8 xB0 xE0 xA9 xA6 Kayah xEA xA4 x8D xEA xA4 x80 Khmer xE1 xA7 xA1 xE1 xA7 xAA xE0 xBB x90 Latin Subscript xE2 x82 x92 xE2 x82 x80 xEA x93 xB3 xF0 x96 xB9 xA1 xF0 x96 xB9 x9B xF0 x96 xB9 xAF xE1 x80 x9D xE1 x80 x84 xE1 x80 x82 no Old xF0 x90 xB0 x97 xF0 x90 x92 x86 xF0 x90 x92 xA0 xEA xA2 x9D xEA xA3 x90 xE0 xB6 xA7 xE0 xAF xA6 xE0 xB1 xA6 xE0 xB1 xA7 Thai
xD9 x84 xD8 xAD xD9 x80 Avestan
The QByteArray class provides an array of bytes.
The QCalendar class describes calendar systems.
The QDataStream class provides serialization of binary data to a QIODevice.
operator>>(QDataStream &ds, qfloat16 &f)
operator<<(QDataStream &ds, qfloat16 f)
The QDate class provides date functions.
The QDateTime class provides date and time functions.
The QDebug class provides an output stream for debugging information.
template< typename Enum > size_t qHash(QFlags< Enum > flags, size_t seed=0) noexcept
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
QString toCurrencyString(ushort i, const QString &symbol=QString()) const
float toFloat(const QString &s, bool *ok=nullptr) const
uint toUInt(const QString &s, bool *ok=nullptr) const
QString toString(uint i) const
long toLong(const QString &s, bool *ok=nullptr) const
void swap(QLocale &other) noexcept
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
qulonglong toULongLong(const QString &s, bool *ok=nullptr) const
ulong toULong(const QString &s, bool *ok=nullptr) const
short toShort(const QString &s, bool *ok=nullptr) const
qlonglong toLongLong(const QString &s, bool *ok=nullptr) const
ushort toUShort(const QString &s, bool *ok=nullptr) const
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
The QString class provides a Unicode character string.
The QStringList class provides a list of strings.
The QStringView class provides a unified view on UTF-16 strings with a read-only subset of the QStrin...
The QTextStream class provides a convenient interface for reading and writing text.
The QTime class provides clock time functions.
The QVariant class acts like a union for the most common Qt data types.
auto it unsigned count const
std::string toLower(std::string const &s)
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION ParsedNumber< float > toFloat(QByteArrayView a) noexcept
Q_CORE_EXPORT Q_DECL_PURE_FUNCTION ParsedNumber< double > toDouble(QByteArrayView a) noexcept
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
#define QT_DEPRECATED_VERSION_X_6_6(text)
#define QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(Class)
GLint GLsizei GLsizei GLenum format
GLenum GLint GLint * precision
QStringView qToStringViewIgnoringNull(const QStringLike &s) noexcept
#define Q_DECLARE_SHARED(TYPE)