Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include "qlocale.h"
#include <QtCore/qcalendar.h>
#include <QtCore/qlist.h>
#include <QtCore/qnumeric.h>
#include <QtCore/private/qnumeric_p.h>
#include <QtCore/qstring.h>
#include <QtCore/qvariant.h>
#include <QtCore/qvarlengtharray.h>
#include <limits>
#include <cmath>
#include <string_view>
Go to the source code of this file.
Classes | |
struct | QSimpleParsedNumber< T > |
struct | QCharacterSetMatch< MaskType, Lowest > |
class | QSystemLocale |
struct | QSystemLocale::CurrencyToStringArgument |
struct | QLocaleId |
struct | ParsingResult |
struct | QLocaleData |
struct | QLocaleData::NumericData |
struct | QLocaleData::DataRange |
class | QLocalePrivate |
Namespaces | |
namespace | QtPrivate |
\macro QT_NO_KEYWORDS > | |
Macros | |
#define | ForEachQLocaleRange(X) |
#define | rangeGetter(name) [[nodiscard]] DataRange name() const { return { m_ ## name ## _idx, m_ ## name ## _size }; } |
#define | rangeIndex(name) quint16 m_ ## name ## _idx; |
#define | Size(name) quint8 m_ ## name ## _size; |
Typedefs | |
using | CharBuff = QVarLengthArray<char, 256> |
Functions | |
template<const char * Set, int ForcedLowest = -1> | |
constexpr auto | QtPrivate::makeCharacterSetMatch () |
Q_DECLARE_TYPEINFO (QSystemLocale::QueryType, Q_PRIMITIVE_TYPE) | |
Q_DECLARE_TYPEINFO (QSystemLocale::CurrencyToStringArgument, Q_RELOCATABLE_TYPE) | |
Q_DECLARE_TYPEINFO (QLocaleId, Q_PRIMITIVE_TYPE) | |
QString | qt_readEscapedFormatString (QStringView format, qsizetype *idx) |
bool | qt_splitLocaleName (QStringView name, QStringView *lang=nullptr, QStringView *script=nullptr, QStringView *cntry=nullptr) |
qsizetype | qt_repeatCount (QStringView s) |
constexpr bool | ascii_isspace (uchar c) |
Variables | |
constexpr char | QtPrivate::ascii_space_chars [] |
#define ForEachQLocaleRange | ( | X | ) |
Definition at line 446 of file qlocale_p.h.
#define rangeGetter | ( | name | ) | [[nodiscard]] DataRange name() const { return { m_ ## name ## _idx, m_ ## name ## _size }; } |
Definition at line 460 of file qlocale_p.h.
Definition at line 469 of file qlocale_p.h.
using CharBuff = QVarLengthArray<char, 256> |
Definition at line 228 of file qlocale_p.h.
|
inlineconstexpr |
Definition at line 556 of file qlocale_p.h.
References matcher.
Referenced by checkParsed(), QStringAlgorithms< StringType >::isSpace(), qstrntoll(), qstrntoull(), read_pbm_header(), and read_pbm_int().
Q_DECLARE_TYPEINFO | ( | QLocaleId | , |
Q_PRIMITIVE_TYPE | ) |
Q_DECLARE_TYPEINFO | ( | QSystemLocale::CurrencyToStringArgument | , |
Q_RELOCATABLE_TYPE | ) |
Q_DECLARE_TYPEINFO | ( | QSystemLocale::QueryType | , |
Q_PRIMITIVE_TYPE | ) |
QString qt_readEscapedFormatString | ( | QStringView | format, |
qsizetype * | idx ) |
Definition at line 625 of file qlocale.cpp.
Referenced by QCalendarBackend::dateTimeToString(), macToQtFormat(), and timeFormatContainsAP().
qsizetype qt_repeatCount | ( | QStringView | s | ) |
Counts the number of identical leading characters in s.
If s is empty, returns 0.
Otherwise, returns the number of consecutive {s.front()} characters at the start of s.
Definition at line 675 of file qlocale.cpp.
References j.
Referenced by countRepeat(), QCalendarBackend::dateTimeToString(), and macToQtFormat().
bool qt_splitLocaleName | ( | QStringView | name, |
QStringView * | lang = nullptr, | ||
QStringView * | script = nullptr, | ||
QStringView * | cntry = nullptr ) |
Definition at line 567 of file qlocale.cpp.
References findTag(), isScript(), Q_FALLTHROUGH, sep, state, tag, and validTag().
Referenced by QLocaleId::fromName(), and scanLangEnv().