Searched refs:locale (Results 1 - 25 of 86) sorted by relevance

1234

/libcore/ojluni/src/main/java/java/text/spi/
H A DBreakIteratorProvider.java51 * for the given locale.
52 * @param locale the desired locale
54 * @exception NullPointerException if <code>locale</code> is null
55 * @exception IllegalArgumentException if <code>locale</code> isn't
61 public abstract BreakIterator getWordInstance(Locale locale); argument
66 * for the given locale.
67 * @param locale the desired locale
69 * @exception NullPointerException if <code>locale</cod
76 getLineInstance(Locale locale) argument
91 getCharacterInstance(Locale locale) argument
106 getSentenceInstance(Locale locale) argument
[all...]
H A DNumberFormatProvider.java50 * monetary values for the specified locale.
52 * @param locale the desired locale.
53 * @exception NullPointerException if <code>locale</code> is null
54 * @exception IllegalArgumentException if <code>locale</code> isn't
61 public abstract NumberFormat getCurrencyInstance(Locale locale); argument
65 * integer values for the specified locale.
73 * @param locale the desired locale
74 * @exception NullPointerException if <code>locale</cod
82 getIntegerInstance(Locale locale) argument
97 getNumberInstance(Locale locale) argument
112 getPercentInstance(Locale locale) argument
[all...]
H A DDateFormatProvider.java50 * with the given formatting style for the specified locale.
56 * @param locale the desired locale.
58 * or if <code>locale</code> isn't
62 * @exception NullPointerException if <code>locale</code> is null
66 public abstract DateFormat getTimeInstance(int style, Locale locale); argument
70 * with the given formatting style for the specified locale.
76 * @param locale the desired locale.
78 * or if <code>locale</cod
86 getDateInstance(int style, Locale locale) argument
113 getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) argument
[all...]
H A DCollatorProvider.java49 * Returns a new <code>Collator</code> instance for the specified locale.
50 * @param locale the desired locale.
51 * @return the <code>Collator</code> for the desired locale.
53 * <code>locale</code> is null
54 * @exception IllegalArgumentException if <code>locale</code> isn't
60 public abstract Collator getInstance(Locale locale); argument
H A DDateFormatSymbolsProvider.java50 * specified locale.
52 * @param locale the desired locale
53 * @exception NullPointerException if <code>locale</code> is null
54 * @exception IllegalArgumentException if <code>locale</code> isn't
61 public abstract DateFormatSymbols getInstance(Locale locale); argument
H A DDecimalFormatSymbolsProvider.java50 * specified locale.
52 * @param locale the desired locale
53 * @exception NullPointerException if <code>locale</code> is null
54 * @exception IllegalArgumentException if <code>locale</code> isn't
61 public abstract DecimalFormatSymbols getInstance(Locale locale); argument
/libcore/ojluni/src/main/java/java/util/spi/
H A DLocaleNameProvider.java48 * IETF BCP47</a> language code and the given locale that is appropriate for
50 * For example, if <code>languageCode</code> is "fr" and <code>locale</code>
52 * is "en" and <code>locale</code> is fr_FR, getDisplayLanguage() will return "anglais".
53 * If the name returned cannot be localized according to <code>locale</code>,
58 * @param locale the desired locale
59 * @return the name of the given language code for the specified locale, or null if it's not
61 * @exception NullPointerException if <code>languageCode</code> or <code>locale</code> is null
63 * two or three lower-case letters, or <code>locale</code> isn't
69 public abstract String getDisplayLanguage(String languageCode, Locale locale); argument
97 getDisplayScript(String scriptCode, Locale locale) argument
125 getDisplayCountry(String countryCode, Locale locale) argument
143 getDisplayVariant(String variant, Locale locale) argument
[all...]
H A DCurrencyNameProvider.java54 * Gets the symbol of the given currency code for the specified locale.
56 * locale is the US, while for other locales it may be "US$". If no
62 * @param locale the desired locale
63 * @return the symbol of the given currency code for the specified locale, or null if
64 * the symbol is not available for the locale
66 * <code>locale</code> is null
68 * the form of three upper-case letters, or <code>locale</code> isn't
74 public abstract String getSymbol(String currencyCode, Locale locale); argument
83 * @param locale th
95 getDisplayName(String currencyCode, Locale locale) argument
[all...]
H A DTimeZoneNameProvider.java52 * presentation to the user in the specified locale. The given time
68 * @param locale the desired locale
70 * given locale, or null if it's not available.
72 * or <code>locale</code> isn't one of the locales returned from
75 * @exception NullPointerException if <code>ID</code> or <code>locale</code>
79 public abstract String getDisplayName(String ID, boolean daylight, int style, Locale locale); argument
/libcore/ojluni/src/main/java/sun/util/
H A DLocaleServiceProviderPool.java53 * locale sensitive service, such as {@link java.util.spi.LocaleNameProvider}.
60 * set of provider implementations of a particular locale sensitive service.
66 * A Set containing locale service providers that implement the
79 * Available locales for this locale sensitive service. This also contains
87 * different sets for each locale sensitive services.
92 * Provider locales for this locale sensitive service.
97 * Special locale for ja_JP with Japanese calendar
102 * Special locale for th_TH with Thai numbering system
126 * @param c class of the locale sensitive service
158 * Available locales for all locale sensitiv
287 isJRESupported(Locale locale) argument
302 getLocalizedObject(LocalizedObjectGetter<P, S> getter, Locale locale, Object... params) argument
321 getLocalizedObject(LocalizedObjectGetter<P, S> getter, Locale locale, OpenListResourceBundle bundle, String key, Object... params) argument
344 getLocalizedObject(LocalizedObjectGetter<P, S> getter, Locale locale, String bundleKey, OpenListResourceBundle bundle, String key, Object... params) argument
353 getLocalizedObjectImpl(LocalizedObjectGetter<P, S> getter, Locale locale, boolean isObjectProvider, String bundleKey, OpenListResourceBundle bundle, String key, Object... params) argument
437 findProvider(Locale locale) argument
472 getLookupLocales(Locale locale) argument
489 getLookupLocale(Locale locale) argument
542 getObject(P lsp, Locale locale, String key, Object... params) argument
[all...]
/libcore/ojluni/src/main/java/java/text/
H A DBreakIterator.java437 * for the {@linkplain Locale#getDefault() default locale}.
448 * for the given locale.
450 * @param locale the desired locale
452 * @throws NullPointerException if <code>locale</code> is null
454 public static BreakIterator getWordInstance(Locale locale) { argument
456 android.icu.text.BreakIterator.getWordInstance(locale));
462 * for the {@linkplain Locale#getDefault() default locale}.
473 * for the given locale.
475 * @param locale th
479 getLineInstance(Locale locale) argument
504 getCharacterInstance(Locale locale) argument
529 getSentenceInstance(Locale locale) argument
[all...]
H A DDateFormatSymbols.java79 * format pattern for a specific locale, you can do so with:
107 * resources for the default locale. This constructor can only
111 * implementations. For full locale coverage, use the
116 * if the resources for the default locale cannot be
126 * resources for the given locale. This constructor can only
130 * implementations. For full locale coverage, use the
135 * if the resources for the specified locale cannot be
138 public DateFormatSymbols(Locale locale) argument
140 initializeData(locale);
194 * Localized names of time zones in this locale
277 Locale locale = null; field in class:DateFormatSymbols
403 getInstance(Locale locale) argument
417 getInstanceRef(Locale locale) argument
425 getProviderInstance(Locale locale) argument
444 getCachedInstance(Locale locale) argument
974 getObject(DateFormatSymbolsProvider dateFormatSymbolsProvider, Locale locale, String key, Object... params) argument
[all...]
H A DMessageFormat.java68 * itself doesn't implement locale specific behavior. Any locale specific
352 * Constructs a MessageFormat for the default locale and the
354 * The constructor first sets the locale, then parses the pattern and
363 this.locale = Locale.getDefault(Locale.Category.FORMAT);
368 * Constructs a MessageFormat for the specified locale and
370 * The constructor first sets the locale, then parses the pattern and
376 * @param locale the locale for this message format
380 public MessageFormat(String pattern, Locale locale) { argument
402 setLocale(Locale locale) argument
1176 private Locale locale; field in class:MessageFormat
[all...]
/libcore/benchmarks/src/benchmarks/regression/
H A DBreakIteratorBenchmark.java39 final Locale locale; field in class:BreakIteratorBenchmark.Text
42 Text(Locale locale, String text) { argument
44 this.locale = locale;
52 BreakIterator it = BreakIterator.getLineInstance(text.locale);
63 android.icu.text.BreakIterator.getLineInstance(text.locale);
/libcore/luni/src/main/java/libcore/icu/
H A DLocaleData.java26 * Passes locale-specific from ICU native code to Java.
33 // A cache for the locale-specific data.
36 // Ensure that we pull in the locale data for the root locale, en_US, and the
37 // user's default locale. (All devices must support the root locale and en_US,
122 public static Locale mapInvalidAndNullLocales(Locale locale) { argument
123 if (locale == null) {
127 if ("und".equals(locale.toLanguageTag())) {
131 return locale;
137 get(Locale locale) argument
202 initLocaleData(Locale locale) argument
[all...]
H A DTimeZoneNames.java47 // Ensure that we pull in the zone strings for the root locale, en_US, and the
48 // user's default locale. (All devices must support the root locale and en_US,
61 @Override protected String[][] create(Locale locale) { argument
71 fillZoneStrings(locale.toLanguageTag(), result);
81 System.logI("Loaded time zone names for \"" + locale + "\" in " + duration + "ms" +
131 public static String[][] getZoneStrings(Locale locale) { argument
132 if (locale == null) {
133 locale = Locale.getDefault();
135 return cachedZoneStrings.get(locale);
145 forLocale(Locale locale) argument
161 getExemplarLocation(String locale, String tz) argument
163 fillZoneStrings(String locale, String[][] result) argument
[all...]
H A DICU.java68 * Parse the {Language, Script, Region, Variant*} section of the ICU locale
289 public static String getBestDateTimePattern(String skeleton, Locale locale) { argument
290 String languageTag = locale.toLanguageTag();
362 public static String toLowerCase(String s, Locale locale) { argument
363 return toLowerCase(s, locale.toLanguageTag());
368 public static String toUpperCase(String s, Locale locale) { argument
369 return toUpperCase(s, locale.toLanguageTag());
399 public static String getCurrencyDisplayName(Locale locale, String currencyCode) { argument
400 return getCurrencyDisplayName(locale.toLanguageTag(), currencyCode);
408 public static String getCurrencySymbol(Locale locale, Strin argument
414 getDisplayCountry(Locale targetLocale, Locale locale) argument
420 getDisplayLanguage(Locale targetLocale, Locale locale) argument
426 getDisplayVariant(Locale targetLocale, Locale locale) argument
432 getDisplayScript(Locale targetLocale, Locale locale) argument
442 addLikelySubtags(Locale locale) argument
450 addLikelySubtags(String locale) argument
457 getScript(String locale) argument
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DCurrency.java110 * given locale. The language and variant components of the locale
120 * @param locale the locale for whose country a <code>Currency</code>
123 * locale, or null
124 * @exception NullPointerException if <code>locale</code> or its country
126 * @exception IllegalArgumentException if the country of the given locale
129 public static Currency getInstance(Locale locale) { argument
131 android.icu.util.Currency.getInstance(locale);
132 String variant = locale
209 getSymbol(Locale locale) argument
265 getDisplayName(Locale locale) argument
[all...]
H A DResourceBundle.java64 import sun.util.locale.BaseLocale;
65 import sun.util.locale.LocaleObjectCache;
70 * Resource bundles contain locale-specific objects. When your program needs a
71 * locale-specific resource, a <code>String</code> for example, your program can
73 * locale. In this way, you can write program code that is largely independent
74 * of the user's locale isolating most, if not all, of the locale-specific
92 * specific locale is not supported. The family can then provide as
93 * many locale-specific members as needed, for example a German one
98 * been translated for the locale represente
314 private Locale locale = null; field in class:ResourceBundle
492 private Locale locale; field in class:ResourceBundle.CacheKey
516 CacheKey(String baseName, Locale locale, ClassLoader loader) argument
543 setLocale(Locale locale) argument
794 getBundle(String baseName, Locale locale) argument
1024 getBundle(String baseName, Locale locale, ClassLoader loader) argument
1251 getBundleImpl(String baseName, Locale locale, ClassLoader loader, Control control) argument
1493 throwMissingResourceException(String baseName, Locale locale, Throwable cause) argument
2302 getCandidateLocales(String baseName, Locale locale) argument
2457 getFallbackLocale(String baseName, Locale locale) argument
2561 newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) argument
2671 getTimeToLive(String baseName, Locale locale) argument
2726 needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime) argument
2809 toBundleName(String baseName, Locale locale) argument
2908 getFallbackLocale(String baseName, Locale locale) argument
[all...]
/libcore/luni/src/test/java/libcore/java/util/
H A DOldAndroidLocaleTest.java29 * Test some locale-dependent stuff for Android. This test mainly ensures that
36 Locale locale = new Locale("en");
37 assertEquals("en", locale.toString());
39 locale = new Locale("en", "US");
40 assertEquals("en_US", locale.toString());
42 locale = new Locale("en", "", "POSIX");
43 assertEquals("en__POSIX", locale.toString());
45 locale = new Locale("en", "US", "POSIX");
46 assertEquals("en_US_POSIX", locale.toString());
/libcore/ojluni/src/main/java/sun/util/locale/
H A DLocaleSyntaxException.java32 package sun.util.locale;
H A DParseStatus.java32 package sun.util.locale;
H A DExtension.java32 package sun.util.locale;
/libcore/luni/src/main/java/org/xml/sax/
H A DParser.java57 * Allow an application to request a locale for errors and warnings.
60 * and warnings; if they cannot support the requested locale,
62 * not request a locale change in the middle of a parse.</p>
64 * @param locale A Java Locale object.
66 * (using the previous or default locale) if the
67 * requested locale is not supported.
71 public abstract void setLocale (Locale locale) argument
/libcore/luni/src/test/java/libcore/java/text/
H A DDateFormatTest.java34 DateFormat.is24Hour = null; // null == locale default (12 hour for US)
51 final Locale locale = Locale.US;
53 DateFormat format = DateFormat.getTimeInstance(style, locale);
55 SimpleDateFormat sdf = new SimpleDateFormat(expectedPattern, locale);

Completed in 1867 milliseconds

1234