56 #include "QtCore/qstring.h" 57 #include "QtCore/qvarlengtharray.h" 58 #include "QtCore/qmetatype.h" 62 #if defined(Q_OS_SYMBIAN) && !defined(QT_NO_SYSTEMLOCALE) 63 class CEnvironmentChangeNotifier;
105 _DFMax = DFSignificantDigits
113 BlankBeforePositive = 0x08,
114 AlwaysShowSign = 0x10,
115 ThousandsGroup = 0x20,
119 UppercaseBase = 0x100,
120 ForcePoint = Alternate
131 double d,
int precision,
133 int width,
unsigned flags);
137 int width,
unsigned flags);
148 unsigned flags = NoFlags)
const;
152 unsigned flags = NoFlags)
const;
156 unsigned flags = NoFlags)
const;
162 static double bytearrayToDouble(
const char *num,
bool *ok,
bool *overflow = 0);
163 static qint64 bytearrayToLongLong(
const char *num,
int base,
bool *ok,
bool *overflow = 0);
164 static quint64 bytearrayToUnsLongLong(
const char *num,
int base,
bool *ok);
167 bool numberToCLocale(
const QString &num,
169 CharBuff *result)
const;
170 inline char digitToCLocale(
const QChar &
c)
const;
172 static void updateSystemPrivate();
174 enum NumberMode { IntegerMode, DoubleStandardMode, DoubleScientificMode };
182 quint16 m_decimal, m_group, m_list, m_percent,
183 m_zero, m_minus, m_plus, m_exponential;
209 char m_currency_iso_code[3];
227 const QChar _group = group();
229 const ushort tenUnicode = zeroUnicode + 10;
232 return '0' + in.
unicode() - zeroUnicode;
249 if (in == exponential() || in == exponential().toUpper())
260 #if defined(Q_OS_SYMBIAN) && !defined(QT_NO_SYSTEMLOCALE) 261 class QEnvironmentChangeNotifier
264 QEnvironmentChangeNotifier();
265 ~QEnvironmentChangeNotifier();
267 static TInt localeChanged(TAny *
data);
270 CEnvironmentChangeNotifier *iChangeNotifier;
283 #endif // QLOCALE_P_H
quint16 m_standalone_long_month_names_size
#define QT_END_NAMESPACE
This macro expands to.
quint16 countryId() const
quint16 m_standalone_narrow_day_names_size
ushort unicode() const
This is an overloaded member function, provided for convenience. It differs from the above function o...
int qt_repeatCount(const QString &s, int i)
quint16 m_quotation_start
The QByteArray class provides an array of bytes.
quint16 m_short_month_names_size
quint16 m_narrow_month_names_size
quint16 m_standalone_short_month_names_size
quint16 languageId() const
The QDate class provides date functions.
static const QLocalePrivate * findLocale(const QString &name)
quint16 m_list_pattern_part_two_size
quint16 m_short_date_format_size
The QString class provides a Unicode character string.
quint16 m_alternate_quotation_start
The QChar class provides a 16-bit Unicode character.
quint16 m_short_day_names_size
quint16 m_standalone_narrow_month_names_size
quint16 m_currency_rounding
The QTime class provides clock time functions.
QLocale::Language language
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString qt_readEscapedFormatString(const QString &format, int *idx)
quint16 m_standalone_short_day_names_size
quint16 m_list_pattern_part_start_size
quint16 m_standalone_long_day_names_size
quint8 m_currency_negative_format_size
char digitToCLocale(const QChar &c) const
static const char * data(const QByteArray &arr)
quint16 m_country_endonym_size
quint16 m_long_time_format_size
quint16 m_list_pattern_part_end_size
quint16 m_narrow_day_names_size
Q_CORE_EXPORT int QT_FASTCALL script(uint ucs4)
The QStringRef class provides a thin wrapper around QString substrings.
bool qt_splitLocaleName(const QString &name, QString &lang, QString &script, QString &cntry)
quint16 m_currency_symbol_size
QChar exponential() const
QVarLengthArray< char, 256 > CharBuff
quint16 m_list_pattern_part_mid_size
quint16 m_language_endonym_size
char toLatin1() const
Returns the Latin-1 character equivalent to the QChar, or 0.
quint8 m_currency_format_size
quint16 m_long_day_names_size
quint16 m_currency_digits
quint16 m_first_day_of_week
quint16 m_long_month_names_size
quint16 m_currency_display_name_size
quint16 m_long_date_format_size
quint16 m_short_time_format_size
The QList class is a template class that provides lists.