- 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.Country)
withcountry = io.qt.core.QLocale.Country.AnyCountry
.QLocale
(QLocale.Language language, QLocale.Country country) QLocale
(QLocale.Language language, QLocale.Script script, QLocale.Country country) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal String
amText()
final String
static QLocale
c()
See QLocale::c()clone()
final QLocale
static QList<QLocale.Country>
final 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 char
boolean
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.final char
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 char
int
hashCode()
final QLocale.Language
language()
static String
languageToString
(QLocale.Language language) matchingLocales
(QLocale.Language language, QLocale.Script script, QLocale.Country country) 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 char
final QLocale.NumberOptions
final char
percent()
final String
pmText()
final char
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
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 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)
withsymbol = (String)null
.final String
toCurrencyString
(double arg__1, String symbol) final String
toCurrencyString
(double arg__1, String symbol, int precision) final String
toCurrencyString
(float i) Overloaded function fortoCurrencyString(float, java.lang.String)
withsymbol = (String)null
.final String
toCurrencyString
(float i, String symbol) final String
toCurrencyString
(float i, String symbol, int precision) final String
toCurrencyString
(int arg__1) Overloaded function fortoCurrencyString(int, java.lang.String)
withsymbol = (String)null
.final String
toCurrencyString
(int arg__1, 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 arg__1) Overloaded function fortoCurrencyString(short, java.lang.String)
withsymbol = (String)null
.final String
toCurrencyString
(short arg__1, 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 i) Overloaded function fortoString(double, byte, int)
final String
toString
(double i, byte f) Overloaded function fortoString(double, byte, int)
withprec = 6
.final String
toString
(double i, byte f, int prec) final String
toString
(float i) Overloaded function fortoString(float, byte, int)
final String
toString
(float i, byte f) Overloaded function fortoString(float, byte, int)
withprec = 6
.final String
toString
(float i, byte f, int prec) 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
toTime
(String string, QLocale.FormatType format, QCalendar cal) Deprecated.Calendar is ignored when parsing timesfinal QTime
final QTime
Deprecated.Calendar is ignored when parsing timesfinal String
final QStringList
final QList<Qt.DayOfWeek>
weekdays()
void
writeTo
(QDataStream arg__1) final char
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
Overloaded constructor for
QLocale(io.qt.core.QLocale.Language, io.qt.core.QLocale.Country)
withcountry = io.qt.core.QLocale.Country.AnyCountry
. -
QLocale
-
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
-
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
-
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)
withsymbol = (String)null
. -
toCurrencyString
-
toCurrencyString
-
toCurrencyString
Overloaded function for
toCurrencyString(float, java.lang.String)
withsymbol = (String)null
. -
toCurrencyString
-
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.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(io.qt.core.QTime, io.qt.core.QLocale.FormatType)
withformat = io.qt.core.QLocale.FormatType.LongFormat
. -
toString
-
toString
-
toString
Overloaded function for
toString(double, byte, int)
withprec = 6
. -
toString
-
toString
-
toString
Overloaded function for
toString(float, byte, int)
withprec = 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
@Deprecated @QtUninvokable public final QTime toTime(String string, QLocale.FormatType format, QCalendar cal) Deprecated.Calendar is ignored when parsing times -
toTime
-
toTime
Deprecated.Calendar is ignored when parsing times -
toUpper
-
uiLanguages
-
weekdays
-
zeroDigit
-
c
See QLocale::c()
-
countriesForLanguage
-
countryToString
-
languageToString
-
matchingLocales
public static QList<QLocale> matchingLocales(QLocale.Language language, QLocale.Script script, QLocale.Country country) -
scriptToString
-
setDefault
-
system
-
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
-