QLocale

Binding for C++ class QLocale.

extern (C++) extern (C++)
@Q_RELOCATABLE_TYPE
struct QLocale {}

Constructors

this
this()
Undocumented in source.
this
this(const(QString) name)
Undocumented in source.
this
this(Language language, Territory territory)
Undocumented in source.
this
this(Language language, Script script, Territory territory)
Undocumented in source.
this
this(const(QLocale) other)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Postblit

this(this)
this(this)
Undocumented in source.

Members

Aliases

DataSizeFormats
alias DataSizeFormats = QFlags!(DataSizeFormat)
Undocumented in source.
NumberOptions
alias NumberOptions = QFlags!(NumberOption)
Undocumented in source.
Territory
alias Territory = Country
Undocumented in source.

Enums

Country
enum Country
Undocumented in source.
CurrencySymbolFormat
enum CurrencySymbolFormat
Undocumented in source.
DataSizeFormat
enum DataSizeFormat
Undocumented in source.
FloatingPointPrecisionOption
enum FloatingPointPrecisionOption
Undocumented in source.
FormatType
enum FormatType
Undocumented in source.
Language
enum Language
Undocumented in source.
MeasurementSystem
enum MeasurementSystem
Undocumented in source.
NumberOption
enum NumberOption
Undocumented in source.
QuotationStyle
enum QuotationStyle
Undocumented in source.
Script
enum Script
Undocumented in source.

Functions

amText
QString amText()
Undocumented in source.
bcp47Name
QString bcp47Name()
Undocumented in source.
collation
QLocale collation()
Undocumented in source.
country
Country country()
Undocumented in source.
createSeparatedList
QString createSeparatedList(const(QStringList) strl)
Undocumented in source.
currencySymbol
QString currencySymbol(CurrencySymbolFormat )
Undocumented in source.
dateFormat
QString dateFormat(FormatType format)
Undocumented in source.
dateTimeFormat
QString dateTimeFormat(FormatType format)
Undocumented in source.
dayName
QString dayName(int , FormatType format)
Undocumented in source.
decimalPoint
QString decimalPoint()
Undocumented in source.
exponential
QString exponential()
Undocumented in source.
firstDayOfWeek
qt.core.namespace.DayOfWeek firstDayOfWeek()
Undocumented in source.
formattedDataSize
QString formattedDataSize(qint64 bytes, int precision, DataSizeFormats format)
Undocumented in source.
groupSeparator
QString groupSeparator()
Undocumented in source.
language
Language language()
Undocumented in source.
measurementSystem
MeasurementSystem measurementSystem()
Undocumented in source.
monthName
QString monthName(int , FormatType format)
Undocumented in source.
name
QString name()
Undocumented in source.
nativeCountryName
QString nativeCountryName()
Undocumented in source.
nativeLanguageName
QString nativeLanguageName()
Undocumented in source.
nativeTerritoryName
QString nativeTerritoryName()
Undocumented in source.
negativeSign
QString negativeSign()
Undocumented in source.
numberOptions
NumberOptions numberOptions()
Undocumented in source.
percent
QString percent()
Undocumented in source.
pmText
QString pmText()
Undocumented in source.
positiveSign
QString positiveSign()
Undocumented in source.
quoteString
QString quoteString(const(QString) str, QuotationStyle style)
Undocumented in source. Be warned that the author may not have intended to support it.
quoteString
QString quoteString(QStringView str, QuotationStyle style)
Undocumented in source.
rawConstructor
typeof(this) rawConstructor()
Undocumented in source.
script
Script script()
Undocumented in source.
setNumberOptions
void setNumberOptions(NumberOptions options)
Undocumented in source.
standaloneDayName
QString standaloneDayName(int , FormatType format)
Undocumented in source.
standaloneMonthName
QString standaloneMonthName(int , FormatType format)
Undocumented in source.
territory
Territory territory()
Undocumented in source.
textDirection
qt.core.namespace.LayoutDirection textDirection()
Undocumented in source.
timeFormat
QString timeFormat(FormatType format)
Undocumented in source.
toCurrencyString
QString toCurrencyString(qlonglong , const(QString) symbol)
Undocumented in source.
toCurrencyString
QString toCurrencyString(qulonglong , const(QString) symbol)
Undocumented in source.
toCurrencyString
QString toCurrencyString(short i, const(QString) symbol)
Undocumented in source. Be warned that the author may not have intended to support it.
toCurrencyString
QString toCurrencyString(ushort i, const(QString) symbol)
Undocumented in source. Be warned that the author may not have intended to support it.
toCurrencyString
QString toCurrencyString(int i, const(QString) symbol)
Undocumented in source. Be warned that the author may not have intended to support it.
toCurrencyString
QString toCurrencyString(uint i, const(QString) symbol)
Undocumented in source. Be warned that the author may not have intended to support it.
toCurrencyString
QString toCurrencyString(double , const(QString) symbol, int precision)
Undocumented in source.
toCurrencyString
QString toCurrencyString(float i, const(QString) symbol, int precision)
Undocumented in source. Be warned that the author may not have intended to support it.
toDate
QDate toDate(const(QString) string, FormatType )
Undocumented in source.
toDate
QDate toDate(const(QString) string, const(QString) format)
Undocumented in source.
toDate
QDate toDate(const(QString) string, FormatType format, QCalendar cal)
Undocumented in source.
toDate
QDate toDate(const(QString) string, const(QString) format, QCalendar cal)
Undocumented in source.
toDateTime
QDateTime toDateTime(const(QString) string, FormatType format)
Undocumented in source.
toDateTime
QDateTime toDateTime(const(QString) string, const(QString) format)
Undocumented in source.
toDateTime
QDateTime toDateTime(const(QString) string, FormatType format, QCalendar cal)
Undocumented in source.
toDateTime
QDateTime toDateTime(const(QString) string, const(QString) format, QCalendar cal)
Undocumented in source.
toDouble
double toDouble(const(QString) s, bool* ok)
Undocumented in source. Be warned that the author may not have intended to support it.
toDouble
double toDouble(QStringView s, bool* ok)
Undocumented in source.
toFloat
float toFloat(const(QString) s, bool* ok)
Undocumented in source. Be warned that the author may not have intended to support it.
toFloat
float toFloat(QStringView s, bool* ok)
Undocumented in source.
toInt
int toInt(const(QString) s, bool* ok)
Undocumented in source. Be warned that the author may not have intended to support it.
toInt
int toInt(QStringView s, bool* ok)
Undocumented in source.
toLong
cpp_long toLong(const(QString) s, bool* ok)
Undocumented in source. Be warned that the author may not have intended to support it.
toLong
cpp_long toLong(QStringView s, bool* ok)
Undocumented in source.
toLongLong
qlonglong toLongLong(const(QString) s, bool* ok)
Undocumented in source. Be warned that the author may not have intended to support it.
toLongLong
qlonglong toLongLong(QStringView s, bool* ok)
Undocumented in source.
toLower
QString toLower(const(QString) str)
Undocumented in source.
toShort
short toShort(const(QString) s, bool* ok)
Undocumented in source. Be warned that the author may not have intended to support it.
toShort
short toShort(QStringView s, bool* ok)
Undocumented in source.
toString
QString toString(qlonglong i)
Undocumented in source.
toString
QString toString(qulonglong i)
Undocumented in source.
toString
QString toString(cpp_long i)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
QString toString(cpp_ulong i)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
QString toString(short i)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
QString toString(ushort i)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
QString toString(int i)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
QString toString(uint i)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
QString toString(double f, char format, int precision)
Undocumented in source.
toString
QString toString(float f, char format, int precision)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
QString toString(QDate date, const(QString) format)
Undocumented in source.
toString
QString toString(QTime time, const(QString) format)
Undocumented in source.
toString
QString toString(const(QDateTime) dateTime, const(QString) format)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
QString toString(QDate date, QStringView format)
Undocumented in source.
toString
QString toString(QTime time, QStringView format)
Undocumented in source.
toString
QString toString(const(QDateTime) dateTime, QStringView format)
Undocumented in source.
toString
QString toString(QDate date, FormatType format)
Undocumented in source.
toString
QString toString(QTime time, FormatType format)
Undocumented in source.
toString
QString toString(const(QDateTime) dateTime, FormatType format)
Undocumented in source.
toString
QString toString(QDate date, QStringView format, QCalendar cal)
Undocumented in source.
toString
QString toString(QDate date, FormatType format, QCalendar cal)
Undocumented in source.
toString
QString toString(const(QDateTime) dateTime, FormatType format, QCalendar cal)
Undocumented in source.
toString
QString toString(const(QDateTime) dateTime, QStringView format, QCalendar cal)
Undocumented in source.
toTime
QTime toTime(const(QString) string, FormatType )
Undocumented in source.
toTime
QTime toTime(const(QString) string, const(QString) format)
Undocumented in source.
toUInt
uint toUInt(const(QString) s, bool* ok)
Undocumented in source. Be warned that the author may not have intended to support it.
toUInt
uint toUInt(QStringView s, bool* ok)
Undocumented in source.
toULong
cpp_ulong toULong(const(QString) s, bool* ok)
Undocumented in source. Be warned that the author may not have intended to support it.
toULong
cpp_ulong toULong(QStringView s, bool* ok)
Undocumented in source.
toULongLong
qulonglong toULongLong(const(QString) s, bool* ok)
Undocumented in source. Be warned that the author may not have intended to support it.
toULongLong
qulonglong toULongLong(QStringView s, bool* ok)
Undocumented in source.
toUShort
ushort toUShort(const(QString) s, bool* ok)
Undocumented in source. Be warned that the author may not have intended to support it.
toUShort
ushort toUShort(QStringView s, bool* ok)
Undocumented in source.
toUpper
QString toUpper(const(QString) str)
Undocumented in source.
uiLanguages
QStringList uiLanguages()
Undocumented in source.
weekdays
QList!(qt.core.namespace.DayOfWeek) weekdays()
Undocumented in source.
zeroDigit
QString zeroDigit()
Undocumented in source.

Static functions

c
QLocale c()
Undocumented in source. Be warned that the author may not have intended to support it.
codeToCountry
Country codeToCountry(QStringView countryCode)
Undocumented in source.
codeToLanguage
Language codeToLanguage(QStringView languageCode)
Undocumented in source.
codeToScript
Script codeToScript(QStringView scriptCode)
Undocumented in source.
codeToTerritory
Territory codeToTerritory(QStringView territoryCode)
Undocumented in source.
countriesForLanguage
QList!(Country) countriesForLanguage(Language lang)
Undocumented in source.
countryToCode
QString countryToCode(Country country)
Undocumented in source.
countryToString
QString countryToString(Country country)
Undocumented in source.
create
typeof(this) create()
Undocumented in source. Be warned that the author may not have intended to support it.
languageToCode
QString languageToCode(Language language)
Undocumented in source.
languageToString
QString languageToString(Language language)
Undocumented in source.
scriptToCode
QString scriptToCode(Script script)
Undocumented in source.
scriptToString
QString scriptToString(Script script)
Undocumented in source.
setDefault
void setDefault(const(QLocale) locale)
Undocumented in source.
system
QLocale system()
Undocumented in source.
territoryToCode
QString territoryToCode(Territory territory)
Undocumented in source.
territoryToString
QString territoryToString(Territory territory)
Undocumented in source.

Meta