![]() |
Qt 6.x
The Qt SDK
|
#include "qlocale.h"
#include <QtCore/private/qglobal_p.h>
#include <QtCore/qcalendar.h>
#include <QtCore/qlist.h>
#include <QtCore/qnumeric.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 | QCharacterSetMatch< MaskType, Lowest > |
class | QSystemLocale |
struct | QSystemLocale::CurrencyToStringArgument |
struct | QLocaleId |
struct | QLocaleData |
struct | QLocaleData::NumericData |
struct | QLocaleData::DataRange |
class | QLocalePrivate |
Namespaces | |
namespace | QtPrivate |
\macro QT_NAMESPACE | |
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 429 of file qlocale_p.h.
#define rangeGetter | ( | name | ) | [[nodiscard]] DataRange name() const { return { m_ ## name ## _idx, m_ ## name ## _size }; } |
Definition at line 443 of file qlocale_p.h.
Definition at line 452 of file qlocale_p.h.
using CharBuff = QVarLengthArray<char, 256> |
Definition at line 215 of file qlocale_p.h.
|
inlineconstexpr |
Definition at line 539 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 623 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 673 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 565 of file qlocale.cpp.
References findTag(), isScript(), Q_FALLTHROUGH, sep, state, tag, and validTag().
Referenced by QLocaleId::fromName(), and getWinLocaleName().