Uses of Class
com.ibm.icu.util.ULocale

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 java.lang.String UCharacter.toUpperCase(ULocale locale, java.lang.String str)
          Gets uppercase version of the argument string.
static java.lang.String UCharacter.toLowerCase(ULocale locale, java.lang.String str)
          Gets lowercase version of the argument string.
static java.lang.String UCharacter.toTitleCase(ULocale locale, java.lang.String str, BreakIterator titleIter)
          Gets the titlecase version of the argument string.
static int[] UScript.getCode(ULocale locale)
          Gets a script codes associated with the given locale or ISO 15924 abbreviation or name.
 

Uses of ULocale in com.ibm.icu.text
 

Methods in com.ibm.icu.text that return ULocale
static ULocale[] BreakIterator.getAvailableULocales()
          Returns a list of locales for which BreakIterators can be used.
 ULocale BreakIterator.getLocale(ULocale.Type type)
          Return the locale that was used to create this object, or null.
static ULocale[] Collator.getAvailableULocales()
          Get the set of locales, as ULocale objects, for which collators are installed.
static ULocale Collator.getFunctionalEquivalent(java.lang.String keyword, ULocale locID, boolean[] isAvailable)
          Return 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)
          Return the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service.
 ULocale Collator.getLocale(ULocale.Type type)
          Return the locale that was used to create this object, or null.
static ULocale[] DateFormat.getAvailableULocales()
          Gets the set of locales for which DateFormats are installed.
 ULocale DateFormatSymbols.getLocale(ULocale.Type type)
          Return the locale that was used to create this object, or null.
 ULocale DecimalFormatSymbols.getULocale()
          Returns the locale for which this object was constructed.
 ULocale DecimalFormatSymbols.getLocale(ULocale.Type type)
          Return the locale that was used to create this object, or null.
 ULocale MessageFormat.getULocale()
          Gets the locale that's used when creating or comparing subformats.
static ULocale[] NumberFormat.getAvailableULocales()
          Get the list of Locales for which NumberFormats are available.
 ULocale[] RuleBasedNumberFormat.getRuleSetDisplayNameLocales()
          Return a list of locales for which there are locale-specific display names for the rule sets in this formatter.
 ULocale UFormat.getLocale(ULocale.Type type)
          Return the locale that was used to create this object, or null.
 

Methods in com.ibm.icu.text with parameters of type ULocale
static BreakIterator BreakIterator.getWordInstance(ULocale where)
          Returns a new instance of BreakIterator that locates word boundaries.
static BreakIterator BreakIterator.getLineInstance(ULocale where)
          Returns a new instance of BreakIterator that locates legal line- wrapping positions.
static BreakIterator BreakIterator.getCharacterInstance(ULocale where)
          Returns a new instance of BreakIterator that locates logical-character boundaries.
static BreakIterator BreakIterator.getSentenceInstance(ULocale where)
          Returns a new instance of BreakIterator that locates sentence boundaries.
static BreakIterator BreakIterator.getTitleInstance(ULocale where)
          Returns a new instance of BreakIterator that locates title boundaries.
static java.lang.Object BreakIterator.registerInstance(BreakIterator iter, ULocale locale, int kind)
          Register a new break iterator of the indicated kind, to use in the given locale.
protected  void ChineseDateFormatSymbols.initializeData(ULocale loc, com.ibm.icu.impl.CalendarData calData)
           
static Collator Collator.getInstance(ULocale locale)
          Gets the Collator for the desired locale.
static java.lang.Object Collator.registerInstance(Collator collator, ULocale locale)
          Register a collator as the default collator for the provided locale.
static ULocale Collator.getFunctionalEquivalent(java.lang.String keyword, ULocale locID, boolean[] isAvailable)
          Return 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)
          Return the functionally equivalent locale for the given requested locale, with respect to given keyword, for the collation service.
static java.lang.String Collator.getDisplayName(ULocale objectLocale, ULocale displayLocale)
          Get the name of the collator for the objectLocale, localized for the displayLocale.
static java.lang.String Collator.getDisplayName(ULocale objectLocale)
          Get the name of the collator for the objectLocale, localized for the current locale.
 Collator Collator.CollatorFactory.createCollator(ULocale loc)
          Return an instance of the appropriate collator.
 java.lang.String Collator.CollatorFactory.getDisplayName(ULocale objectLocale, ULocale displayLocale)
          Return the name of the collator for the objectLocale, localized for the displayLocale.
static DateFormat DateFormat.getTimeInstance(int style, ULocale locale)
          Gets the time formatter with the given formatting style for the given locale.
static DateFormat DateFormat.getDateInstance(int style, ULocale locale)
          Gets the date formatter with the given formatting style for the given locale.
static DateFormat DateFormat.getDateTimeInstance(int dateStyle, int timeStyle, ULocale locale)
          Gets the date/time formatter with the given formatting styles for the given locale.
static DateFormat DateFormat.getDateInstance(Calendar cal, int dateStyle, ULocale locale)
          Create a DateFormat object that can be used to format dates in the calendar system specified by cal.
static DateFormat DateFormat.getTimeInstance(Calendar cal, int timeStyle, ULocale locale)
          Create a DateFormat object that can be used to format times in the calendar system specified by cal.
static DateFormat DateFormat.getDateTimeInstance(Calendar cal, int dateStyle, int timeStyle, ULocale locale)
          Create a DateFormat object that can be used to format dates and times in the calendar system specified by cal.
static DateFormat DateFormat.getInstance(Calendar cal, ULocale locale)
          Convenience overload
protected  void DateFormatSymbols.initializeData(ULocale desiredLocale, java.lang.String type)
           
protected  void DateFormatSymbols.initializeData(ULocale desiredLocale, com.ibm.icu.impl.CalendarData calData)
           
static java.util.ResourceBundle DateFormatSymbols.getDateFormatBundle(java.lang.Class calendarClass, ULocale locale)
          Find the ResourceBundle containing the date format information for a specified calendar subclass in a given locale.
static java.util.ResourceBundle DateFormatSymbols.getDateFormatBundle(Calendar cal, ULocale locale)
          Variant of getDateFormatBundle(java.lang.Class, java.util.Locale) that takes a Calendar instance instead of a Calendar class.
static MeasureFormat MeasureFormat.getCurrencyFormat(ULocale locale)
          Return a formatter for CurrencyAmount objects in the given locale.
 void MessageFormat.setLocale(ULocale locale)
          Sets the locale to be used when creating or comparing subformats.
static NumberFormat NumberFormat.getInstance(ULocale inLocale)
          Returns the default number format for the specified locale.
static NumberFormat NumberFormat.getNumberInstance(ULocale inLocale)
          Returns a general-purpose number format for the specified locale.
static NumberFormat NumberFormat.getIntegerInstance(ULocale inLocale)
          Returns an integer number format for the specified locale.
static NumberFormat NumberFormat.getCurrencyInstance(ULocale inLocale)
          Returns a currency format for the specified locale.
static NumberFormat NumberFormat.getPercentInstance(ULocale inLocale)
          Returns a percentage format for the specified locale.
static NumberFormat NumberFormat.getScientificInstance(ULocale inLocale)
          NEW Returns a scientific 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.
 NumberFormat NumberFormat.NumberFormatFactory.createFormat(ULocale loc, int formatType)
          Returns a number format of the appropriate type.
 java.lang.String[] RuleBasedNumberFormat.getRuleSetDisplayNames(ULocale locale)
          Return the rule set display names for the provided locale.
 java.lang.String RuleBasedNumberFormat.getRuleSetDisplayName(java.lang.String ruleSetName, ULocale locale)
          Return the rule set display name for the provided rule set and 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.
 

Constructors in com.ibm.icu.text with parameters of type ULocale
ChineseDateFormat(java.lang.String pattern, ULocale locale)
          Construct a ChineseDateFormat from a date format pattern and locale
ChineseDateFormatSymbols(ULocale locale)
          Construct a ChineseDateFormatSymbols for the provided locale.
ChineseDateFormatSymbols(Calendar cal, ULocale locale)
          Construct a ChineseDateFormatSymbols for the provided calendar and locale.
DateFormatSymbols(ULocale locale)
          Construct a DateFormatSymbols object by loading format data from resources for the given ulocale.
DateFormatSymbols(Calendar cal, ULocale locale)
          Get the DateFormatSymbols object that should be used to format a calendar system's dates in the given locale.
DateFormatSymbols(java.lang.Class 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)
          Fetch a custom calendar's DateFormatSymbols out of the given resource bundle.
DecimalFormatSymbols(ULocale locale)
          Create a DecimalFormatSymbols object for the given locale.
MessageFormat(java.lang.String pattern, ULocale locale)
          Constructs a MessageFormat for the specified locale and pattern.
NumberFormat.SimpleNumberFormatFactory(ULocale locale)
           
NumberFormat.SimpleNumberFormatFactory(ULocale locale, boolean visible)
           
RuleBasedNumberFormat(java.lang.String description, ULocale locale)
          Creates a RuleBasedNumberFormat that behaves according to the description passed in.
RuleBasedNumberFormat(java.lang.String description, java.lang.String[][] localizations, 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, ULocale loc)
          Construct a SimpleDateFormat using the given pattern and locale.
SimpleDateFormat(java.lang.String pattern, DateFormatSymbols formatData, ULocale loc)
           
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.
 

Uses of ULocale in com.ibm.icu.util
 

Fields in com.ibm.icu.util declared as ULocale
static ULocale ULocale.ENGLISH
          Useful constant for language.
static ULocale ULocale.FRENCH
          Useful constant for language.
static ULocale ULocale.GERMAN
          Useful constant for language.
static ULocale ULocale.ITALIAN
          Useful constant for language.
static ULocale ULocale.JAPANESE
          Useful constant for language.
static ULocale ULocale.KOREAN
          Useful constant for language.
static ULocale ULocale.CHINESE
          Useful constant for language.
static ULocale ULocale.SIMPLIFIED_CHINESE
          Useful constant for language.
static ULocale ULocale.TRADITIONAL_CHINESE
          Useful constant for language.
static ULocale ULocale.FRANCE
          Useful constant for country/region.
static ULocale ULocale.GERMANY
          Useful constant for country/region.
static ULocale ULocale.ITALY
          Useful constant for country/region.
static ULocale ULocale.JAPAN
          Useful constant for country/region.
static ULocale ULocale.KOREA
          Useful constant for country/region.
static ULocale ULocale.CHINA
          Useful constant for country/region.
static ULocale ULocale.PRC
          Useful constant for country/region.
static ULocale ULocale.TAIWAN
          Useful constant for country/region.
static ULocale ULocale.UK
          Useful constant for country/region.
static ULocale ULocale.US
          Useful constant for country/region.
static ULocale ULocale.CANADA
          Useful constant for country/region.
static ULocale ULocale.CANADA_FRENCH
          Useful constant for country/region.
static ULocale ULocale.ROOT
          The root ULocale.
 

Methods in com.ibm.icu.util that return ULocale
static ULocale[] Calendar.getAvailableULocales()
          Gets the list of locales for which Calendars are installed.
 ULocale Calendar.getLocale(ULocale.Type type)
          Return the locale that was used to create this object, or null.
static ULocale[] Currency.getAvailableULocales()
          Return an array of the ulocales for which a currency is defined.
 ULocale Currency.getLocale(ULocale.Type type)
          Return the locale that was used to create this object, or null.
 ULocale GlobalizationPreferences.getLocale(int index)
          Deprecated. This API is ICU internal only.
 ULocale GlobalizationPreferences.getDateLocale()
          Deprecated. This API is ICU internal only.
 ULocale GlobalizationPreferences.getNumberLocale()
          Deprecated. This API is ICU internal only.
static ULocale ULocale.forLocale(java.util.Locale loc)
          Return a ULocale object for a Locale.
static ULocale ULocale.createCanonical(java.lang.String nonCanonicalID)
          Create a ULocale from the id by first canonicalizing the id.
static ULocale ULocale.getDefault()
          Returns the current default ULocale.
static ULocale[] ULocale.getAvailableLocales()
          Returns a list of all installed locales.
 ULocale ULocale.getFallback()
          Returns the fallback locale for this locale.
 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.
static ULocale ULocale.acceptLanguage(java.lang.String acceptLanguageList, ULocale[] availableLocales, boolean[] fallback)
          Based on a HTTP formatted list of acceptable locales, determine an available locale for the user.
static ULocale ULocale.acceptLanguage(ULocale[] acceptLanguageList, ULocale[] availableLocales, boolean[] fallback)
          Based on a list of acceptable locales, determine an available locale for the user.
static ULocale ULocale.acceptLanguage(java.lang.String acceptLanguageList, boolean[] fallback)
          Based on a HTTP formatted list of acceptable locales, determine an available locale for the user.
static ULocale ULocale.acceptLanguage(ULocale[] acceptLanguageList, boolean[] fallback)
          Based on an ordered array of acceptable locales, determine an available locale for the user.
abstract  ULocale UResourceBundle.getULocale()
          Returns the RFC 3066 conformant locale id of this resource bundle.
 

Methods in com.ibm.icu.util with parameters of type ULocale
static Calendar Calendar.getInstance(ULocale locale)
          Gets a calendar using the default time zone and specified locale.
static Calendar Calendar.getInstance(TimeZone zone, ULocale locale)
          Gets a calendar with the specified time zone and locale.
 java.lang.String Calendar.getDisplayName(ULocale loc)
          Return the name of this calendar in the language of the given locale.
 DateFormat Calendar.getDateTimeFormat(int dateStyle, int timeStyle, ULocale loc)
          Return a DateFormat appropriate to this calendar.
protected  DateFormat Calendar.handleGetDateFormat(java.lang.String pattern, ULocale locale)
          Create a DateFormat appropriate to this calendar.
protected  DateFormat ChineseCalendar.handleGetDateFormat(java.lang.String pattern, ULocale locale)
          Framework method to create a calendar-specific DateFormat object using the the given pattern.
static Currency Currency.getInstance(ULocale locale)
          Returns a currency object for the default currency in the given locale.
static java.lang.Object Currency.registerInstance(Currency currency, ULocale locale)
          Registers a new currency for the provided locale.
 java.lang.String Currency.getSymbol(ULocale uloc)
          Convenience and compatibility override of getName that requests the symbol name.
 java.lang.String Currency.getName(ULocale locale, int nameStyle, boolean[] isChoiceFormat)
          Returns the display name for the given currency in the given locale.
static java.lang.String Currency.parse(ULocale locale, java.lang.String text, java.text.ParsePosition pos)
          Attempt to parse the given string as a currency, either as a display name in the given locale, or as a 3-letter ISO 4217 code.
 GlobalizationPreferences GlobalizationPreferences.setLocales(ULocale[] uLocales)
          Deprecated. This API is ICU internal only.
 GlobalizationPreferences GlobalizationPreferences.setLocale(ULocale uLocale)
          Deprecated. This API is ICU internal only.
 GlobalizationPreferences GlobalizationPreferences.setDateLocale(ULocale dateLocale)
          Deprecated. Set the date locale.
 GlobalizationPreferences GlobalizationPreferences.setNumberLocale(ULocale numberLocale)
          Deprecated. This API is ICU internal only.
static Holiday[] Holiday.getHolidays(ULocale 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.
static UnicodeSet LocaleData.getExemplarSet(ULocale locale, int options)
          Returns the set of exemplar characters for a locale.
static LocaleData LocaleData.getInstance(ULocale locale)
          Gets the LocaleData object associated with the ULocale specified in locale
static LocaleData.MeasurementSystem LocaleData.getMeasurementSystem(ULocale locale)
          Returns the measurement system used in the locale specified by the locale.
static LocaleData.PaperSize LocaleData.getPaperSize(ULocale locale)
          Returns the size of paper used in the locale.
 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 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 void ULocale.setDefault(ULocale newLocale)
          Sets the default ULocale.
 java.lang.String ULocale.getDisplayLanguage(ULocale displayLocale)
          Returns this locale's language localized for display in the provided 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.getDisplayScript(ULocale displayLocale)
          Returns this locale's script localized for display in the provided locale.
static java.lang.String ULocale.getDisplayScript(java.lang.String localeID, ULocale displayLocale)
          Returns a locale's script 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.getDisplayCountry(java.lang.String localeID, ULocale displayLocale)
          Returns a locale's country 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 java.lang.String ULocale.getDisplayVariant(java.lang.String localeID, ULocale displayLocale)
          Returns a locale's variant localized for display in the provided locale.
static java.lang.String ULocale.getDisplayKeyword(java.lang.String keyword, ULocale displayLocale)
          Returns a keyword localized for display in the specified locale.
 java.lang.String ULocale.getDisplayKeywordValue(java.lang.String keyword, ULocale displayLocale)
          Returns a keyword value localized for display in the specified locale.
static java.lang.String ULocale.getDisplayKeywordValue(java.lang.String localeID, java.lang.String keyword, ULocale displayLocale)
          Returns a keyword value localized for display in the specified locale.
 java.lang.String ULocale.getDisplayName(ULocale displayLocale)
          Returns this locale name localized for display in the provided locale.
static java.lang.String ULocale.getDisplayName(java.lang.String localeID, ULocale displayLocale)
          Returns the locale ID localized for display in the provided locale.
static ULocale ULocale.acceptLanguage(java.lang.String acceptLanguageList, ULocale[] availableLocales, boolean[] fallback)
          Based on a HTTP formatted list of acceptable locales, determine an available locale for the user.
static ULocale ULocale.acceptLanguage(ULocale[] acceptLanguageList, ULocale[] availableLocales, boolean[] fallback)
          Based on a list of acceptable locales, determine an available locale for the user.
static ULocale ULocale.acceptLanguage(ULocale[] acceptLanguageList, boolean[] fallback)
          Based on an ordered array of acceptable locales, determine an available locale for the user.
static UResourceBundle UResourceBundle.getBundleInstance(ULocale locale)
          Creates a UResourceBundle for the locale specified, from which users can extract resources by using their corresponding keys.
static UResourceBundle UResourceBundle.getBundleInstance(java.lang.String baseName, ULocale locale)
          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)
          Deprecated. This API is ICU internal only.
protected static void UResourceBundle.addToCache(java.lang.ClassLoader cl, java.lang.String fullName, ULocale defaultLocale, UResourceBundle b)
           
protected static UResourceBundle UResourceBundle.loadFromCache(java.lang.ClassLoader cl, java.lang.String fullName, ULocale defaultLocale)
           
 

Constructors in com.ibm.icu.util with parameters of type ULocale
BuddhistCalendar(ULocale locale)
          Constructs a BuddhistCalendar based on the current time in the default time zone with the given locale.
BuddhistCalendar(TimeZone zone, ULocale locale)
          Constructs a BuddhistCalendar based on the current time in the given 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 Chinese calendar with the given time zone and locale.
CopticCalendar(ULocale locale)
          Constructs a CopticCalendar 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.
EthiopicCalendar(ULocale locale)
          Constructs a EthiopicCalendar 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.
GregorianCalendar(ULocale locale)
          Constructs a GregorianCalendar 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.
HebrewCalendar(ULocale locale)
          Constructs a HebrewCalendar 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.
IslamicCalendar(ULocale locale)
          Constructs an IslamicCalendar 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.
JapaneseCalendar(ULocale locale)
          Constructs a JapaneseCalendar 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.
 



Copyright (c) 2006 IBM Corporation and others.