45 #include <QtCore/qvariant.h> 46 #include <QtCore/qstring.h> 47 #include <QtCore/qobjectdefs.h> 65 #ifndef QT_NO_SYSTEMLOCALE 76 : value(v), symbol(s) { }
121 StandaloneMonthNameShort
124 virtual QLocale fallbackLocale()
const;
361 CentralMoroccoTamazight = 212,
362 KoyraboroSenni = 213,
384 NorwegianBokmal = Norwegian,
385 NorwegianNynorsk = Nynorsk,
387 LastLanguage = Yangben
396 SimplifiedHanScript = 5,
397 TraditionalHanScript = 6,
401 SimplifiedChineseScript = SimplifiedHanScript,
402 TraditionalChineseScript = TraditionalHanScript,
403 LastScript = TifinaghScript
415 AntiguaAndBarbuda = 9,
433 BosniaAndHerzegowina = 27,
437 BritishIndianOceanTerritory = 31,
438 BruneiDarussalam = 32,
447 CentralAfricanRepublic = 41,
451 ChristmasIsland = 45,
455 DemocraticRepublicOfCongo = 49,
456 PeoplesRepublicOfCongo = 50,
467 DominicanRepublic = 61,
472 EquatorialGuinea = 66,
476 FalklandIslands = 70,
481 MetropolitanFrance = 75,
483 FrenchPolynesia = 77,
484 FrenchSouthernTerritories = 78,
501 HeardAndMcDonaldIslands = 95,
519 DemocraticRepublicOfKorea = 113,
520 RepublicOfKorea = 114,
528 LibyanArabJamahiriya = 122,
540 MarshallIslands = 134,
558 NetherlandsAntilles = 152,
566 NorthernMarianaIslands = 160,
571 PalestinianTerritory = 165,
573 PapuaNewGuinea = 167,
584 RussianFederation = 178,
586 SaintKittsAndNevis = 180,
588 StVincentAndTheGrenadines = 182,
591 SaoTomeAndPrincipe = 185,
599 SolomonIslands = 193,
602 SouthGeorgiaAndTheSouthSandwichIslands = 196,
606 StPierreAndMiquelon = 200,
609 SvalbardAndJanMayenIslands = 203,
613 SyrianArabRepublic = 207,
621 TrinidadAndTobago = 215,
625 TurksAndCaicosIslands = 219,
629 UnitedArabEmirates = 223,
632 UnitedStatesMinorOutlyingIslands = 226,
636 VaticanCityState = 230,
639 BritishVirginIslands = 233,
640 USVirginIslands = 234,
641 WallisAndFutunaIslands = 235,
647 SerbiaAndMontenegro = 241,
650 SaintBarthelemy = 244,
652 LatinAmericaAndTheCaribbean = 246,
653 LastCountry = LatinAmericaAndTheCaribbean
661 OmitGroupSeparator = 0x01,
662 RejectGroupSeparator = 0x02
686 QString nativeLanguageName()
const;
687 QString nativeCountryName()
const;
689 short toShort(
const QString &s,
bool *ok = 0,
int base = 0)
const;
695 float toFloat(
const QString &s,
bool *ok = 0)
const;
716 #ifndef QT_NO_DATESTRING 727 QChar decimalPoint()
const;
728 QChar groupSeparator()
const;
729 QChar percent()
const;
730 QChar zeroDigit()
const;
731 QChar negativeSign()
const;
732 QChar positiveSign()
const;
733 QChar exponential()
const;
771 static void setDefault(
const QLocale &locale);
779 void setNumberOptions(NumberOptions options);
780 NumberOptions numberOptions()
const;
792 #if (defined(__arm__) || defined(QT_NO_ARM_EABI)) 819 {
return toString(
double(i), f, prec); }
821 {
return d() == other.
d() && numberOptions() == other.
numberOptions(); }
823 {
return d() != other.
d() || numberOptions() != other.
numberOptions(); }
826 {
return toCurrencyString(
qlonglong(i), symbol); }
828 {
return toCurrencyString(
qulonglong(i), symbol); }
830 {
return toCurrencyString(
qlonglong(i), symbol); }
832 {
return toCurrencyString(
qulonglong(i), symbol); }
834 {
return toCurrencyString(
double(i), symbol); }
836 #ifndef QT_NO_DATASTREAM 843 #ifndef QT_NO_SYSTEMLOCALE The QVariant class acts like a union for the most common Qt data types.
Q_CORE_EXPORT QDataStream & operator<<(QDataStream &, const QLocale &)
#define QT_END_NAMESPACE
This macro expands to.
static ISC_DATE toDate(const QDate &t)
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
The QByteArray class provides an array of bytes.
Q_DECLARE_TYPEINFO(QLocale, Q_MOVABLE_TYPE)
The QDate class provides date functions.
bool operator!=(QBool b1, bool b2)
The QString class provides a Unicode character string.
The QIntValidator class provides a validator that ensures a string contains a valid integer within a ...
The QChar class provides a 16-bit Unicode character.
QString toString(qlonglong i) const
Returns a localized string representation of i.
Q_CORE_EXPORT QDataStream & operator>>(QDataStream &, QLocale &)
NumberOptions numberOptions() const
Returns the options related to number conversions for this QLocale instance.
static QString toString(Register *reg, int type, bool *ok=0)
CurrencyToStringArgument()
The QTime class provides clock time functions.
QLocale::Language language
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
The QStringList class provides a list of strings.
static int toInt(const QByteArray &str)
QString toCurrencyString(qlonglong, const QString &symbol=QString()) const
Returns a localized string representation of value as a currency.
bool operator==(const QLocale &other) const
CurrencySymbolFormat
Specifies the format of the currency symbol.
Q_CORE_EXPORT int QT_FASTCALL script(uint ucs4)
The QStringRef class provides a thin wrapper around QString substrings.
const QLocalePrivate * d() const
static QLocale c()
Returns a QLocale object initialized to the "C" locale.
The QDateTime class provides date and time functions.
CurrencyToStringArgument(const QVariant &v, const QString &s)
The QTextStream class provides a convenient interface for reading and writing text.
static ISC_TIME toTime(const QTime &t)
static qreal toDouble(const QChar *&str)
static QSystemLocale * QSystemLocale_globalSystemLocale()
The QDataStream class provides serialization of binary data to a QIODevice.
bool operator==(QBool b1, bool b2)
bool operator!=(const QLocale &other) const
The QList class is a template class that provides lists.