![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qlocale_p.h>
Classes | |
| struct | GroupSizes |
| struct | ParsingResult |
| struct | NumericData |
| class | DigitSequence |
| Descriptor for a digit sequence within a text. More... | |
| struct | DataRange |
Public Types | |
| enum | DoubleForm { DFExponent = 0 , DFDecimal , DFSignificantDigits , _DFMax = DFSignificantDigits } |
| enum | Flags { NoFlags = 0 , AddTrailingZeroes = 0x01 , ZeroPadded = 0x02 , LeftAdjusted = 0x04 , BlankBeforePositive = 0x08 , AlwaysShowSign = 0x10 , GroupDigits = 0x20 , CapitalEorX = 0x40 , ShowBase = 0x80 , UppercaseBase = 0x100 , ZeroPadExponent = 0x200 , ForcePoint = 0x400 } |
| enum | NumberMode { IntegerMode , DoubleStandardMode , DoubleScientificMode } |
| using | CharBuff = QVarLengthArray<char, 256> |
Static Public Member Functions | |
| static Q_AUTOTEST_EXPORT qsizetype | findLocaleIndex (QLocaleId localeId) noexcept |
| static Q_AUTOTEST_EXPORT const QLocaleData * | c () noexcept |
| static Q_AUTOTEST_EXPORT bool | allLocaleDataRows (bool(*check)(qsizetype, const QLocaleData &)) |
| static Q_AUTOTEST_EXPORT const QLocaleData * | dataForLocaleIndex (qsizetype index) |
| static float | convertDoubleToFloat (double d, bool *ok) |
| static Q_CORE_EXPORT QSimpleParsedNumber< qint64 > | bytearrayToLongLong (QByteArrayView num, int base) |
| static QSimpleParsedNumber< quint64 > | bytearrayToUnsLongLong (QByteArrayView num, int base) |
Public Attributes | |
| quint8 | m_currency_digits: 2 |
| quint8 | m_currency_rounding: 3 |
| quint8 | m_first_day_of_week: 3 |
| quint8 | m_weekend_start: 3 |
| quint8 | m_weekend_end: 3 |
| quint8 | m_grouping_first: 2 |
| quint8 | m_grouping_higher: 3 |
| quint8 | m_grouping_least: 3 |
Definition at line 246 of file qlocale_p.h.
| using QLocaleData::CharBuff = QVarLengthArray<char, 256> |
Definition at line 291 of file qlocale_p.h.
| Enumerator | |
|---|---|
| DFExponent | |
| DFDecimal | |
| DFSignificantDigits | |
| _DFMax | |
Definition at line 258 of file qlocale_p.h.
| enum QLocaleData::Flags |
| Enumerator | |
|---|---|
| NoFlags | |
| AddTrailingZeroes | |
| ZeroPadded | |
| LeftAdjusted | |
| BlankBeforePositive | |
| AlwaysShowSign | |
| GroupDigits | |
| CapitalEorX | |
| ShowBase | |
| UppercaseBase | |
| ZeroPadExponent | |
| ForcePoint | |
Definition at line 265 of file qlocale_p.h.
| Enumerator | |
|---|---|
| IntegerMode | |
| DoubleStandardMode | |
| DoubleScientificMode | |
Definition at line 281 of file qlocale_p.h.
|
staticnodiscard |
Definition at line 528 of file qlocale.cpp.
|
staticnodiscard |
Definition at line 5171 of file qlocale.cpp.
|
staticnodiscard |
Definition at line 5179 of file qlocale.cpp.
|
staticnodiscardnoexcept |
Definition at line 970 of file qlocale.cpp.
References locale_data.
|
inlinestaticnodiscard |
Definition at line 339 of file qlocale_p.h.
Referenced by QByteArray::toFloat(), and QtPrivate::toFloat().
|
staticnodiscard |
Definition at line 538 of file qlocale.cpp.
References locale_data.
|
nodiscard |
Definition at line 1078 of file qlocale.cpp.
|
inlinenodiscard |
Definition at line 540 of file qlocale_p.h.
References IntegerMode.
|
nodiscard |
Definition at line 4074 of file qlocale.cpp.
References AddTrailingZeroes, CapitalEorX, DFDecimal, DFExponent, DFSignificantDigits, QLocaleData::GroupSizes::first, ForcePoint, GroupDigits, QLocaleData::GroupSizes::higher, QLocaleData::GroupSizes::least, LeftAdjusted, ZeroPadded, and ZeroPadExponent.
|
nodiscard |
Definition at line 1129 of file qlocale.cpp.
References single_character_data.
Definition at line 596 of file qlocale.cpp.
References QLocaleId::language_id, QLocaleId::script_id, QLocaleId::territory_id, and QLocaleId::withLikelySubtagsAdded().
| QLocaleData::ForEachQLocaleRange | ( | rangeIndex | ) |
|
nodiscard |
Definition at line 1083 of file qlocale.cpp.
|
nodiscard |
Definition at line 1134 of file qlocale.cpp.
|
inlinenodiscard |
Definition at line 551 of file qlocale_p.h.
Referenced by QLocalePrivate::bcp47Name().
|
nodiscard |
Definition at line 1093 of file qlocale.cpp.
References single_character_data.
|
nodiscard |
Definition at line 4317 of file qlocale.cpp.
|
nodiscard |
Definition at line 1119 of file qlocale.cpp.
|
nodiscard |
Returns a DigitSequence describing some portion of text starting at from.
QLocaleData::DigitSequence QLocaleData::digitSequence(QStringView text, QLocaleData::DigitSequence::Options, qsizetype from)
As for the \l{QLocaleData::}{DigitSequence} constructor, supplying the \l{QLocaleData::}{NumericData} for this QLocaleData instance and the IntegerMode as the relevant argument to it.
Definition at line 4858 of file qlocale.cpp.
|
nodiscard |
Definition at line 1088 of file qlocale.cpp.
References single_character_data.
|
nodiscard |
Definition at line 1124 of file qlocale.cpp.
|
nodiscard |
Definition at line 5116 of file qlocale.cpp.
|
nodiscard |
Definition at line 5132 of file qlocale.cpp.
|
nodiscard |
Definition at line 5143 of file qlocale.cpp.
|
nodiscard |
Definition at line 4332 of file qlocale.cpp.
|
nodiscard |
Definition at line 5020 of file qlocale.cpp.
References QLocaleData::ParsingResult::Acceptable, DoubleScientificMode, IntegerMode, QLocaleData::ParsingResult::Intermediate, and QLocaleData::ParsingResult::state.
|
nodiscard |
Definition at line 1098 of file qlocale.cpp.
|
nodiscard |
Definition at line 1103 of file qlocale.cpp.
References single_character_data, and QLocaleData::DataRange::ucsFirst().
| quint8 QLocaleData::m_currency_digits |
Definition at line 660 of file qlocale_p.h.
| quint8 QLocaleData::m_currency_rounding |
Definition at line 661 of file qlocale_p.h.
| quint8 QLocaleData::m_first_day_of_week |
Definition at line 662 of file qlocale_p.h.
| quint8 QLocaleData::m_grouping_first |
Definition at line 665 of file qlocale_p.h.
| quint8 QLocaleData::m_grouping_higher |
Definition at line 666 of file qlocale_p.h.
| quint8 QLocaleData::m_grouping_least |
Definition at line 667 of file qlocale_p.h.
| quint8 QLocaleData::m_weekend_end |
Definition at line 664 of file qlocale_p.h.
| quint8 QLocaleData::m_weekend_start |
Definition at line 663 of file qlocale_p.h.