Java Code Examples for com.ibm.icu.impl.ICUResourceBundle#getAvailableULocales()
The following examples show how to use
com.ibm.icu.impl.ICUResourceBundle#getAvailableULocales() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CollatorServiceShim.java From fitnotifications with Apache License 2.0 | 5 votes |
@Override ULocale[] getAvailableULocales() { ULocale[] result; if (service.isDefault()) { result = ICUResourceBundle.getAvailableULocales(ICUData.ICU_COLLATION_BASE_NAME, ICUResourceBundle.ICU_DATA_CLASS_LOADER); } else { result = service.getAvailableULocales(); } return result; }
Example 2
Source File: NumberFormat.java From fitnotifications with Apache License 2.0 | 5 votes |
/** * {@icu} Returns the list of Locales for which NumberFormats are available. * @return the available locales * @draft ICU 3.2 (retain) * @provisional This API might change or be removed in a future release. */ public static ULocale[] getAvailableULocales() { if (shim == null) { return ICUResourceBundle.getAvailableULocales(); } return getShim().getAvailableULocales(); }
Example 3
Source File: BreakIteratorFactory.java From fitnotifications with Apache License 2.0 | 5 votes |
@Override public ULocale[] getAvailableULocales() { if (service == null) { return ICUResourceBundle.getAvailableULocales(); } else { return service.getAvailableULocales(); } }
Example 4
Source File: Currency.java From fitnotifications with Apache License 2.0 | 5 votes |
/** * Return an array of the ulocales for which a currency * is defined. * @return an array of the available ulocales * @stable ICU 3.2 */ public static ULocale[] getAvailableULocales() { if (shim == null) { return ICUResourceBundle.getAvailableULocales(); } else { return shim.getAvailableULocales(); } }
Example 5
Source File: NumberFormatServiceShim.java From fitnotifications with Apache License 2.0 | 4 votes |
ULocale[] getAvailableULocales() { if (service.isDefault()) { return ICUResourceBundle.getAvailableULocales(); } return service.getAvailableULocales(); }
Example 6
Source File: CurrencyServiceShim.java From fitnotifications with Apache License 2.0 | 4 votes |
ULocale[] getAvailableULocales() { if (service.isDefault()) { return ICUResourceBundle.getAvailableULocales(); } return service.getAvailableULocales(); }
Example 7
Source File: Collator.java From fitnotifications with Apache License 2.0 | 3 votes |
/** * {@icu} Returns the set of locales, as ULocale objects, for which collators * are installed. ULocale objects support RFC 3066. * @return the list of locales in which collators are installed. * This list includes any that have been registered, in addition to * those that are installed with ICU4J. * @stable ICU 3.0 */ public static final ULocale[] getAvailableULocales() { if (shim == null) { return ICUResourceBundle.getAvailableULocales( ICUData.ICU_COLLATION_BASE_NAME, ICUResourceBundle.ICU_DATA_CLASS_LOADER); } return shim.getAvailableULocales(); }
Example 8
Source File: DateFormatSymbols.java From fitnotifications with Apache License 2.0 | 2 votes |
/** * {@icu} Returns an array of all locales for which the <code>getInstance</code> * methods of this class can return localized instances. * * {@icunote} Unlike <code>java.text.DateFormatSymbols#getAvailableLocales</code>, * this method simply returns the array of <code>ULocale</code>s available in this * class. ICU does not support <code>DateFormatSymbolsProvider</code> introduced in * Java 6 or its equivalent implementation for now. * * @return An array of <code>ULocale</code>s for which localized * <code>DateFormatSymbols</code> instances are available. * @draft ICU 3.8 (retain) * @provisional This API might change or be removed in a future release. */ public static ULocale[] getAvailableULocales() { return ICUResourceBundle.getAvailableULocales(); }
Example 9
Source File: DecimalFormatSymbols.java From fitnotifications with Apache License 2.0 | 2 votes |
/** * {@icu} Returns an array of all locales for which the <code>getInstance</code> * methods of this class can return localized instances. * * <p><strong>Note:</strong> Unlike * <code>java.text.DecimalFormatSymbols#getAvailableLocales</code>, this method simply * returns the array of <code>ULocale</code>s available in this class. ICU currently * does not support <code>DecimalFormatSymbolsProvider</code>, which was introduced in * Java 6. * * @return An array of <code>ULocale</code>s for which localized * <code>DecimalFormatSymbols</code> instances are available. * @stable ICU 3.8 (retain) * @provisional This API might change or be removed in a future release. */ public static ULocale[] getAvailableULocales() { return ICUResourceBundle.getAvailableULocales(); }
Example 10
Source File: DateFormat.java From fitnotifications with Apache License 2.0 | 2 votes |
/** * {@icu} Returns the set of locales for which DateFormats are installed. * @return the set of locales for which DateFormats are installed. * @draft ICU 3.2 (retain) * @provisional This API might change or be removed in a future release. */ public static ULocale[] getAvailableULocales() { return ICUResourceBundle.getAvailableULocales(); }
Example 11
Source File: ULocale.java From fitnotifications with Apache License 2.0 | 2 votes |
/** * {@icunote} Unlike the Locale API, this returns an array of <code>ULocale</code>, * not <code>Locale</code>. Returns a list of all installed locales. * @stable ICU 3.0 */ public static ULocale[] getAvailableLocales() { return ICUResourceBundle.getAvailableULocales(); }