54 static char buff[257];
56 memset(buff, 0,
sizeof buff);
58 if (confstr(_CS_LOCALE, buff, 257) > 0)
67 #ifndef QT_NO_SYSTEMLOCALE 117 #ifndef QT_NO_SYSTEMLOCALE 149 case DateFormatShort:
153 case TimeFormatShort:
163 case StandaloneMonthNameLong:
165 case StandaloneMonthNameShort:
167 case DateToStringLong:
169 case DateToStringShort:
171 case TimeToStringLong:
173 case TimeToStringShort:
175 case DateTimeFormatLong:
177 case DateTimeFormatShort:
179 case DateTimeToStringLong:
181 case DateTimeToStringShort:
193 case CurrencyToString: {
210 case MeasurementSystem: {
222 for (
int i = 0; i < lst.
size();) {
235 lang, script, cntry)) {
243 case StringToStandardQuotation:
245 case StringToAlternateQuotation:
247 case ListToSeparatedString:
257 #endif // QT_NO_SYSTEMLOCALE The QVariant class acts like a union for the most common Qt data types.
QChar positiveSign() const
Returns the positive sign character of this locale.
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
#define QT_END_NAMESPACE
This macro expands to.
QString timeFormat(FormatType format=LongFormat) const
Returns the time format used for the current locale.
QString createSeparatedList(const QStringList &strl) const
Returns a string that represents a join of a given list of strings with a separator defined by the lo...
QString monthName(int, FormatType format=LongFormat) const
Returns the localized name of month, in the format specified by type.
The QByteArray class provides an array of bytes.
int length() const
Returns the number of characters in this string.
QDateTime toDateTime() const
Returns the variant as a QDateTime if the variant has type() DateTime , Date , or String ; otherwise ...
QChar zeroDigit() const
Returns the zero digit character of this locale.
QByteArray lc_measurement_var
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
bool qt_splitLocaleName(const QString &name, QString &lang, QString &script, QString &cntry)
The QString class provides a Unicode character string.
static QByteArray getSystemLocale()
QString toString(qlonglong i) const
Returns a localized string representation of i.
int toInt(bool *ok=0) const
Returns the variant as an int if the variant has type() Int , Bool , ByteArray , Char ...
#define QT_BEGIN_NAMESPACE
This macro expands to.
qlonglong toLongLong(bool *ok=0) const
Returns the variant as a long long int if the variant has type() LongLong , Bool , ByteArray , Char , Double , Int , String , UInt , or ULongLong ; otherwise returns 0.
QChar decimalPoint() const
Returns the decimal point character of this locale.
QString dateTimeFormat(FormatType format=LongFormat) const
Returns the date time format used for the current locale.
QString quoteString(const QString &str, QuotationStyle style=StandardQuotation) const
Returns str quoted according to the current locale using the given quotation style.
QChar groupSeparator() const
Returns the group separator character of this locale.
QString pmText() const
Returns the localized name of the "PM" suffix for times specified using the conventions of the 12-hou...
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
#define Q_GLOBAL_STATIC(TYPE, NAME)
Declares a global static variable with the given type and name.
const T & at(int i) const
Returns the item at index position i in the list.
The QStringList class provides a list of strings.
QString toCurrencyString(qlonglong, const QString &symbol=QString()) const
Returns a localized string representation of value as a currency.
qulonglong toULongLong(bool *ok=0) const
Returns the variant as as an unsigned long long int if the variant has type() ULongLong ...
The QLatin1String class provides a thin wrapper around an US-ASCII/Latin-1 encoded string literal...
QChar negativeSign() const
Returns the negative sign character of this locale.
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.
QString amText() const
Returns the localized name of the "AM" suffix for times specified using the conventions of the 12-hou...
const char * constData() const
Returns a pointer to the data stored in the byte array.
QDate toDate() const
Returns the variant as a QDate if the variant has type() Date , DateTime , or String ; otherwise retu...
int compare(const QString &s) const
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
Type type() const
Returns the storage type of the value stored in the variant.
uint toUInt(bool *ok=0) const
Returns the variant as an unsigned int if the variant has type() UInt , Bool , ByteArray ...
int size() const
Returns the number of items in the list.
QString standaloneMonthName(int, FormatType format=LongFormat) const
Returns the localized name of month that is used as a standalone text, in the format specified by typ...
virtual QVariant query(QueryType type, QVariant in) const
int size() const
Returns the number of bytes in this byte array.
double toDouble(bool *ok=0) const
Returns the variant as a double if the variant has type() Double , QMetaType::Float ...
virtual QLocale fallbackLocale() const
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
QString dayName(int, FormatType format=LongFormat) const
Returns the localized name of the day (where 1 represents Monday, 2 represents Tuesday and so on)...
QString currencySymbol(CurrencySymbolFormat=CurrencySymbol) const
Returns a currency symbol according to the format.
QStringList split(const QString &sep, SplitBehavior behavior=KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const Q_REQUIRED_RESULT
Splits the string into substrings wherever sep occurs, and returns the list of those strings...
Qt::DayOfWeek firstDayOfWeek() const
Returns the first day of the week according to the current locale.
QTime toTime() const
Returns the variant as a QTime if the variant has type() Time , DateTime , or String ; otherwise retu...
QByteArray lc_messages_var
T value() const
Returns the stored value converted to the template type T.
QString dateFormat(FormatType format=LongFormat) const
Returns the date format used for the current locale.
The QLatin1Char class provides an 8-bit ASCII/Latin-1 character.
void removeAt(int i)
Removes the item at index position i.