|
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ULocale | |
---|---|
com.ibm.icu.lang | Enhanced character property and surrogate support. |
com.ibm.icu.text | Extensions and enhancements to java.text to support unicode transforms, UnicodeSet, surrogate char utilities, UCA collation, normalization, break iteration (rule and dictionary based), enhanced number format, international string searching, and arabic shaping. |
com.ibm.icu.util | International calendars and other utility classes. |
Uses of ULocale in com.ibm.icu.lang |
---|
Methods in com.ibm.icu.lang with parameters of type ULocale | |
---|---|
static int[] |
UScript.getCode(ULocale locale)
Gets a script codes associated with the given locale or ISO 15924 abbreviation or name. |
static java.lang.String |
UCharacter.toLowerCase(ULocale locale,
java.lang.String str)
Returns the lowercase version of the argument string. |
static java.lang.String |
UCharacter.toTitleCase(ULocale locale,
java.lang.String str,
BreakIterator titleIter)
Returns the titlecase version of the argument string. |
static java.lang.String |
UCharacter.toTitleCase(ULocale locale,
java.lang.String str,
BreakIterator titleIter,
int options)
Returns the titlecase version of the argument string. |
static java.lang.String |
UCharacter.toUpperCase(ULocale locale,
java.lang.String str)
Returns the uppercase version of the argument string. |
Uses of ULocale in com.ibm.icu.text |
---|
Methods in com.ibm.icu.text that return ULocale | |
---|---|
static ULocale[] |
Collator.getAvailableULocales()
[icu] Returns the set of locales, as ULocale objects, for which collators are installed. |
static ULocale[] |
BreakIterator.getAvailableULocales()
[icu] Returns a list of locales for which BreakIterators can be used. |
static ULocale[] |
PluralRules.getAvailableULocales()
Returns the set of locales for which PluralRules are known. |
static ULocale[] |
DecimalFormatSymbols.getAvailableULocales()
[icu] Returns an array of all locales for which the getInstance
methods of this class can return localized instances. |
static ULocale[] |
NumberFormat.getAvailableULocales()
[icu] Returns the list of Locales for which NumberFormats are available. |
static ULocale[] |
DateFormat.getAvailableULocales()
[icu] Returns the set of locales for which DateFormats are installed. |
static ULocale[] |
DateFormatSymbols.getAvailableULocales()
[icu] Returns an array of all locales for which the getInstance
methods of this class can return localized instances. |
static ULocale |
Collator.getFunctionalEquivalent(java.lang.String keyword,
ULocale locID)
[icu] Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service. |
static ULocale |
Collator.getFunctionalEquivalent(java.lang.String keyword,
ULocale locID,
boolean[] isAvailable)
[icu] Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service. |
static ULocale |
PluralRules.getFunctionalEquivalent(ULocale locale,
boolean[] isAvailable)
Returns the 'functionally equivalent' locale with respect to plural rules. |
ULocale |
IndexCharacters.getLocale()
Get the locale |
abstract ULocale |
LocaleDisplayNames.getLocale()
Returns the locale used to determine the display names. |
ULocale |
CurrencyPluralInfo.getLocale()
Get locale |
abstract ULocale |
CurrencyDisplayNames.getLocale()
Returns the locale used to determine how to translate the currency names. |
ULocale |
Collator.getLocale(ULocale.Type type)
[icu] Returns the locale that was used to create this object, or null. |
ULocale |
BreakIterator.getLocale(ULocale.Type type)
[icu] Returns the locale that was used to create this object, or null. |
ULocale |
DecimalFormatSymbols.getLocale(ULocale.Type type)
[icu] Returns the locale that was used to create this object, or null. |
ULocale |
UFormat.getLocale(ULocale.Type type)
Return the locale that was used to create this object, or null. |
ULocale |
DateFormatSymbols.getLocale(ULocale.Type type)
Returns the locale that was used to create this object, or null. |
ULocale[] |
RuleBasedNumberFormat.getRuleSetDisplayNameLocales()
Return a list of locales for which there are locale-specific display names for the rule sets in this formatter. |
ULocale |
MessageFormat.getULocale()
[icu] Returns the locale that's used when creating or comparing subformats. |
ULocale |
DecimalFormatSymbols.getULocale()
Returns the locale for which this object was constructed. |
Methods in com.ibm.icu.text with parameters of type ULocale | |
---|---|
Collator |
Collator.CollatorFactory.createCollator(ULocale loc)
Return an instance of the appropriate collator. |
NumberFormat |
NumberFormat.NumberFormatFactory.createFormat(ULocale loc,
int formatType)
Returns a number format of the appropriate type. |
protected RbnfLenientScanner |
RbnfScannerProviderImpl.createScanner(ULocale locale,
java.lang.String extras)
Deprecated. This API is ICU internal only. |
static PluralRules |
PluralRules.forLocale(ULocale locale)
Provides access to the predefined PluralRules for a given
locale. |
RbnfLenientScanner |
RbnfScannerProviderImpl.get(ULocale locale,
java.lang.String extras)
Deprecated. This API is ICU internal only. |
RbnfLenientScanner |
RbnfLenientScannerProvider.get(ULocale locale,
java.lang.String extras)
Returns a scanner appropriate for the given locale, with optional extra data. |
static BreakIterator |
BreakIterator.getBreakInstance(ULocale where,
int kind)
Deprecated. This API is ICU internal only. |
static BreakIterator |
BreakIterator.getCharacterInstance(ULocale where)
[icu] Returns a new instance of BreakIterator that locates logical-character boundaries. |
static MeasureFormat |
MeasureFormat.getCurrencyFormat(ULocale locale)
Return a formatter for CurrencyAmount objects in the given locale. |
static NumberFormat |
NumberFormat.getCurrencyInstance(ULocale inLocale)
[icu] Returns a currency format for the specified locale. |
static java.util.ResourceBundle |
DateFormatSymbols.getDateFormatBundle(Calendar cal,
ULocale locale)
Deprecated. ICU 4.0 |
static java.util.ResourceBundle |
DateFormatSymbols.getDateFormatBundle(java.lang.Class<? extends Calendar> calendarClass,
ULocale locale)
Deprecated. ICU 4.0 |
static DateFormat |
DateFormat.getDateInstance(Calendar cal,
int dateStyle,
ULocale locale)
Creates a DateFormat object that can be used to format dates in
the calendar system specified by cal . |
static DateFormat |
DateFormat.getDateInstance(int style,
ULocale locale)
Returns the date formatter with the given formatting style for the given locale. |
static DateFormat |
DateFormat.getDateTimeInstance(Calendar cal,
int dateStyle,
int timeStyle,
ULocale locale)
Creates a DateFormat object that can be used to format dates and times in
the calendar system specified by cal . |
static DateFormat |
DateFormat.getDateTimeInstance(int dateStyle,
int timeStyle,
ULocale locale)
Returns the date/time formatter with the given formatting styles for the given locale. |
static java.lang.String |
Transliterator.getDisplayName(java.lang.String id,
ULocale inLocale)
Returns a name for this transliterator that is appropriate for display to the user in the given locale. |
static java.lang.String |
Collator.getDisplayName(ULocale objectLocale)
[icu] Returns the name of the collator for the objectLocale, localized for the current locale. |
static java.lang.String |
Collator.getDisplayName(ULocale objectLocale,
ULocale displayLocale)
[icu] Returns the name of the collator for the objectLocale, localized for the displayLocale. |
java.lang.String |
Collator.CollatorFactory.getDisplayName(ULocale objectLocale,
ULocale displayLocale)
Return the name of the collator for the objectLocale, localized for the displayLocale. |
static DateTimePatternGenerator |
DateTimePatternGenerator.getFrozenInstance(ULocale uLocale)
Deprecated. This API is ICU internal only. |
static ULocale |
Collator.getFunctionalEquivalent(java.lang.String keyword,
ULocale locID)
[icu] Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service. |
static ULocale |
Collator.getFunctionalEquivalent(java.lang.String keyword,
ULocale locID,
boolean[] isAvailable)
[icu] Returns the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service. |
static ULocale |
PluralRules.getFunctionalEquivalent(ULocale locale,
boolean[] isAvailable)
Returns the 'functionally equivalent' locale with respect to plural rules. |
static DateFormat |
DateFormat.getInstance(Calendar cal,
ULocale locale)
Convenience overload. |
static DateIntervalFormat |
DateIntervalFormat.getInstance(java.lang.String skeleton,
ULocale locale)
Construct a DateIntervalFormat from skeleton and a given locale. |
static DateIntervalFormat |
DateIntervalFormat.getInstance(java.lang.String skeleton,
ULocale locale,
DateIntervalInfo dtitvinf)
Construct a DateIntervalFormat from skeleton a DateIntervalInfo, and the given locale. |
static Collator |
Collator.getInstance(ULocale locale)
[icu] Returns the Collator for the desired locale. |
static DateTimePatternGenerator |
DateTimePatternGenerator.getInstance(ULocale uLocale)
Construct a flexible generator according to data for a given locale. |
static LocaleDisplayNames |
LocaleDisplayNames.getInstance(ULocale locale)
Convenience overload of LocaleDisplayNames.getInstance(ULocale, DialectHandling) that specifies
STANDARD dialect handling. |
static CurrencyPluralInfo |
CurrencyPluralInfo.getInstance(ULocale locale)
Gets a CurrencyPluralInfo instance for the given locale. |
static DecimalFormatSymbols |
DecimalFormatSymbols.getInstance(ULocale locale)
Returns a DecimalFormatSymbols instance for the given locale. |
static NumberFormat |
NumberFormat.getInstance(ULocale inLocale)
[icu] Returns the default number format for the specified locale. |
static DurationFormat |
DurationFormat.getInstance(ULocale locale)
Construct a duration format for the specified locale |
static CurrencyDisplayNames |
CurrencyDisplayNames.getInstance(ULocale locale)
Return an instance of CurrencyDisplayNames that provides information localized for display in the provided locale. |
static DateFormatSymbols |
DateFormatSymbols.getInstance(ULocale locale)
[icu] Returns a DateFormatSymbols instance for the given locale. |
static NumberFormat |
NumberFormat.getInstance(ULocale desiredLocale,
int choice)
Returns a specific style number format for a specific locale. |
static LocaleDisplayNames |
LocaleDisplayNames.getInstance(ULocale locale,
LocaleDisplayNames.DialectHandling dialectHandling)
Returns an instance of LocaleDisplayNames that returns names formatted for the provided locale, using the provided dialectHandling. |
static NumberFormat |
NumberFormat.getIntegerInstance(ULocale inLocale)
[icu] Returns an integer number format for the specified locale. |
static java.lang.String[] |
Collator.getKeywordValuesForLocale(java.lang.String key,
ULocale locale,
boolean commonlyUsed)
[icu] Given a key and a locale, returns an array of string values in a preferred order that would make a difference. |
static BreakIterator |
BreakIterator.getLineInstance(ULocale where)
[icu] Returns a new instance of BreakIterator that locates legal line- wrapping positions. |
static NumberFormat |
NumberFormat.getNumberInstance(ULocale inLocale)
[icu] Returns a general-purpose number format for the specified locale. |
protected static java.lang.String |
NumberFormat.getPattern(ULocale forLocale,
int choice)
Returns the pattern for the provided locale and choice. |
static DateFormat |
DateFormat.getPatternInstance(Calendar cal,
java.lang.String pattern,
ULocale locale)
[icu] Creates a DateFormat object that can be used to format dates and
times in the calendar system specified by cal . |
static DateFormat |
DateFormat.getPatternInstance(java.lang.String pattern,
ULocale locale)
[icu] Returns a DateFormat object that can be used to format dates and times in
the given locale. |
static NumberFormat |
NumberFormat.getPercentInstance(ULocale inLocale)
[icu] Returns a percentage format for the specified locale. |
java.lang.String |
RuleBasedNumberFormat.getRuleSetDisplayName(java.lang.String ruleSetName,
ULocale loc)
Return the rule set display name for the provided rule set and locale. |
java.lang.String[] |
RuleBasedNumberFormat.getRuleSetDisplayNames(ULocale loc)
Return the rule set display names for the provided locale. |
static NumberFormat |
NumberFormat.getScientificInstance(ULocale inLocale)
[icu] Returns a scientific format for the specified locale. |
static BreakIterator |
BreakIterator.getSentenceInstance(ULocale where)
[icu] Returns a new instance of BreakIterator that locates sentence boundaries. |
static DateFormat |
DateFormat.getTimeInstance(Calendar cal,
int timeStyle,
ULocale locale)
Creates a DateFormat object that can be used to format times in
the calendar system specified by cal . |
static DateFormat |
DateFormat.getTimeInstance(int style,
ULocale locale)
Returns the time formatter with the given formatting style for the given locale. |
static BreakIterator |
BreakIterator.getTitleInstance(ULocale where)
[icu] Returns a new instance of BreakIterator that locates title boundaries. |
static BreakIterator |
BreakIterator.getWordInstance(ULocale where)
[icu] Returns a new instance of BreakIterator that locates word boundaries. |
protected void |
ChineseDateFormatSymbols.initializeData(ULocale loc,
com.ibm.icu.impl.CalendarData calData)
Initializes format symbols for the locale and calendar type |
protected void |
DateFormatSymbols.initializeData(ULocale desiredLocale,
com.ibm.icu.impl.CalendarData calData)
Deprecated. This API is ICU internal only. |
protected void |
DateFormatSymbols.initializeData(ULocale desiredLocale,
java.lang.String type)
Initializes format symbols for the locale and calendar type |
abstract java.lang.String |
LocaleDisplayNames.localeDisplayName(ULocale locale)
Returns the display name of the provided ulocale. |
static java.lang.Object |
BreakIterator.registerInstance(BreakIterator iter,
ULocale locale,
int kind)
[icu] Registers a new break iterator of the indicated kind, to use in the given locale. |
static java.lang.Object |
Collator.registerInstance(Collator collator,
ULocale locale)
[icu] Registers a collator as the default collator for the provided locale. |
void |
MessageFormat.setLocale(ULocale locale)
Sets the locale to be used when creating or comparing subformats. |
void |
PluralFormat.setLocale(ULocale ulocale)
Sets the locale used by this PluraFormat object. |
void |
CurrencyPluralInfo.setLocale(ULocale loc)
Set locale. |
TimeUnitFormat |
TimeUnitFormat.setLocale(ULocale locale)
Set the locale used for formatting or parsing. |
Constructors in com.ibm.icu.text with parameters of type ULocale | |
---|---|
ChineseDateFormat(java.lang.String pattern,
java.lang.String override,
ULocale locale)
Construct a ChineseDateFormat from a date format pattern, numbering system override and locale |
|
ChineseDateFormat(java.lang.String pattern,
ULocale locale)
Construct a ChineseDateFormat from a date format pattern and locale |
|
ChineseDateFormatSymbols(Calendar cal,
ULocale locale)
Construct a ChineseDateFormatSymbols for the provided calendar and locale. |
|
ChineseDateFormatSymbols(ULocale locale)
Construct a ChineseDateFormatSymbols for the provided locale. |
|
CurrencyPluralInfo(ULocale locale)
Create a CurrencyPluralInfo object for the given locale. |
|
DateFormatSymbols(Calendar cal,
ULocale locale)
Returns the DateFormatSymbols object that should be used to format a
calendar system's dates in the given locale. |
|
DateFormatSymbols(java.lang.Class<? extends Calendar> calendarClass,
ULocale locale)
Variant of DateFormatSymbols(Calendar, ULocale) that takes the Calendar class instead of a Calandar instance. |
|
DateFormatSymbols(java.util.ResourceBundle bundle,
ULocale locale)
Fetches a custom calendar's DateFormatSymbols out of the given resource bundle. |
|
DateFormatSymbols(ULocale locale)
[icu] Constructs a DateFormatSymbols object by loading format data from resources for the given ulocale. |
|
DateIntervalInfo(ULocale locale)
Construct DateIntervalInfo for the given locale, |
|
DecimalFormatSymbols(ULocale locale)
[icu] Creates a DecimalFormatSymbols object for the given locale. |
|
DurationFormat(ULocale locale)
Deprecated. This API is ICU internal only. |
|
IndexCharacters(ULocale locale)
Create the index object. |
|
IndexCharacters(ULocale locale,
UnicodeSet exemplarSet,
Collator collator)
Deprecated. This API is ICU internal only. |
|
MessageFormat(java.lang.String pattern,
ULocale locale)
Constructs a MessageFormat for the specified locale and pattern. |
|
NumberFormat.SimpleNumberFormatFactory(ULocale locale)
Constructs a SimpleNumberFormatFactory with the given locale. |
|
NumberFormat.SimpleNumberFormatFactory(ULocale locale,
boolean visible)
Constructs a SimpleNumberFormatFactory with the given locale and the visibility. |
|
PluralFormat(ULocale ulocale)
Creates a new PluralFormat for a given locale. |
|
PluralFormat(ULocale ulocale,
PluralRules rules)
Creates a new PluralFormat for a given set of rules. |
|
PluralFormat(ULocale ulocale,
PluralRules rules,
java.lang.String pattern)
Creates a new PluralFormat for a given set of rules, a
pattern and a locale. |
|
PluralFormat(ULocale ulocale,
java.lang.String pattern)
Creates a new PluralFormat for a given pattern string and
locale. |
|
RuleBasedNumberFormat(java.lang.String description,
java.lang.String[][] localizations,
ULocale locale)
Creates a RuleBasedNumberFormat that behaves according to the description passed in. |
|
RuleBasedNumberFormat(java.lang.String description,
ULocale locale)
Creates a RuleBasedNumberFormat that behaves according to the description passed in. |
|
RuleBasedNumberFormat(ULocale locale,
int format)
Creates a RuleBasedNumberFormat from a predefined description. |
|
SimpleDateFormat(java.lang.String pattern,
DateFormatSymbols formatData,
ULocale loc)
Deprecated. This API is ICU internal only. |
|
SimpleDateFormat(java.lang.String pattern,
java.lang.String override,
ULocale loc)
Constructs a SimpleDateFormat using the given pattern , override and locale. |
|
SimpleDateFormat(java.lang.String pattern,
ULocale loc)
Constructs a SimpleDateFormat using the given pattern and locale. |
|
StringSearch(java.lang.String pattern,
java.text.CharacterIterator target,
ULocale locale)
Initializes the iterator to use the language-specific rules and break iterator rules defined in the argument locale to search for argument pattern in the argument target text. |
|
TimeUnitFormat(ULocale locale)
Create TimeUnitFormat given a ULocale, and using full name style. |
|
TimeUnitFormat(ULocale locale,
int style)
Create TimeUnitFormat given a ULocale and a formatting style: full or abbreviated. |
Uses of ULocale in com.ibm.icu.util |
---|
Fields in com.ibm.icu.util declared as ULocale | |
---|---|
static ULocale |
ULocale.CANADA
Useful constant for country/region. |
static ULocale |
ULocale.CANADA_FRENCH
Useful constant for country/region. |
static ULocale |
ULocale.CHINA
Useful constant for country/region. |
static ULocale |
ULocale.CHINESE
Useful constant for language. |
static ULocale |
ULocale.ENGLISH
Useful constant for language. |
static ULocale |
ULocale.FRANCE
Useful constant for country/region. |
static ULocale |
ULocale.FRENCH
Useful constant for language. |
static ULocale |
ULocale.GERMAN
Useful constant for language. |
static ULocale |
ULocale.GERMANY
Useful constant for country/region. |
static ULocale |
ULocale.ITALIAN
Useful constant for language. |
static ULocale |
ULocale.ITALY
Useful constant for country/region. |
static ULocale |
ULocale.JAPAN
Useful constant for country/region. |
static ULocale |
ULocale.JAPANESE
Useful constant for language. |
static ULocale |
ULocale.KOREA
Useful constant for country/region. |
static ULocale |
ULocale.KOREAN
Useful constant for language. |
static ULocale |
ULocale.PRC
Useful constant for country/region. |
static ULocale |
ULocale.ROOT
The root ULocale. |
static ULocale |
ULocale.SIMPLIFIED_CHINESE
Useful constant for language. |
static ULocale |
ULocale.TAIWAN
Useful constant for country/region. |
static ULocale |
ULocale.TRADITIONAL_CHINESE
Useful constant for language. |
static ULocale |
ULocale.UK
Useful constant for country/region. |
static ULocale |
ULocale.US
Useful constant for country/region. |
Methods in com.ibm.icu.util that return ULocale | |
---|---|
static ULocale |
ULocale.acceptLanguage(java.lang.String acceptLanguageList,
boolean[] fallback)
[icu] Based on a HTTP formatted list of acceptable locales, determine an available locale for the user. |
static ULocale |
ULocale.acceptLanguage(java.lang.String acceptLanguageList,
ULocale[] availableLocales,
boolean[] fallback)
[icu] Based on a HTTP formatted list of acceptable locales, determine an available locale for the user. |
static ULocale |
ULocale.acceptLanguage(ULocale[] acceptLanguageList,
boolean[] fallback)
[icu] Based on an ordered array of acceptable locales, determine an available locale for the user. |
static ULocale |
ULocale.acceptLanguage(ULocale[] acceptLanguageList,
ULocale[] availableLocales,
boolean[] fallback)
[icu] Based on a list of acceptable locales, determine an available locale for the user. |
static ULocale |
ULocale.addLikelySubtags(ULocale loc)
[icu] Adds the likely subtags for a provided locale ID, per the algorithm described in the following CLDR technical report: http://www.unicode.org/reports/tr35/#Likely_Subtags If the provided ULocale instance is already in the maximal form, or there is no data available available for maximization, it will be returned. |
ULocale |
ULocale.Builder.build()
Returns an instance of Locale created from the fields set on this builder. |
ULocale |
LocaleMatcher.canonicalize(ULocale ulocale)
Canonicalize a locale (language). |
static ULocale |
ULocale.createCanonical(java.lang.String nonCanonicalID)
[icu] Creates a ULocale from the id by first canonicalizing the id. |
static ULocale |
ULocale.forLanguageTag(java.lang.String languageTag)
[icu] Returns a locale for the specified IETF BCP 47 language tag string. |
static ULocale |
ULocale.forLocale(java.util.Locale loc)
[icu] Returns a ULocale object for a Locale . |
static ULocale[] |
ULocale.getAvailableLocales()
[icu] Note: Unlike the Locale API, this returns an array of |
static ULocale[] |
Currency.getAvailableULocales()
Return an array of the ulocales for which a currency is defined. |
static ULocale[] |
Calendar.getAvailableULocales()
[icu] Returns the list of locales for which Calendars are installed. |
ULocale |
LocaleMatcher.getBestMatch(LocalePriorityList languageList)
Get the best match for a LanguagePriorityList |
ULocale |
LocaleMatcher.getBestMatch(java.lang.String languageList)
Convenience method: Get the best match for a LanguagePriorityList |
ULocale |
LocaleMatcher.getBestMatch(ULocale ulocale)
Get the best match for an individual language code. |
static ULocale |
ULocale.getDefault()
Returns the current default ULocale. |
ULocale |
ULocale.getFallback()
[icu] Returns the fallback locale for this locale. |
ULocale |
Calendar.FormatConfiguration.getLocale()
Deprecated. This API is ICU internal only. |
ULocale |
GlobalizationPreferences.getLocale(int index)
Convenience function for getting the locales in priority order |
ULocale |
Currency.getLocale(ULocale.Type type)
Deprecated. This API is obsolete. |
ULocale |
Calendar.getLocale(ULocale.Type type)
[icu] Returns the locale that was used to create this object, or null. |
abstract ULocale |
UResourceBundle.getULocale()
[icu] Returns the RFC 3066 conformant locale id of this resource bundle. |
static ULocale |
ULocale.minimizeSubtags(ULocale loc)
[icu] Minimizes the subtags for a provided locale ID, per the algorithm described in the following CLDR technical report: http://www.unicode.org/reports/tr35/#Likely_Subtags If the provided ULocale instance is already in the minimal form, or there is no data available for minimization, it will be returned. |
ULocale |
ULocale.setKeywordValue(java.lang.String keyword,
java.lang.String value)
Given a keyword and a value, return a new locale with an updated keyword and value. |
Methods in com.ibm.icu.util that return types with arguments of type ULocale | |
---|---|
java.util.List<ULocale> |
GlobalizationPreferences.getLocales()
Get a copy of the language/locale priority list |
protected java.util.List<ULocale> |
GlobalizationPreferences.guessLocales()
This function can be overridden by subclasses to use different heuristics It MUST return a 'safe' value, one whose modification will not affect this object. |
java.util.Iterator<ULocale> |
LocalePriorityList.iterator()
|
protected java.util.List<ULocale> |
GlobalizationPreferences.processLocales(java.util.List<ULocale> inputLocales)
Process a language/locale priority list specified via setLocales . |
Methods in com.ibm.icu.util with parameters of type ULocale | |
---|---|
static ULocale |
ULocale.acceptLanguage(java.lang.String acceptLanguageList,
ULocale[] availableLocales,
boolean[] fallback)
[icu] Based on a HTTP formatted list of acceptable locales, determine an available locale for the user. |
static ULocale |
ULocale.acceptLanguage(ULocale[] acceptLanguageList,
boolean[] fallback)
[icu] Based on an ordered array of acceptable locales, determine an available locale for the user. |
static ULocale |
ULocale.acceptLanguage(ULocale[] acceptLanguageList,
ULocale[] availableLocales,
boolean[] fallback)
[icu] Based on a list of acceptable locales, determine an available locale for the user. |
static ULocale |
ULocale.acceptLanguage(ULocale[] acceptLanguageList,
ULocale[] availableLocales,
boolean[] fallback)
[icu] Based on a list of acceptable locales, determine an available locale for the user. |
LocalePriorityList.Builder |
LocalePriorityList.Builder.add(ULocale... languageCodes)
Adds language codes, with each having weight = 1.0. |
static LocalePriorityList.Builder |
LocalePriorityList.add(ULocale languageCode)
Add a language code to the list being built, with weight 1.0. |
LocalePriorityList.Builder |
LocalePriorityList.Builder.add(ULocale languageCode)
Adds a new language code, with weight = 1.0. |
static LocalePriorityList.Builder |
LocalePriorityList.add(ULocale languageCode,
double weight)
Add a language code to the list being built, with specified weight. |
LocalePriorityList.Builder |
LocalePriorityList.Builder.add(ULocale languageCode,
double weight)
Adds a new supported languageCode, with specified weight. |
static ULocale |
ULocale.addLikelySubtags(ULocale loc)
[icu] Adds the likely subtags for a provided locale ID, per the algorithm described in the following CLDR technical report: http://www.unicode.org/reports/tr35/#Likely_Subtags If the provided ULocale instance is already in the maximal form, or there is no data available available for maximization, it will be returned. |
protected static UResourceBundle |
UResourceBundle.addToCache(java.lang.ClassLoader cl,
java.lang.String fullName,
ULocale defaultLocale,
UResourceBundle b)
Deprecated. This API is ICU internal only. |
ULocale |
LocaleMatcher.canonicalize(ULocale ulocale)
Canonicalize a locale (language). |
static java.lang.String[] |
Currency.getAvailableCurrencyCodes(ULocale loc,
java.util.Date d)
Returns an array of Strings which contain the currency identifiers that are valid for the given locale on the given date. |
ULocale |
LocaleMatcher.getBestMatch(ULocale ulocale)
Get the best match for an individual language code. |
static UResourceBundle |
UResourceBundle.getBundleInstance(java.lang.String baseName,
ULocale locale)
[icu] Creates a UResourceBundle, from which users can extract resources by using their corresponding keys. |
static UResourceBundle |
UResourceBundle.getBundleInstance(java.lang.String baseName,
ULocale locale,
java.lang.ClassLoader loader)
[icu] Creates a UResourceBundle, from which users can extract resources by using their corresponding keys. |
static UResourceBundle |
UResourceBundle.getBundleInstance(ULocale locale)
[icu] Creates a UResourceBundle for the locale specified, from which users can extract resources by using their corresponding keys. |
DateFormat |
Calendar.getDateTimeFormat(int dateStyle,
int timeStyle,
ULocale loc)
[icu] Returns a DateFormat appropriate to this calendar. |
static java.lang.String |
Calendar.getDateTimePattern(Calendar cal,
ULocale uLocale,
int dateStyle)
Deprecated. This API is ICU internal only. |
static java.lang.String |
ULocale.getDisplayCountry(java.lang.String localeID,
ULocale displayLocale)
Returns a locale's country localized for display in the provided locale. |
java.lang.String |
ULocale.getDisplayCountry(ULocale displayLocale)
Returns this locale's country localized for display in the provided locale. |
static java.lang.String |
ULocale.getDisplayKeyword(java.lang.String keyword,
ULocale displayLocale)
[icu] Returns a keyword localized for display in the specified locale. |
static java.lang.String |
ULocale.getDisplayKeywordValue(java.lang.String localeID,
java.lang.String keyword,
ULocale displayLocale)
[icu] Returns a keyword value localized for display in the specified locale. |
java.lang.String |
ULocale.getDisplayKeywordValue(java.lang.String keyword,
ULocale displayLocale)
[icu] Returns a keyword value localized for display in the specified locale. |
static java.lang.String |
ULocale.getDisplayLanguage(java.lang.String localeID,
ULocale displayLocale)
Returns a locale's language localized for display in the provided locale. |
java.lang.String |
ULocale.getDisplayLanguage(ULocale displayLocale)
[icu] Returns this locale's language localized for display in the provided locale. |
static java.lang.String |
ULocale.getDisplayLanguageWithDialect(java.lang.String localeID,
ULocale displayLocale)
[icu] Returns a locale's language localized for display in the provided locale. |
java.lang.String |
ULocale.getDisplayLanguageWithDialect(ULocale displayLocale)
[icu] Returns this locale's language localized for display in the provided locale. |
java.lang.String |
TimeZone.getDisplayName(boolean daylight,
int style,
ULocale locale)
Returns a name of this time zone suitable for presentation to the user in the specified locale. |
static java.lang.String |
ULocale.getDisplayName(java.lang.String localeID,
ULocale displayLocale)
Returns the locale ID localized for display in the provided locale. |
java.lang.String |
ULocale.getDisplayName(ULocale displayLocale)
Returns this locale name localized for display in the provided locale. |
java.lang.String |
Holiday.getDisplayName(ULocale locale)
Return the name of this holiday in the language of the specified locale The name parameter passed to this object's constructor is used
as a key to look up the holiday's localized name in a ResourceBundle object
named HolidayBundle. |
java.lang.String |
TimeZone.getDisplayName(ULocale locale)
Returns a name of this time zone suitable for presentation to the user in the specified locale. |
java.lang.String |
Calendar.getDisplayName(ULocale loc)
Returns the name of this calendar in the language of the given locale. |
static java.lang.String |
ULocale.getDisplayNameWithDialect(java.lang.String localeID,
ULocale displayLocale)
[icu] Returns the locale ID localized for display in the provided locale. |
java.lang.String |
ULocale.getDisplayNameWithDialect(ULocale displayLocale)
[icu] Returns this locale name localized for display in the provided locale. |
static java.lang.String |
ULocale.getDisplayScript(java.lang.String localeID,
ULocale displayLocale)
[icu] Returns a locale's script localized for display in the provided locale. |
java.lang.String |
ULocale.getDisplayScript(ULocale displayLocale)
[icu] Returns this locale's script localized for display in the provided locale. |
static java.lang.String |
ULocale.getDisplayVariant(java.lang.String localeID,
ULocale displayLocale)
Returns a locale's variant localized for display in the provided locale. |
java.lang.String |
ULocale.getDisplayVariant(ULocale displayLocale)
Returns this locale's variant localized for display in the provided locale. |
static UnicodeSet |
LocaleData.getExemplarSet(ULocale locale,
int options)
Returns the set of exemplar characters for a locale. |
static Holiday[] |
Holiday.getHolidays(ULocale locale)
|
static Calendar |
Calendar.getInstance(TimeZone zone,
ULocale locale)
Returns a calendar with the specified time zone and locale. |
static Currency |
Currency.getInstance(ULocale locale)
Returns a currency object for the default currency in the given locale. |
static LocaleData |
LocaleData.getInstance(ULocale locale)
Gets the LocaleData object associated with the ULocale specified in locale |
static Calendar |
Calendar.getInstance(ULocale locale)
Returns a calendar using the default time zone and specified locale. |
static java.lang.String[] |
Currency.getKeywordValuesForLocale(java.lang.String key,
ULocale locale,
boolean commonlyUsed)
Given a key and a locale, returns an array of values for the key for which data exists. |
static java.lang.String[] |
Calendar.getKeywordValuesForLocale(java.lang.String key,
ULocale locale,
boolean commonlyUsed)
[icu] Given a key and a locale, returns an array of string values in a preferred order that would make a difference. |
static LocaleData.MeasurementSystem |
LocaleData.getMeasurementSystem(ULocale locale)
Returns the measurement system used in the locale specified by the locale. |
java.lang.String |
Currency.getName(ULocale locale,
int nameStyle,
boolean[] isChoiceFormat)
Returns the display name for the given currency in the given locale. |
java.lang.String |
Currency.getName(ULocale locale,
int nameStyle,
java.lang.String pluralCount,
boolean[] isChoiceFormat)
Returns the display name for the given currency in the given locale. |
static LocaleData.PaperSize |
LocaleData.getPaperSize(ULocale locale)
Returns the size of paper used in the locale. |
java.lang.String |
Currency.getSymbol(ULocale uloc)
Convenience and compatibility override of getName that requests the symbol name. |
java.lang.Double |
LocalePriorityList.getWeight(ULocale language)
Return the weight for a given language, or null if there is none. |
protected DateFormat |
ChineseCalendar.handleGetDateFormat(java.lang.String pattern,
java.lang.String override,
ULocale locale)
Framework method to create a calendar-specific DateFormat object using the the given pattern. |
protected DateFormat |
Calendar.handleGetDateFormat(java.lang.String pattern,
java.lang.String override,
ULocale locale)
Creates a DateFormat appropriate to this calendar. |
protected DateFormat |
Calendar.handleGetDateFormat(java.lang.String pattern,
ULocale locale)
Creates a DateFormat appropriate to this calendar. |
protected static UResourceBundle |
UResourceBundle.loadFromCache(java.lang.ClassLoader cl,
java.lang.String fullName,
ULocale defaultLocale)
Deprecated. This API is ICU internal only. |
double |
LocaleMatcher.match(ULocale desired,
ULocale desiredMax,
ULocale supported,
ULocale supportedMax)
Returns a fraction between 0 and 1, where 1 means that the languages are a perfect match, and 0 means that they are completely different. |
double |
LocaleMatcher.LanguageMatcherData.match(ULocale a,
ULocale aMax,
ULocale b,
ULocale bMax)
Deprecated. This API is ICU internal only. |
static ULocale |
ULocale.minimizeSubtags(ULocale loc)
[icu] Minimizes the subtags for a provided locale ID, per the algorithm described in the following CLDR technical report: http://www.unicode.org/reports/tr35/#Likely_Subtags If the provided ULocale instance is already in the minimal form, or there is no data available for minimization, it will be returned. |
static java.lang.String |
Currency.parse(ULocale locale,
java.lang.String text,
int type,
java.text.ParsePosition pos)
Deprecated. This API is ICU internal only. |
static java.lang.Object |
Currency.registerInstance(Currency currency,
ULocale locale)
Registers a new currency for the provided locale. |
static void |
ULocale.setDefault(ULocale newLocale)
[icu] Sets the default ULocale. |
GlobalizationPreferences |
GlobalizationPreferences.setLocale(ULocale uLocale)
Convenience routine for setting the language/locale priority list from a single locale/language. |
ULocale.Builder |
ULocale.Builder.setLocale(ULocale locale)
Resets the Builder to match the provided locale . |
GlobalizationPreferences |
GlobalizationPreferences.setLocales(ULocale[] uLocales)
Convenience routine for setting the language/locale priority list from an array. |
Method parameters in com.ibm.icu.util with type arguments of type ULocale | |
---|---|
protected java.util.List<ULocale> |
GlobalizationPreferences.processLocales(java.util.List<ULocale> inputLocales)
Process a language/locale priority list specified via setLocales . |
GlobalizationPreferences |
GlobalizationPreferences.setLocales(java.util.List<ULocale> inputLocales)
Sets the language/locale priority list. |
Constructors in com.ibm.icu.util with parameters of type ULocale | |
---|---|
BuddhistCalendar(TimeZone zone,
ULocale locale)
Constructs a BuddhistCalendar based on the current time
in the given time zone with the given locale. |
|
BuddhistCalendar(ULocale locale)
Constructs a BuddhistCalendar based on the current time
in the default time zone with the given locale. |
|
Calendar(TimeZone zone,
ULocale locale)
Constructs a calendar with the specified time zone and locale. |
|
ChineseCalendar(TimeZone zone,
ULocale locale)
Construct a ChineseCalendar based on the current time
with the given time zone with the given locale. |
|
ChineseCalendar(ULocale locale)
Constructs a ChineseCalendar based on the current time
in the default time zone with the given locale. |
|
CopticCalendar(TimeZone zone,
ULocale locale)
Constructs a CopticCalendar based on the current time
in the given time zone with the given locale. |
|
CopticCalendar(ULocale locale)
Constructs a CopticCalendar based on the current time
in the default time zone with the given locale. |
|
EthiopicCalendar(TimeZone zone,
ULocale locale)
Constructs a EthiopicCalendar based on the current time
in the given time zone with the given locale. |
|
EthiopicCalendar(ULocale locale)
Constructs a EthiopicCalendar based on the current time
in the default time zone with the given locale. |
|
GregorianCalendar(TimeZone zone,
ULocale locale)
Constructs a GregorianCalendar based on the current time in the given time zone with the given locale. |
|
GregorianCalendar(ULocale locale)
[icu] Constructs a GregorianCalendar based on the current time in the default time zone with the given locale. |
|
HebrewCalendar(TimeZone zone,
ULocale locale)
Constructs a HebrewCalendar based on the current time
in the given time zone with the given locale. |
|
HebrewCalendar(ULocale locale)
Constructs a HebrewCalendar based on the current time
in the default time zone with the given locale. |
|
IndianCalendar(TimeZone zone,
ULocale locale)
Constructs a IndianCalendar based on the current time
in the given time zone with the given locale. |
|
IndianCalendar(ULocale locale)
Constructs a IndianCalendar based on the current time
in the default time zone with the given locale. |
|
IslamicCalendar(TimeZone zone,
ULocale locale)
Constructs an IslamicCalendar based on the current time
in the given time zone with the given locale. |
|
IslamicCalendar(ULocale locale)
Constructs an IslamicCalendar based on the current time
in the default time zone with the given locale. |
|
JapaneseCalendar(TimeZone zone,
ULocale locale)
Constructs a JapaneseCalendar based on the current time
in the given time zone with the given locale. |
|
JapaneseCalendar(ULocale locale)
Constructs a JapaneseCalendar based on the current time
in the default time zone with the given locale. |
|
TaiwanCalendar(TimeZone zone,
ULocale locale)
Constructs a TaiwanCalendar based on the current time
in the given time zone with the given locale. |
|
TaiwanCalendar(ULocale locale)
Constructs a TaiwanCalendar based on the current time
in the default time zone with the given locale. |
|
|||||||||
PREV NEXT | FRAMES NO FRAMES |