⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qlocale.h

📁 奇趣公司比较新的qt/emd版本
💻 H
📖 第 1 页 / 共 2 页
字号:
        FaroeIslands = 71,        FijiCountry = 72,        Finland = 73,        France = 74,        MetropolitanFrance = 75,        FrenchGuiana = 76,        FrenchPolynesia = 77,        FrenchSouthernTerritories = 78,        Gabon = 79,        Gambia = 80,        Georgia = 81,        Germany = 82,        Ghana = 83,        Gibraltar = 84,        Greece = 85,        Greenland = 86,        Grenada = 87,        Guadeloupe = 88,        Guam = 89,        Guatemala = 90,        Guinea = 91,        GuineaBissau = 92,        Guyana = 93,        Haiti = 94,        HeardAndMcDonaldIslands = 95,        Honduras = 96,        HongKong = 97,        Hungary = 98,        Iceland = 99,        India = 100,        Indonesia = 101,        Iran = 102,        Iraq = 103,        Ireland = 104,        Israel = 105,        Italy = 106,        Jamaica = 107,        Japan = 108,        Jordan = 109,        Kazakhstan = 110,        Kenya = 111,        Kiribati = 112,        DemocraticRepublicOfKorea = 113,        RepublicOfKorea = 114,        Kuwait = 115,        Kyrgyzstan = 116,        Lao = 117,        Latvia = 118,        Lebanon = 119,        Lesotho = 120,        Liberia = 121,        LibyanArabJamahiriya = 122,        Liechtenstein = 123,        Lithuania = 124,        Luxembourg = 125,        Macau = 126,        Macedonia = 127,        Madagascar = 128,        Malawi = 129,        Malaysia = 130,        Maldives = 131,        Mali = 132,        Malta = 133,        MarshallIslands = 134,        Martinique = 135,        Mauritania = 136,        Mauritius = 137,        Mayotte = 138,        Mexico = 139,        Micronesia = 140,        Moldova = 141,        Monaco = 142,        Mongolia = 143,        Montserrat = 144,        Morocco = 145,        Mozambique = 146,        Myanmar = 147,        Namibia = 148,        NauruCountry = 149,        Nepal = 150,        Netherlands = 151,        NetherlandsAntilles = 152,        NewCaledonia = 153,        NewZealand = 154,        Nicaragua = 155,        Niger = 156,        Nigeria = 157,        Niue = 158,        NorfolkIsland = 159,        NorthernMarianaIslands = 160,        Norway = 161,        Oman = 162,        Pakistan = 163,        Palau = 164,        PalestinianTerritory = 165,        Panama = 166,        PapuaNewGuinea = 167,        Paraguay = 168,        Peru = 169,        Philippines = 170,        Pitcairn = 171,        Poland = 172,        Portugal = 173,        PuertoRico = 174,        Qatar = 175,        Reunion = 176,        Romania = 177,        RussianFederation = 178,        Rwanda = 179,        SaintKittsAndNevis = 180,        StLucia = 181,        StVincentAndTheGrenadines = 182,        Samoa = 183,        SanMarino = 184,        SaoTomeAndPrincipe = 185,        SaudiArabia = 186,        Senegal = 187,        Seychelles = 188,        SierraLeone = 189,        Singapore = 190,        Slovakia = 191,        Slovenia = 192,        SolomonIslands = 193,        Somalia = 194,        SouthAfrica = 195,        SouthGeorgiaAndTheSouthSandwichIslands = 196,        Spain = 197,        SriLanka = 198,        StHelena = 199,        StPierreAndMiquelon = 200,        Sudan = 201,        Suriname = 202,        SvalbardAndJanMayenIslands = 203,        Swaziland = 204,        Sweden = 205,        Switzerland = 206,        SyrianArabRepublic = 207,        Taiwan = 208,        Tajikistan = 209,        Tanzania = 210,        Thailand = 211,        Togo = 212,        Tokelau = 213,        TongaCountry = 214,        TrinidadAndTobago = 215,        Tunisia = 216,        Turkey = 217,        Turkmenistan = 218,        TurksAndCaicosIslands = 219,        Tuvalu = 220,        Uganda = 221,        Ukraine = 222,        UnitedArabEmirates = 223,        UnitedKingdom = 224,        UnitedStates = 225,        UnitedStatesMinorOutlyingIslands = 226,        Uruguay = 227,        Uzbekistan = 228,        Vanuatu = 229,        VaticanCityState = 230,        Venezuela = 231,        VietNam = 232,        BritishVirginIslands = 233,        USVirginIslands = 234,        WallisAndFutunaIslands = 235,        WesternSahara = 236,        Yemen = 237,        Yugoslavia = 238,        Zambia = 239,        Zimbabwe = 240,        SerbiaAndMontenegro = 241,        LastCountry = SerbiaAndMontenegro    };    enum FormatType { LongFormat, ShortFormat };    enum NumberOption { OmitGroupSeparator = 0x01, RejectGroupSeparator = 0x02 };    Q_DECLARE_FLAGS(NumberOptions, NumberOption)    QLocale();    QLocale(const QString &name);    QLocale(Language language, Country country = AnyCountry);    QLocale(const QLocale &other);    QLocale &operator=(const QLocale &other);    Language language() const;    Country country() const;    QString name() const;    short toShort(const QString &s, bool *ok = 0, int base = 0) const;    ushort toUShort(const QString &s, bool *ok = 0, int base = 0) const;    int toInt(const QString &s, bool *ok = 0, int base = 0) const;    uint toUInt(const QString &s, bool *ok = 0, int base = 0) const;    qlonglong toLongLong(const QString &s, bool *ok = 0, int base = 0) const;    qlonglong toULongLong(const QString &s, bool *ok = 0, int base = 0) const;    float toFloat(const QString &s, bool *ok = 0) const;    double toDouble(const QString &s, bool *ok = 0) const;    QString toString(qlonglong i) const;    QString toString(qulonglong i) const;    inline QString toString(short i) const;    inline QString toString(ushort i) const;    inline QString toString(int i) const;    inline QString toString(uint i) const;    QString toString(double i, char f = 'g', int prec = 6) const;    inline QString toString(float i, char f = 'g', int prec = 6) const;    QString toString(const QDate &date, const QString &formatStr) const;    QString toString(const QDate &date, FormatType format = LongFormat) const;    QString toString(const QTime &time, const QString &formatStr) const;    QString toString(const QTime &time, FormatType format = LongFormat) const;    QString dateFormat(FormatType format = LongFormat) const;    QString timeFormat(FormatType format = LongFormat) const;    QChar decimalPoint() const;    QChar groupSeparator() const;    QChar percent() const;    QChar zeroDigit() const;    QChar negativeSign() const;    QChar exponential() const;    QString monthName(int, FormatType format = LongFormat) const;    QString dayName(int, FormatType format = LongFormat) const;    inline bool operator==(const QLocale &other) const;    inline bool operator!=(const QLocale &other) const;    static QString languageToString(Language language);    static QString countryToString(Country country);    static void setDefault(const QLocale &locale);    static QLocale c() { return QLocale(C); }    static QLocale system();    static QList<Country> countriesForLanguage(Language lang);    void setNumberOptions(NumberOptions options);    NumberOptions numberOptions() const;private:    friend struct QLocalePrivate;    // ### We now use this field to pack an index into locale_data and NumberOptions.    // ### Qt 5: change to a QLocaleData *d; uint numberOptions.    void *v;    const QLocalePrivate *d() const;};Q_DECLARE_TYPEINFO(QLocale, Q_MOVABLE_TYPE);Q_DECLARE_OPERATORS_FOR_FLAGS(QLocale::NumberOptions)inline QString QLocale::toString(short i) const    { return toString(qlonglong(i)); }inline QString QLocale::toString(ushort i) const    { return toString(qulonglong(i)); }inline QString QLocale::toString(int i) const    { return toString(qlonglong(i)); }inline QString QLocale::toString(uint i) const    { return toString(qulonglong(i)); }inline QString QLocale::toString(float i, char f, int prec) const    { return toString(double(i), f, prec); }inline bool QLocale::operator==(const QLocale &other) const    { return d() == other.d() && numberOptions() == other.numberOptions(); }inline bool QLocale::operator!=(const QLocale &other) const    { return d() != other.d() || numberOptions() != other.numberOptions(); }#ifndef QT_NO_DATASTREAMQ_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QLocale &);Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QLocale &);#endif#ifndef QT_NO_SYSTEMLOCALEclass Q_CORE_EXPORT QSystemLocale{public:    QSystemLocale();    virtual ~QSystemLocale();    enum QueryType {        LanguageId, // uint        CountryId, // uint        DecimalPoint, // QString        GroupSeparator, // QString        ZeroDigit, // QString        NegativeSign, // QString        DateFormatLong, // QString        DateFormatShort, // QString        TimeFormatLong, // QString        TimeFormatShort, // QString        DayNameLong, // QString, in: int        DayNameShort, // QString, in: int        MonthNameLong, // QString, in: int        MonthNameShort, // QString, in: int        DateToStringLong, // QString, in: QDate        DateToStringShort, // QString in: QDate        TimeToStringLong, // QString in: QTime        TimeToStringShort // QString in: QTime    };    virtual QVariant query(QueryType type, QVariant in) const;    virtual QLocale fallbackLocale() const;};#endifQT_END_HEADER#endif // QLOCALE_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -