![]() |
Qt 6.x
The Qt SDK
|
#include <qlocale_p.h>
Public Member Functions | |
constexpr | QLocalePrivate (const QLocaleData *data, qsizetype index, QLocale::NumberOptions numberOptions=QLocale::DefaultNumberOptions, int refs=0) |
quint16 | languageId () const |
quint16 | territoryId () const |
QByteArray | bcp47Name (char separator='-') const |
std::array< char, 4 > | languageCode (QLocale::LanguageCodeTypes codeTypes=QLocale::AnyLanguageCode) const |
QLatin1StringView | scriptCode () const |
QLatin1StringView | territoryCode () const |
QLocale::MeasurementSystem | measurementSystem () const |
Static Public Member Functions | |
static const QLocalePrivate * | get (const QLocale &l) |
static std::array< char, 4 > | languageToCode (QLocale::Language language, QLocale::LanguageCodeTypes codeTypes=QLocale::AnyLanguageCode) |
static QLatin1StringView | scriptToCode (QLocale::Script script) |
static QLatin1StringView | territoryToCode (QLocale::Territory territory) |
static QLocale::Language | codeToLanguage (QStringView code, QLocale::LanguageCodeTypes codeTypes=QLocale::AnyLanguageCode) noexcept |
static QLocale::Script | codeToScript (QStringView code) noexcept |
static QLocale::Territory | codeToTerritory (QStringView code) noexcept |
Public Attributes | |
const QLocaleData *const | m_data |
QBasicAtomicInt | ref |
const qsizetype | m_index |
QLocale::NumberOptions | m_numberOptions |
Static Public Attributes | |
static QBasicAtomicInt | s_generation = Q_BASIC_ATOMIC_INITIALIZER(0) |
Definition at line 473 of file qlocale_p.h.
|
inlineconstexpr |
Definition at line 476 of file qlocale_p.h.
QByteArray QLocalePrivate::bcp47Name | ( | char | separator = '-' | ) | const |
Definition at line 456 of file qlocale.cpp.
References QLocale::AnyLanguage, QLocale::C, QLocaleData::id(), m_data, QLocaleId::name(), QByteArrayLiteral, and QLocaleId::withLikelySubtagsRemoved().
Referenced by QLocale::bcp47Name(), QCollatorPrivate::init(), QLocale::toLower(), and QLocale::toUpper().
|
staticnoexcept |
Definition at line 93 of file qlocale.cpp.
References QLocale::AnyLanguage, QLocale::Filipino, QLocale::Hebrew, i, QLocale::Indonesian, QLocale::ISO639Part1, QLocale::ISO639Part2B, QLocale::ISO639Part2T, QLocale::ISO639Part3, languageCodeList, QLocale::LegacyLanguageCode, QLocale::NorwegianBokmal, QLocale::Romanian, QLocale::Serbian, QString::size(), QString::toLower(), QString::unicode(), and QLocale::Yiddish.
Referenced by QLocale::codeToLanguage(), codeToLanguage(), and QLocaleId::fromName().
|
staticnoexcept |
Definition at line 165 of file qlocale.cpp.
References QLocale::AnyScript, c2, i, QLocale::LastScript, script_code_list, QString::size(), QString::toLatin1(), QString::toLower(), and QString::toUpper().
Referenced by QLocale::codeToScript(), and QLocaleId::fromName().
|
staticnoexcept |
Definition at line 185 of file qlocale.cpp.
References QLocale::AnyTerritory, QString::size(), territory_code_list, QString::toUpper(), and QString::unicode().
Referenced by QLocale::codeToTerritory(), QLocaleId::fromName(), and loadTzTimeZones().
|
inlinestatic |
Definition at line 497 of file qlocale_p.h.
Referenced by QCollatorPrivate::init().
|
inline |
Definition at line 488 of file qlocale_p.h.
References languageToCode(), and m_data.
Referenced by QLocale::name().
|
inline |
Definition at line 482 of file qlocale_p.h.
References m_data.
Referenced by QLocale::language().
|
static |
Definition at line 204 of file qlocale.cpp.
References QLocale::AnyLanguage, QLocale::C, i, QLocale::ISO639Part1, QLocale::ISO639Part2B, QLocale::ISO639Part2T, QLocale::ISO639Part3, languageCodeList, and QLocale::LastLanguage.
Referenced by languageCode(), and QLocale::languageToCode().
QLocale::MeasurementSystem QLocalePrivate::measurementSystem | ( | ) | const |
Definition at line 3144 of file qlocale.cpp.
References ImperialMeasurementSystems, m_data, and QLocale::MetricSystem.
Referenced by QLocale::measurementSystem().
|
inline |
Definition at line 492 of file qlocale_p.h.
References m_data, and scriptToCode().
|
static |
Definition at line 229 of file qlocale.cpp.
References QLocale::AnyScript, QLocale::LastScript, and script_code_list.
Referenced by scriptCode(), and QLocale::scriptToCode().
|
inline |
Definition at line 494 of file qlocale_p.h.
References m_data, and territoryToCode().
Referenced by QLocale::name().
|
inline |
Definition at line 483 of file qlocale_p.h.
References m_data.
Referenced by QLocale::territory().
|
static |
Definition at line 237 of file qlocale.cpp.
References QLocale::AnyTerritory, QLocale::LastTerritory, and territory_code_list.
Referenced by territoryCode(), and QLocale::territoryToCode().
const QLocaleData* const QLocalePrivate::m_data |
Definition at line 512 of file qlocale_p.h.
Referenced by QLocale::amText(), bcp47Name(), QLocale::collation(), QLocale::createSeparatedList(), QLocale::currencySymbol(), QLocale::dateFormat(), QLocale::dateTimeFormat(), QLocale::decimalPoint(), QLocale::exponential(), QLocale::firstDayOfWeek(), QDoubleValidatorPrivate::fixupWithLocale(), QLocale::formattedDataSize(), QLocale::groupSeparator(), languageCode(), languageId(), QLocale::measurementSystem(), measurementSystem(), QLocale::nativeLanguageName(), QLocale::nativeTerritoryName(), QLocale::negativeSign(), QLocale::percent(), QLocale::pmText(), QLocale::positiveSign(), QTextStreamPrivate::putNumber(), QLocale::quoteString(), QLocale::script(), scriptCode(), territoryCode(), territoryId(), QLocale::timeFormat(), QLocale::toCurrencyString(), QLocale::toCurrencyString(), QLocale::toCurrencyString(), QLocale::toDouble(), QLocale::toString(), QLocale::toString(), QLocale::toString(), QLocale::toString(), QLocale::toString(), QLocale::toString(), QLocale::toString(), QLocale::toString(), QLocale::uiLanguages(), QDoubleValidatorPrivate::validateWithLocale(), QLocale::weekdays(), and QLocale::zeroDigit().
const qsizetype QLocalePrivate::m_index |
Definition at line 514 of file qlocale_p.h.
Referenced by QSystemLocale::fallbackLocaleIndex().
QLocale::NumberOptions QLocalePrivate::m_numberOptions |
Definition at line 515 of file qlocale_p.h.
Referenced by QLocale::numberOptions(), QLocale::setNumberOptions(), QLocale::toDouble(), QLocale::toString(), QLocale::toString(), and QLocale::toString().
QBasicAtomicInt QLocalePrivate::ref |
Definition at line 513 of file qlocale_p.h.
|
static |
Definition at line 517 of file qlocale_p.h.
Referenced by QT_BEGIN_NAMESPACE::GenerationalCollator::collator(), and QLocale::setDefault().