- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Converts between numbers and their string representations in various languages
Java wrapper for Qt class QLocale
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQLocale::Country
static enum
Java wrapper for Qt enumQLocale::CurrencySymbolFormat
static enum
Java wrapper for Qt enumQLocale::DataSizeFormat
static final class
QFlags
type for enumQLocale.DataSizeFormat
static enum
Java wrapper for Qt enumQLocale::FloatingPointPrecisionOption
static enum
Java wrapper for Qt enumQLocale::FormatType
static enum
Java wrapper for Qt enumQLocale::Language
static enum
Java wrapper for Qt enumQLocale::LanguageCodeType
static final class
QFlags
type for enumQLocale.LanguageCodeType
static enum
Java wrapper for Qt enumQLocale::MeasurementSystem
static enum
Java wrapper for Qt enumQLocale::NumberOption
static final class
QFlags
type for enumQLocale.NumberOption
static enum
Java wrapper for Qt enumQLocale::QuotationStyle
static enum
Java wrapper for Qt enumQLocale::Script
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ConstructorDescriptionQLocale()
QLocale
(QLocale.Language language) Overloaded constructor forQLocale(io.qt.core.QLocale.Language, io.qt.core.QLocale.Script, io.qt.core.QLocale.Country)
QLocale
(QLocale.Language language, QLocale.Country territory) QLocale
(QLocale.Language language, QLocale.Script script) Overloaded constructor forQLocale(io.qt.core.QLocale.Language, io.qt.core.QLocale.Script, io.qt.core.QLocale.Country)
withterritory = io.qt.core.QLocale.Country.AnyTerritory
.QLocale
(QLocale.Language language, QLocale.Script script, QLocale.Country territory) -
Method Summary
Modifier and TypeMethodDescriptionfinal String
amText()
final void
final String
Returns the BCP47 field names joined with dashesstatic QLocale
c()
SeeQLocale::
c() clone()
Creates and returns a copy of this object.static QLocale.Country
codeToCountry
(String countryCode) SeeQLocale::
codeToCountry(QStringView) static QLocale.Language
codeToLanguage
(String languageCode) Overloaded function forcodeToLanguage(java.lang.String, io.qt.core.QLocale.LanguageCodeTypes)
withcodeTypes = new io.qt.core.QLocale.LanguageCodeTypes(-1)
.static QLocale.Language
codeToLanguage
(String languageCode, QLocale.LanguageCodeType ... codeTypes) Overloaded function forcodeToLanguage(java.lang.String, io.qt.core.QLocale.LanguageCodeTypes)
.static QLocale.Language
codeToLanguage
(String languageCode, QLocale.LanguageCodeTypes codeTypes) static QLocale.Script
codeToScript
(String scriptCode) static QLocale.Country
codeToTerritory
(String territoryCode) final QLocale
static QList<QLocale.Country>
SeeQLocale::
countriesForLanguage(QLocale::Language) final QLocale.Country
country()
SeeQLocale::
country()const static String
countryToCode
(QLocale.Country country) SeeQLocale::
countryToCode(QLocale::Country) static String
countryToString
(QLocale.Country country) SeeQLocale::
countryToString(QLocale::Country) final String
createSeparatedList
(Collection<String> strl) final String
Overloaded function forcurrencySymbol(io.qt.core.QLocale.CurrencySymbolFormat)
witharg__1 = io.qt.core.QLocale.CurrencySymbolFormat.CurrencySymbol
.final String
final String
Overloaded function fordateFormat(io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
dateFormat
(QLocale.FormatType format) final String
Overloaded function fordateTimeFormat(io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
dateTimeFormat
(QLocale.FormatType format) final String
dayName
(int arg__1) Overloaded function fordayName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
dayName
(int arg__1, QLocale.FormatType format) final String
boolean
final String
final Qt.DayOfWeek
final String
formattedDataSize
(long bytes) Overloaded function forformattedDataSize(long, int, io.qt.core.QLocale.DataSizeFormats)
final String
formattedDataSize
(long bytes, int precision) Overloaded function forformattedDataSize(long, int, io.qt.core.QLocale.DataSizeFormats)
withformat = new io.qt.core.QLocale.DataSizeFormats(0)
.final String
formattedDataSize
(long bytes, int precision, QLocale.DataSizeFormat ... format) Overloaded function forformattedDataSize(long, int, io.qt.core.QLocale.DataSizeFormats)
.final String
formattedDataSize
(long bytes, int precision, QLocale.DataSizeFormats format) final String
int
hashCode()
Returns the objects's hash code computed byqHash(QLocale)
.final QLocale.Language
language()
static String
languageToCode
(QLocale.Language language) Overloaded function forlanguageToCode(io.qt.core.QLocale.Language, io.qt.core.QLocale.LanguageCodeTypes)
withcodeTypes = new io.qt.core.QLocale.LanguageCodeTypes(-1)
.static String
languageToCode
(QLocale.Language language, QLocale.LanguageCodeType ... codeTypes) Overloaded function forlanguageToCode(io.qt.core.QLocale.Language, io.qt.core.QLocale.LanguageCodeTypes)
.static String
languageToCode
(QLocale.Language language, QLocale.LanguageCodeTypes codeTypes) static String
languageToString
(QLocale.Language language) matchingLocales
(QLocale.Language language, QLocale.Script script, QLocale.Country territory) final String
monthName
(int arg__1) Overloaded function formonthName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
monthName
(int arg__1, QLocale.FormatType format) final String
name()
Short name of this localefinal String
SeeQLocale::
nativeCountryName()const final String
final String
final String
final QLocale.NumberOptions
final String
percent()
final String
pmText()
final String
final String
quoteString
(String str) Overloaded function forquoteString(java.lang.String, io.qt.core.QLocale.QuotationStyle)
withstyle = io.qt.core.QLocale.QuotationStyle.StandardQuotation
.final String
quoteString
(String str, QLocale.QuotationStyle style) void
readFrom
(QDataStream arg__1) Seeoperator>>(QDataStream&,
QLocale&) final QLocale.Script
script()
static String
scriptToCode
(QLocale.Script script) static String
scriptToString
(QLocale.Script script) static void
setDefault
(QLocale locale) final void
setNumberOptions
(QLocale.NumberOption ... options) Overloaded function forsetNumberOptions(io.qt.core.QLocale.NumberOptions)
.final void
setNumberOptions
(QLocale.NumberOptions options) final String
standaloneDayName
(int arg__1) Overloaded function forstandaloneDayName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
standaloneDayName
(int arg__1, QLocale.FormatType format) final String
standaloneMonthName
(int arg__1) Overloaded function forstandaloneMonthName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
standaloneMonthName
(int arg__1, QLocale.FormatType format) final void
static QLocale
system()
final QLocale.Country
static String
territoryToCode
(QLocale.Country territory) static String
territoryToString
(QLocale.Country territory) final Qt.LayoutDirection
final String
Overloaded function fortimeFormat(io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
timeFormat
(QLocale.FormatType format) final String
toCurrencyString
(double arg__1) Overloaded function fortoCurrencyString(double, java.lang.String, int)
final String
toCurrencyString
(double arg__1, String symbol) Overloaded function fortoCurrencyString(double, java.lang.String, int)
withprecision = -1
.final String
toCurrencyString
(double arg__1, String symbol, int precision) final String
toCurrencyString
(float i) Overloaded function fortoCurrencyString(float, java.lang.String, int)
final String
toCurrencyString
(float i, String symbol) Overloaded function fortoCurrencyString(float, java.lang.String, int)
withprecision = -1
.final String
toCurrencyString
(float i, String symbol, int precision) final String
toCurrencyString
(int i) Overloaded function fortoCurrencyString(int, java.lang.String)
withsymbol = (String)null
.final String
toCurrencyString
(int i, String symbol) final String
toCurrencyString
(long arg__1) Overloaded function fortoCurrencyString(long, java.lang.String)
withsymbol = (String)null
.final String
toCurrencyString
(long arg__1, String symbol) final String
toCurrencyString
(short i) Overloaded function fortoCurrencyString(short, java.lang.String)
withsymbol = (String)null
.final String
toCurrencyString
(short i, String symbol) final QDate
Overloaded function fortoDate(java.lang.String, io.qt.core.QLocale.FormatType)
witharg__2 = io.qt.core.QLocale.FormatType.LongFormat
.final QDate
toDate
(String string, QLocale.FormatType arg__2) final QDate
toDate
(String string, QLocale.FormatType format, QCalendar cal) final QDate
final QDate
final QDateTime
toDateTime
(String string) Overloaded function fortoDateTime(java.lang.String, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final QDateTime
toDateTime
(String string, QLocale.FormatType format) final QDateTime
toDateTime
(String string, QLocale.FormatType format, QCalendar cal) final QDateTime
toDateTime
(String string, String format) final QDateTime
toDateTime
(String string, String format, QCalendar cal) final double
final float
final int
final long
final String
final short
toString()
Seeoperator<<(QDebug,
QLocale) final String
toString
(double f) Overloaded function fortoString(double, byte, int)
final String
toString
(double f, byte format) Overloaded function fortoString(double, byte, int)
withprecision = 6
.final String
toString
(double f, byte format, int precision) final String
toString
(float f) Overloaded function fortoString(float, byte, int)
final String
toString
(float f, byte format) Overloaded function fortoString(float, byte, int)
withprecision = 6
.final String
toString
(float f, byte format, int precision) final String
toString
(int i) final String
toString
(long i) final String
toString
(short i) final String
Overloaded function fortoString(io.qt.core.QDate, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
toString
(QDate date, QLocale.FormatType format) final String
toString
(QDate date, QLocale.FormatType format, QCalendar cal) final String
final String
final String
Overloaded function fortoString(io.qt.core.QDateTime, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
toString
(QDateTime dateTime, QLocale.FormatType format) final String
toString
(QDateTime dateTime, QLocale.FormatType format, QCalendar cal) final String
final String
final String
Overloaded function fortoString(io.qt.core.QTime, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
.final String
toString
(QTime time, QLocale.FormatType format) final String
final QTime
Overloaded function fortoTime(java.lang.String, io.qt.core.QLocale.FormatType)
witharg__2 = io.qt.core.QLocale.FormatType.LongFormat
.final QTime
toTime
(String string, QLocale.FormatType arg__2) final QTime
final String
final QStringList
List of locale names for use in selecting translationsfinal QList<Qt.DayOfWeek>
weekdays()
void
writeTo
(QDataStream arg__1) final String
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QLocale
public QLocale() -
QLocale
-
QLocale
Overloaded constructor for
QLocale(io.qt.core.QLocale.Language, io.qt.core.QLocale.Script, io.qt.core.QLocale.Country)
withterritory = io.qt.core.QLocale.Country.AnyTerritory
. -
QLocale
Overloaded constructor for
QLocale(io.qt.core.QLocale.Language, io.qt.core.QLocale.Script, io.qt.core.QLocale.Country)
with:
script = io.qt.core.QLocale.Script.AnyScript
territory = io.qt.core.QLocale.Country.AnyTerritory
-
QLocale
-
QLocale
-
QLocale
-
-
Method Details
-
amText
-
bcp47Name
Returns the BCP47 field names joined with dashes
-
collation
-
country
See
QLocale::
country()const -
createSeparatedList
-
currencySymbol
Overloaded function for
currencySymbol(io.qt.core.QLocale.CurrencySymbolFormat)
witharg__1 = io.qt.core.QLocale.CurrencySymbolFormat.CurrencySymbol
. -
currencySymbol
-
dateFormat
Overloaded function for
dateFormat(io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
dateFormat
-
dateTimeFormat
Overloaded function for
dateTimeFormat(io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
dateTimeFormat
-
dayName
Overloaded function for
dayName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
dayName
-
decimalPoint
-
exponential
-
firstDayOfWeek
-
formattedDataSize
@QtUninvokable public final String formattedDataSize(long bytes, int precision, QLocale.DataSizeFormat ... format) Overloaded function for
formattedDataSize(long, int, io.qt.core.QLocale.DataSizeFormats)
. -
formattedDataSize
Overloaded function for
formattedDataSize(long, int, io.qt.core.QLocale.DataSizeFormats)
withformat = new io.qt.core.QLocale.DataSizeFormats(0)
. -
formattedDataSize
Overloaded function for
formattedDataSize(long, int, io.qt.core.QLocale.DataSizeFormats)
with:
precision = 2
format = new io.qt.core.QLocale.DataSizeFormats(0)
-
formattedDataSize
@QtUninvokable public final String formattedDataSize(long bytes, int precision, QLocale.DataSizeFormats format) -
groupSeparator
-
language
-
measurementSystem
-
monthName
Overloaded function for
monthName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
monthName
-
name
Short name of this locale
-
nativeCountryName
See
QLocale::
nativeCountryName()const -
nativeLanguageName
-
nativeTerritoryName
-
negativeSign
-
numberOptions
-
writeTo
-
assign
-
readFrom
See
operator>>(QDataStream&,
QLocale&) -
percent
-
pmText
-
positiveSign
-
quoteString
Overloaded function for
quoteString(java.lang.String, io.qt.core.QLocale.QuotationStyle)
withstyle = io.qt.core.QLocale.QuotationStyle.StandardQuotation
. -
quoteString
-
script
-
setNumberOptions
Overloaded function for
setNumberOptions(io.qt.core.QLocale.NumberOptions)
. -
setNumberOptions
-
standaloneDayName
Overloaded function for
standaloneDayName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
standaloneDayName
-
standaloneMonthName
Overloaded function for
standaloneMonthName(int, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
standaloneMonthName
-
swap
-
territory
-
textDirection
-
timeFormat
Overloaded function for
timeFormat(io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
timeFormat
-
toCurrencyString
Overloaded function for
toCurrencyString(double, java.lang.String, int)
withprecision = -1
. -
toCurrencyString
Overloaded function for
toCurrencyString(double, java.lang.String, int)
with:
symbol = (String)null
precision = -1
-
toCurrencyString
-
toCurrencyString
Overloaded function for
toCurrencyString(float, java.lang.String, int)
withprecision = -1
. -
toCurrencyString
Overloaded function for
toCurrencyString(float, java.lang.String, int)
with:
symbol = (String)null
precision = -1
-
toCurrencyString
-
toCurrencyString
Overloaded function for
toCurrencyString(int, java.lang.String)
withsymbol = (String)null
. -
toCurrencyString
-
toCurrencyString
Overloaded function for
toCurrencyString(long, java.lang.String)
withsymbol = (String)null
. -
toCurrencyString
-
toCurrencyString
Overloaded function for
toCurrencyString(short, java.lang.String)
withsymbol = (String)null
. -
toCurrencyString
-
toDate
Overloaded function for
toDate(java.lang.String, io.qt.core.QLocale.FormatType)
witharg__2 = io.qt.core.QLocale.FormatType.LongFormat
. -
toDate
-
toDate
-
toDate
-
toDate
-
toDateTime
Overloaded function for
toDateTime(java.lang.String, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
toDateTime
-
toDateTime
@QtUninvokable public final QDateTime toDateTime(String string, QLocale.FormatType format, QCalendar cal) -
toDateTime
-
toDateTime
-
toDouble
- Throws:
NumberFormatException
-
toFloat
- Throws:
NumberFormatException
-
toInt
- Throws:
NumberFormatException
-
toLong
- Throws:
NumberFormatException
-
toLower
-
toShort
- Throws:
NumberFormatException
-
toString
Overloaded function for
toString(io.qt.core.QDate, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
toString
-
toString
-
toString
-
toString
-
toString
Overloaded function for
toString(io.qt.core.QTime, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
toString
-
toString
-
toString
Overloaded function for
toString(io.qt.core.QDateTime, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
toString
-
toString
@QtUninvokable public final String toString(QDateTime dateTime, QLocale.FormatType format, QCalendar cal) -
toString
-
toString
-
toString
Overloaded function for
toString(double, byte, int)
withprecision = 6
. -
toString
-
toString
-
toString
Overloaded function for
toString(float, byte, int)
withprecision = 6
. -
toString
-
toString
-
toString
-
toString
-
toString
-
toTime
Overloaded function for
toTime(java.lang.String, io.qt.core.QLocale.FormatType)
witharg__2 = io.qt.core.QLocale.FormatType.LongFormat
. -
toTime
-
toTime
-
toUpper
-
uiLanguages
List of locale names for use in selecting translations
-
weekdays
-
zeroDigit
-
c
See
QLocale::
c() -
codeToCountry
See
QLocale::
codeToCountry(QStringView) -
codeToLanguage
public static QLocale.Language codeToLanguage(String languageCode, QLocale.LanguageCodeType ... codeTypes) Overloaded function for
codeToLanguage(java.lang.String, io.qt.core.QLocale.LanguageCodeTypes)
. -
codeToLanguage
Overloaded function for
codeToLanguage(java.lang.String, io.qt.core.QLocale.LanguageCodeTypes)
withcodeTypes = new io.qt.core.QLocale.LanguageCodeTypes(-1)
. -
codeToLanguage
public static QLocale.Language codeToLanguage(String languageCode, QLocale.LanguageCodeTypes codeTypes) -
codeToScript
-
codeToTerritory
-
countriesForLanguage
See
QLocale::
countriesForLanguage(QLocale::Language) -
countryToCode
See
QLocale::
countryToCode(QLocale::Country) -
countryToString
See
QLocale::
countryToString(QLocale::Country) -
languageToCode
public static String languageToCode(QLocale.Language language, QLocale.LanguageCodeType ... codeTypes) Overloaded function for
languageToCode(io.qt.core.QLocale.Language, io.qt.core.QLocale.LanguageCodeTypes)
. -
languageToCode
Overloaded function for
languageToCode(io.qt.core.QLocale.Language, io.qt.core.QLocale.LanguageCodeTypes)
withcodeTypes = new io.qt.core.QLocale.LanguageCodeTypes(-1)
. -
languageToCode
-
languageToString
-
matchingLocales
public static QList<QLocale> matchingLocales(QLocale.Language language, QLocale.Script script, QLocale.Country territory) -
scriptToCode
-
scriptToString
-
setDefault
-
system
-
territoryToCode
-
territoryToString
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QLocale)
. -
toString
See
operator<<(QDebug,
QLocale) -
clone
Creates and returns a copy of this object.
-