- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Converts between numbers and their string representations in various languages
Java wrapper for Qt's class QLocale
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QLocale::Countrystatic enum
Java wrapper for Qt enum QLocale::CurrencySymbolFormatstatic enum
Java wrapper for Qt enum QLocale::DataSizeFormatstatic final class
QFlags type for enumQLocale.DataSizeFormat
static enum
Java wrapper for Qt enum QLocale::FloatingPointPrecisionOptionstatic enum
Java wrapper for Qt enum QLocale::FormatTypestatic enum
Java wrapper for Qt enum QLocale::Languagestatic enum
Java wrapper for Qt enum QLocale::MeasurementSystemstatic enum
Java wrapper for Qt enum QLocale::NumberOptionstatic final class
QFlags type for enumQLocale.NumberOption
static enum
Java wrapper for Qt enum QLocale::QuotationStylestatic enum
Java wrapper for Qt enum QLocale::ScriptNested 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
ModifierConstructorDescriptionQLocale()
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) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
amText()
final String
static QLocale
c()
See QLocale::c()clone()
static QLocale.Country
codeToCountry
(String countryCode) static QLocale.Language
codeToLanguage
(String languageCode) static QLocale.Script
codeToScript
(String scriptCode) static QLocale.Country
codeToTerritory
(String territoryCode) final QLocale
static QList<QLocale.Country>
final QLocale.Country
country()
static String
countryToCode
(QLocale.Country country) static String
countryToString
(QLocale.Country 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
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.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()
final QLocale.Language
language()
static String
languageToCode
(QLocale.Language language) 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()
final String
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) 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()
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
final 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
-
QLocale
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
amText
-
bcp47Name
-
collation
-
country
-
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
-
nativeCountryName
-
nativeLanguageName
-
nativeTerritoryName
-
negativeSign
-
numberOptions
-
writeTo
-
readFrom
-
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
-
weekdays
-
zeroDigit
-
c
See QLocale::c()
-
codeToCountry
-
codeToLanguage
-
codeToScript
-
codeToTerritory
-
countriesForLanguage
-
countryToCode
-
countryToString
-
languageToCode
-
languageToString
-
matchingLocales
public static QList<QLocale> matchingLocales(QLocale.Language language, QLocale.Script script, QLocale.Country territory) -
scriptToCode
-
scriptToString
-
setDefault
-
system
-
territoryToCode
-
territoryToString
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-