Qt 4.8
|
#include <qlocale_p.h>
Public Types | |
typedef QVarLengthArray< char, 256 > | CharBuff |
enum | DoubleForm { DFExponent = 0, DFDecimal, DFSignificantDigits, _DFMax = DFSignificantDigits } |
enum | Flags { NoFlags = 0, Alternate = 0x01, ZeroPadded = 0x02, LeftAdjusted = 0x04, BlankBeforePositive = 0x08, AlwaysShowSign = 0x10, ThousandsGroup = 0x20, CapitalEorX = 0x40, ShowBase = 0x80, UppercaseBase = 0x100, ForcePoint = Alternate } |
enum | GroupSeparatorMode { FailOnGroupSeparators, ParseGroupSeparators } |
enum | NumberMode { IntegerMode, DoubleStandardMode, DoubleScientificMode } |
Public Functions | |
QString | bcp47Name () const |
QString | countryCode () const |
quint16 | countryId () const |
QString | dateTimeToString (const QString &format, const QDate *date, const QTime *time, const QLocale *q) const |
QChar | decimal () const |
char | digitToCLocale (const QChar &c) const |
QString | doubleToString (double d, int precision=-1, DoubleForm form=DFSignificantDigits, int width=-1, unsigned flags=NoFlags) const |
QChar | exponential () const |
QChar | group () const |
QString | languageCode () const |
quint16 | languageId () const |
QChar | list () const |
QString | longLongToString (qint64 l, int precision=-1, int base=10, int width=-1, unsigned flags=NoFlags) const |
QLocale::MeasurementSystem | measurementSystem () const |
QChar | minus () const |
bool | numberToCLocale (const QString &num, GroupSeparatorMode group_sep_mode, CharBuff *result) const |
QChar | percent () const |
QChar | plus () const |
QString | scriptCode () const |
double | stringToDouble (const QString &num, bool *ok, GroupSeparatorMode group_sep_mode) const |
qint64 | stringToLongLong (const QString &num, int base, bool *ok, GroupSeparatorMode group_sep_mode) const |
quint64 | stringToUnsLongLong (const QString &num, int base, bool *ok, GroupSeparatorMode group_sep_mode) const |
QString | unsLongLongToString (quint64 l, int precision=-1, int base=10, int width=-1, unsigned flags=NoFlags) const |
bool | validateChars (const QString &str, NumberMode numMode, QByteArray *buff, int decDigits=-1) const |
QChar | zero () const |
Static Public Functions | |
static double | bytearrayToDouble (const char *num, bool *ok, bool *overflow=0) |
static qint64 | bytearrayToLongLong (const char *num, int base, bool *ok, bool *overflow=0) |
static quint64 | bytearrayToUnsLongLong (const char *num, int base, bool *ok) |
static QLocale::Country | codeToCountry (const QString &code) |
static QLocale::Language | codeToLanguage (const QString &code) |
static QLocale::Script | codeToScript (const QString &code) |
static QString | doubleToString (const QChar zero, const QChar plus, const QChar minus, const QChar exponent, const QChar group, const QChar decimal, double d, int precision, DoubleForm form, int width, unsigned flags) |
static const QLocalePrivate * | findLocale (QLocale::Language language, QLocale::Script script, QLocale::Country country) |
static void | getLangAndCountry (const QString &name, QLocale::Language &lang, QLocale::Script &script, QLocale::Country &cntry) |
static QString | longLongToString (const QChar zero, const QChar group, const QChar plus, const QChar minus, qint64 l, int precision, int base, int width, unsigned flags) |
static QString | unsLongLongToString (const QChar zero, const QChar group, const QChar plus, quint64 l, int precision, int base, int width, unsigned flags) |
static void | updateSystemPrivate () |
Definition at line 68 of file qlocale_p.h.
typedef QVarLengthArray<char, 256> QLocalePrivate::CharBuff |
Definition at line 166 of file qlocale_p.h.
Enumerator | |
---|---|
DFExponent | |
DFDecimal | |
DFSignificantDigits | |
_DFMax |
Definition at line 101 of file qlocale_p.h.
Enumerator | |
---|---|
NoFlags | |
Alternate | |
ZeroPadded | |
LeftAdjusted | |
BlankBeforePositive | |
AlwaysShowSign | |
ThousandsGroup | |
CapitalEorX | |
ShowBase | |
UppercaseBase | |
ForcePoint |
Definition at line 108 of file qlocale_p.h.
Enumerator | |
---|---|
IntegerMode | |
DoubleStandardMode | |
DoubleScientificMode |
Definition at line 174 of file qlocale_p.h.
QString QLocalePrivate::bcp47Name | ( | ) | const |
Definition at line 206 of file qlocale.cpp.
Referenced by QLocale::bcp47Name().
|
static |
Definition at line 3134 of file qlocale.cpp.
Referenced by QByteArray::toDouble(), and QDoubleValidatorPrivate::validateWithLocale().
|
static |
Definition at line 3186 of file qlocale.cpp.
Referenced by QIntValidator::fixup(), QByteArray::toLongLong(), and QIntValidator::validate().
|
static |
Definition at line 3228 of file qlocale.cpp.
Referenced by QByteArray::toULongLong().
|
static |
Definition at line 144 of file qlocale.cpp.
Referenced by getLangAndCountry().
|
static |
Definition at line 103 of file qlocale.cpp.
Referenced by getLangAndCountry().
|
static |
Definition at line 124 of file qlocale.cpp.
Referenced by getLangAndCountry().
QString QLocalePrivate::countryCode | ( | ) | const |
Definition at line 189 of file qlocale.cpp.
|
inline |
QString QLocalePrivate::dateTimeToString | ( | const QString & | format, |
const QDate * | date, | ||
const QTime * | time, | ||
const QLocale * | q | ||
) | const |
Definition at line 2389 of file qlocale.cpp.
Referenced by QLocale::toString().
|
inline |
|
inline |
Definition at line 224 of file qlocale_p.h.
|
static |
Definition at line 2613 of file qlocale.cpp.
Referenced by QString::arg(), doubleToString(), QTextStream::operator<<(), QByteArray::setNum(), QString::setNum(), QSystemLocalePrivate::toCurrencyString(), QLocale::toCurrencyString(), QLocale::toString(), and QString::vsprintf().
QString QLocalePrivate::doubleToString | ( | double | d, |
int | precision = -1 , |
||
DoubleForm | form = DFSignificantDigits , |
||
int | width = -1 , |
||
unsigned | flags = NoFlags |
||
) | const |
Definition at line 2602 of file qlocale.cpp.
|
inline |
|
static |
Definition at line 241 of file qlocale.cpp.
Referenced by findLocale(), and QLocale::QLocale().
|
static |
Definition at line 357 of file qlocale.cpp.
Referenced by findLocale(), and QSystemLocalePrivate::winToQtFormat().
|
inline |
QString QLocalePrivate::languageCode | ( | ) | const |
Definition at line 162 of file qlocale.cpp.
|
inline |
Definition at line 80 of file qlocale_p.h.
Referenced by QLocale::countriesForLanguage(), findLocale(), and QLocale::QLocale().
|
inline |
Definition at line 73 of file qlocale_p.h.
|
static |
Definition at line 2775 of file qlocale.cpp.
Referenced by QString::arg(), exponentForm(), longLongToString(), QTextStreamPrivate::putNumber(), QByteArray::setNum(), QString::setNum(), QSystemLocalePrivate::toCurrencyString(), QLocale::toCurrencyString(), QLocale::toString(), and QString::vsprintf().
QString QLocalePrivate::longLongToString | ( | qint64 | l, |
int | precision = -1 , |
||
int | base = 10 , |
||
int | width = -1 , |
||
unsigned | flags = NoFlags |
||
) | const |
Definition at line 2767 of file qlocale.cpp.
QLocale::MeasurementSystem QLocalePrivate::measurementSystem | ( | ) | const |
Definition at line 2218 of file qlocale.cpp.
Referenced by QLocale::measurementSystem().
|
inline |
bool QLocalePrivate::numberToCLocale | ( | const QString & | num, |
GroupSeparatorMode | group_sep_mode, | ||
CharBuff * | result | ||
) | const |
Definition at line 2945 of file qlocale.cpp.
|
inline |
|
inline |
QString QLocalePrivate::scriptCode | ( | ) | const |
Definition at line 181 of file qlocale.cpp.
double QLocalePrivate::stringToDouble | ( | const QString & | num, |
bool * | ok, | ||
GroupSeparatorMode | group_sep_mode | ||
) | const |
Definition at line 3092 of file qlocale.cpp.
Referenced by QString::toDouble(), and QLocale::toDouble().
qlonglong QLocalePrivate::stringToLongLong | ( | const QString & | num, |
int | base, | ||
bool * | ok, | ||
GroupSeparatorMode | group_sep_mode | ||
) | const |
Definition at line 3105 of file qlocale.cpp.
Referenced by QString::toLongLong(), and QLocale::toLongLong().
qulonglong QLocalePrivate::stringToUnsLongLong | ( | const QString & | num, |
int | base, | ||
bool * | ok, | ||
GroupSeparatorMode | group_sep_mode | ||
) | const |
Definition at line 3119 of file qlocale.cpp.
Referenced by QString::toULongLong(), and QLocale::toULongLong().
|
static |
Definition at line 2870 of file qlocale.cpp.
Referenced by QString::arg(), QTextStreamPrivate::putNumber(), QByteArray::setNum(), QString::setNum(), QSystemLocalePrivate::toCurrencyString(), QLocale::toCurrencyString(), QLocale::toString(), unsLongLongToString(), and QString::vsprintf().
QString QLocalePrivate::unsLongLongToString | ( | quint64 | l, |
int | precision = -1 , |
||
int | base = 10 , |
||
int | width = -1 , |
||
unsigned | flags = NoFlags |
||
) | const |
Definition at line 2862 of file qlocale.cpp.
|
static |
Definition at line 478 of file qlocale.cpp.
Referenced by QWindowSystemInterface::handleLocaleChange(), QtWndProc(), and systemPrivate().
bool QLocalePrivate::validateChars | ( | const QString & | str, |
NumberMode | numMode, | ||
QByteArray * | buff, | ||
int | decDigits = -1 |
||
) | const |
Definition at line 2999 of file qlocale.cpp.
Referenced by QIntValidator::fixup(), QIntValidator::validate(), and QDoubleValidatorPrivate::validateWithLocale().
|
inline |
quint16 QLocalePrivate::m_alternate_quotation_end |
Definition at line 185 of file qlocale_p.h.
quint16 QLocalePrivate::m_alternate_quotation_start |
Definition at line 185 of file qlocale_p.h.
quint16 QLocalePrivate::m_am_idx |
Definition at line 207 of file qlocale_p.h.
quint16 QLocalePrivate::m_am_size |
Definition at line 207 of file qlocale_p.h.
quint16 QLocalePrivate::m_country_endonym_idx |
Definition at line 215 of file qlocale_p.h.
quint16 QLocalePrivate::m_country_endonym_size |
Definition at line 215 of file qlocale_p.h.
quint16 QLocalePrivate::m_country_id |
Definition at line 180 of file qlocale_p.h.
Referenced by bcp47Name(), countryCode(), findLocale(), and QLocale::name().
quint16 QLocalePrivate::m_currency_digits |
Definition at line 216 of file qlocale_p.h.
Referenced by QLocale::toCurrencyString().
quint16 QLocalePrivate::m_currency_display_name_idx |
Definition at line 211 of file qlocale_p.h.
Referenced by QLocale::currencySymbol().
quint16 QLocalePrivate::m_currency_display_name_size |
Definition at line 211 of file qlocale_p.h.
Referenced by QLocale::currencySymbol().
quint8 QLocalePrivate::m_currency_format_idx |
Definition at line 212 of file qlocale_p.h.
Referenced by QLocale::toCurrencyString().
quint8 QLocalePrivate::m_currency_format_size |
Definition at line 212 of file qlocale_p.h.
Referenced by QLocale::toCurrencyString().
char QLocalePrivate::m_currency_iso_code[3] |
Definition at line 209 of file qlocale_p.h.
Referenced by QLocale::currencySymbol().
quint8 QLocalePrivate::m_currency_negative_format_idx |
Definition at line 213 of file qlocale_p.h.
Referenced by QLocale::toCurrencyString().
quint8 QLocalePrivate::m_currency_negative_format_size |
Definition at line 213 of file qlocale_p.h.
Referenced by QLocale::toCurrencyString().
quint16 QLocalePrivate::m_currency_rounding |
Definition at line 217 of file qlocale_p.h.
quint16 QLocalePrivate::m_currency_symbol_idx |
Definition at line 210 of file qlocale_p.h.
Referenced by QLocale::currencySymbol().
quint16 QLocalePrivate::m_currency_symbol_size |
Definition at line 210 of file qlocale_p.h.
Referenced by QLocale::currencySymbol().
quint16 QLocalePrivate::m_decimal |
Definition at line 182 of file qlocale_p.h.
quint16 QLocalePrivate::m_exponential |
Definition at line 182 of file qlocale_p.h.
quint16 QLocalePrivate::m_first_day_of_week |
Definition at line 218 of file qlocale_p.h.
Referenced by QLocale::firstDayOfWeek().
quint16 QLocalePrivate::m_group |
Definition at line 182 of file qlocale_p.h.
quint16 QLocalePrivate::m_language_endonym_idx |
Definition at line 214 of file qlocale_p.h.
quint16 QLocalePrivate::m_language_endonym_size |
Definition at line 214 of file qlocale_p.h.
quint16 QLocalePrivate::m_language_id |
Definition at line 180 of file qlocale_p.h.
Referenced by bcp47Name(), findLocale(), languageCode(), QLocale::matchingLocales(), and QLocale::name().
quint16 QLocalePrivate::m_list |
Definition at line 182 of file qlocale_p.h.
quint16 QLocalePrivate::m_list_pattern_part_end_idx |
Definition at line 189 of file qlocale_p.h.
quint16 QLocalePrivate::m_list_pattern_part_end_size |
Definition at line 189 of file qlocale_p.h.
quint16 QLocalePrivate::m_list_pattern_part_mid_idx |
Definition at line 188 of file qlocale_p.h.
quint16 QLocalePrivate::m_list_pattern_part_mid_size |
Definition at line 188 of file qlocale_p.h.
quint16 QLocalePrivate::m_list_pattern_part_start_idx |
Definition at line 187 of file qlocale_p.h.
quint16 QLocalePrivate::m_list_pattern_part_start_size |
Definition at line 187 of file qlocale_p.h.
quint16 QLocalePrivate::m_list_pattern_part_two_idx |
Definition at line 190 of file qlocale_p.h.
quint16 QLocalePrivate::m_list_pattern_part_two_size |
Definition at line 190 of file qlocale_p.h.
quint16 QLocalePrivate::m_long_date_format_idx |
Definition at line 192 of file qlocale_p.h.
Referenced by QLocale::dateFormat().
quint16 QLocalePrivate::m_long_date_format_size |
Definition at line 192 of file qlocale_p.h.
Referenced by QLocale::dateFormat().
quint16 QLocalePrivate::m_long_day_names_idx |
Definition at line 205 of file qlocale_p.h.
Referenced by QLocale::dayName().
quint16 QLocalePrivate::m_long_day_names_size |
Definition at line 205 of file qlocale_p.h.
Referenced by QLocale::dayName().
quint16 QLocalePrivate::m_long_month_names_idx |
Definition at line 199 of file qlocale_p.h.
Referenced by QLocale::monthName().
quint16 QLocalePrivate::m_long_month_names_size |
Definition at line 199 of file qlocale_p.h.
Referenced by QLocale::monthName().
quint16 QLocalePrivate::m_long_time_format_idx |
Definition at line 194 of file qlocale_p.h.
Referenced by QLocale::timeFormat().
quint16 QLocalePrivate::m_long_time_format_size |
Definition at line 194 of file qlocale_p.h.
Referenced by QLocale::timeFormat().
quint16 QLocalePrivate::m_minus |
Definition at line 182 of file qlocale_p.h.
quint16 QLocalePrivate::m_narrow_day_names_idx |
Definition at line 206 of file qlocale_p.h.
Referenced by QLocale::dayName().
quint16 QLocalePrivate::m_narrow_day_names_size |
Definition at line 206 of file qlocale_p.h.
Referenced by QLocale::dayName().
quint16 QLocalePrivate::m_narrow_month_names_idx |
Definition at line 200 of file qlocale_p.h.
Referenced by QLocale::monthName().
quint16 QLocalePrivate::m_narrow_month_names_size |
Definition at line 200 of file qlocale_p.h.
Referenced by QLocale::monthName().
quint16 QLocalePrivate::m_percent |
Definition at line 182 of file qlocale_p.h.
quint16 QLocalePrivate::m_plus |
Definition at line 182 of file qlocale_p.h.
quint16 QLocalePrivate::m_pm_idx |
Definition at line 208 of file qlocale_p.h.
quint16 QLocalePrivate::m_pm_size |
Definition at line 208 of file qlocale_p.h.
quint16 QLocalePrivate::m_quotation_end |
Definition at line 184 of file qlocale_p.h.
quint16 QLocalePrivate::m_quotation_start |
Definition at line 184 of file qlocale_p.h.
quint16 QLocalePrivate::m_script_id |
Definition at line 180 of file qlocale_p.h.
Referenced by bcp47Name(), findLocale(), and scriptCode().
quint16 QLocalePrivate::m_short_date_format_idx |
Definition at line 191 of file qlocale_p.h.
Referenced by QLocale::dateFormat().
quint16 QLocalePrivate::m_short_date_format_size |
Definition at line 191 of file qlocale_p.h.
Referenced by QLocale::dateFormat().
quint16 QLocalePrivate::m_short_day_names_idx |
Definition at line 204 of file qlocale_p.h.
Referenced by QLocale::dayName().
quint16 QLocalePrivate::m_short_day_names_size |
Definition at line 204 of file qlocale_p.h.
Referenced by QLocale::dayName().
quint16 QLocalePrivate::m_short_month_names_idx |
Definition at line 198 of file qlocale_p.h.
Referenced by QLocale::monthName().
quint16 QLocalePrivate::m_short_month_names_size |
Definition at line 198 of file qlocale_p.h.
Referenced by QLocale::monthName().
quint16 QLocalePrivate::m_short_time_format_idx |
Definition at line 193 of file qlocale_p.h.
Referenced by QLocale::timeFormat().
quint16 QLocalePrivate::m_short_time_format_size |
Definition at line 193 of file qlocale_p.h.
Referenced by QLocale::timeFormat().
quint16 QLocalePrivate::m_standalone_long_day_names_idx |
Definition at line 202 of file qlocale_p.h.
Referenced by QLocale::standaloneDayName().
quint16 QLocalePrivate::m_standalone_long_day_names_size |
Definition at line 202 of file qlocale_p.h.
Referenced by QLocale::standaloneDayName().
quint16 QLocalePrivate::m_standalone_long_month_names_idx |
Definition at line 196 of file qlocale_p.h.
Referenced by QLocale::standaloneMonthName().
quint16 QLocalePrivate::m_standalone_long_month_names_size |
Definition at line 196 of file qlocale_p.h.
Referenced by QLocale::standaloneMonthName().
quint16 QLocalePrivate::m_standalone_narrow_day_names_idx |
Definition at line 203 of file qlocale_p.h.
Referenced by QLocale::standaloneDayName().
quint16 QLocalePrivate::m_standalone_narrow_day_names_size |
Definition at line 203 of file qlocale_p.h.
Referenced by QLocale::standaloneDayName().
quint16 QLocalePrivate::m_standalone_narrow_month_names_idx |
Definition at line 197 of file qlocale_p.h.
Referenced by QLocale::standaloneMonthName().
quint16 QLocalePrivate::m_standalone_narrow_month_names_size |
Definition at line 197 of file qlocale_p.h.
Referenced by QLocale::standaloneMonthName().
quint16 QLocalePrivate::m_standalone_short_day_names_idx |
Definition at line 201 of file qlocale_p.h.
Referenced by QLocale::standaloneDayName().
quint16 QLocalePrivate::m_standalone_short_day_names_size |
Definition at line 201 of file qlocale_p.h.
Referenced by QLocale::standaloneDayName().
quint16 QLocalePrivate::m_standalone_short_month_names_idx |
Definition at line 195 of file qlocale_p.h.
Referenced by QLocale::standaloneMonthName().
quint16 QLocalePrivate::m_standalone_short_month_names_size |
Definition at line 195 of file qlocale_p.h.
Referenced by QLocale::standaloneMonthName().
quint16 QLocalePrivate::m_weekend_end |
Definition at line 220 of file qlocale_p.h.
Referenced by QLocale::weekdays().
quint16 QLocalePrivate::m_weekend_start |
Definition at line 219 of file qlocale_p.h.
Referenced by QLocale::weekdays().
quint16 QLocalePrivate::m_zero |
Definition at line 182 of file qlocale_p.h.