16#ifndef QT_NO_SYSTEMLOCALE
80#ifndef QT_NO_SYSTEMLOCALE
113 if (lang.
isEmpty() || lang ==
"C"_L1 || lang ==
"POSIX"_L1)
132 d->readEnvironment();
138 const QLocale &lc_numeric =
d->lc_numeric;
139 const QLocale &lc_time =
d->lc_time;
140 const QLocale &lc_monetary =
d->lc_monetary;
141 const QLocale &lc_messages =
d->lc_messages;
211 switch (
in.userType()) {
214 case QMetaType::UInt:
216 case QMetaType::Double:
218 case QMetaType::LongLong:
220 case QMetaType::ULongLong:
238 if (!
d->uiLanguages.isEmpty())
239 return d->uiLanguages;
245 lst = languages.
split(u
':');
252 joined += u
'-' + script;
254 joined += u
'-' + territory;
255 d->uiLanguages.append(joined);
261 return lc_messages.
quoteString(qvariant_cast<QStringView>(
in));
bool isEmpty() const noexcept
Returns true if the byte array has size 0; otherwise returns false.
QString decimalPoint() const
QString quoteString(const QString &str, QuotationStyle style=StandardQuotation) const
QString dateTimeFormat(FormatType format=LongFormat) const
QString zeroDigit() const
QString dateFormat(FormatType format=LongFormat) const
QString negativeSign() const
Qt::DayOfWeek firstDayOfWeek() const
QString dayName(int, FormatType format=LongFormat) const
QString toCurrencyString(qlonglong, const QString &symbol=QString()) const
QString timeFormat(FormatType format=LongFormat) const
QString groupSeparator() const
QString createSeparatedList(const QStringList &strl) const
QString monthName(int, FormatType format=LongFormat) const
QString positiveSign() const
QString toString(qlonglong i) const
Returns a localized string representation of i.
QString standaloneMonthName(int, FormatType format=LongFormat) const
QString standaloneDayName(int, FormatType format=LongFormat) const
QString currencySymbol(CurrencySymbolFormat=CurrencySymbol) const
constexpr bool isEmpty() const noexcept
Returns whether this string view is empty - that is, whether {size() == 0}.
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromLatin1(QByteArrayView ba)
This is an overloaded member function, provided for convenience. It differs from the above function o...
QStringList split(const QString &sep, Qt::SplitBehavior behavior=Qt::KeepEmptyParts, Qt::CaseSensitivity cs=Qt::CaseSensitive) const
Splits the string into substrings wherever sep occurs, and returns the list of those strings.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
int compare(const QString &s, Qt::CaseSensitivity cs=Qt::CaseSensitive) const noexcept
@ StringToAlternateQuotation
@ StandaloneMonthNameLong
@ StandaloneDayNameNarrow
@ StandaloneMonthNameNarrow
@ StringToStandardQuotation
@ StandaloneMonthNameShort
virtual QVariant query(QueryType type, QVariant in=QVariant()) const
virtual QLocale fallbackLocale() const
Combined button and popup list for selecting options.
#define Q_GLOBAL_STATIC(TYPE, NAME,...)
bool qt_splitLocaleName(QStringView name, QStringView *lang=nullptr, QStringView *script=nullptr, QStringView *cntry=nullptr)
static bool contradicts(QStringView maybe, const QString &known)
QString qEnvironmentVariable(const char *varName, const QString &defaultValue)
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
bool acceptLanguage(quint16 lang) const
bool acceptScriptTerritory(QLocaleId other) const
static Q_AUTOTEST_EXPORT QLocaleId fromName(QStringView name)
QByteArray lc_messages_var
QByteArray lc_collate_var
QByteArray lc_measurement_var