/libcore/luni/src/main/java/java/lang/ |
H A D | CaseMapper.java | 46 public static String toLowerCase(Locale locale, String s, char[] value, int offset, int count) { argument 48 String languageCode = locale.getLanguage(); 50 return ICU.toLowerCase(s, locale.toString()); 60 return ICU.toLowerCase(s, locale.toString()); 142 public static String toUpperCase(Locale locale, String s, char[] value, int offset, int count) { argument 143 String languageCode = locale.getLanguage(); 145 return ICU.toUpperCase(s, locale.toString()); 153 return ICU.toUpperCase(s, locale.toString());
|
H A D | String.java | 1479 * Converts this string to lower case, using the rules of the user's default locale. 1480 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 1489 * Converts this string to lower case, using the rules of {@code locale}. 1493 * Lithuanian locales. On the other hand, it isn't necessary to provide a Greek locale to get 1494 * correct case mapping of Greek characters: any locale will do. 1501 public String toLowerCase(Locale locale) { argument 1502 return CaseMapper.toLowerCase(locale, this, value, offset, count); 1514 * Converts this this string to upper case, using the rules of the user's default locale. 1515 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 1524 * Converts this this string to upper case, using the rules of {@code locale} 1536 toUpperCase(Locale locale) argument 1982 format(Locale locale, String format, Object... args) argument [all...] |
/libcore/luni/src/main/java/java/text/ |
H A D | Collator.java | 26 * Performs locale-sensitive string comparison. A concrete subclass, 86 * the default locale. 90 * // Compare two strings in the default locale 248 * <p>Note that Android does not support user-supplied locale service providers. 278 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 285 * Returns a {@code Collator} instance which is appropriate for {@code locale}. 287 public static Collator getInstance(Locale locale) { argument 288 if (locale == null) { 289 throw new NullPointerException("locale == null"); 291 return new RuleBasedCollator(new RuleBasedCollatorICU(locale)); [all...] |
H A D | DateFormat.java | 38 * formatters based on the default or a given locale and a number of formatting 43 * {@code DateFormat} helps you to format and parse dates for any locale. Your 44 * code can be completely independent of the locale conventions for months, days 71 * To format a number for a different locale, specify it in the call to 95 * FULL. The exact result depends on the locale, but generally: 400 * <p>Note that Android does not support user-supplied locale service providers. 417 * the DEFAULT style for the default locale. 419 * @return the {@code DateFormat} instance for the default style and locale. 427 * the specified style for the user's default locale. 428 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</ 456 getDateInstance(int style, Locale locale) argument 507 getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) argument 576 getTimeInstance(int style, Locale locale) argument [all...] |
H A D | DateFormatSymbols.java | 76 transient final Locale locale; field in class:DateFormatSymbols 85 zoneStrings = TimeZones.getZoneStrings(locale); 92 * symbols for the user's default locale. 93 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 101 * symbols for the specified locale. 103 * @param locale 104 * the locale. 106 public DateFormatSymbols(Locale locale) { argument 107 this.locale = locale; 143 getInstance(Locale locale) argument [all...] |
H A D | DecimalFormat.java | 35 * numbers in any locale, including support for Western, Arabic, or Indic 45 * To obtain a {@link NumberFormat} for a specific locale (including the default 46 * locale), call one of {@code NumberFormat}'s factory methods such as 70 * read from ICU's locale data. 78 * U.S. locale, the ',' grouping character is replaced by ','. However, the 510 * for the user's default locale. 511 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 514 Locale locale = Locale.getDefault(); 515 this.symbols = new DecimalFormatSymbols(locale); 516 initNative(LocaleData.get(locale) 549 DecimalFormat(String pattern, Locale locale) argument [all...] |
H A D | DecimalFormatSymbols.java | 34 * {@code DecimalFormatSymbols} from its locale data. If you need to change any 57 private transient Locale locale; field in class:DecimalFormatSymbols 62 * the user's default locale. 63 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 75 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 80 * @param locale 81 * the locale. 83 public DecimalFormatSymbols(Locale locale) { argument 84 LocaleData localeData = LocaleData.get(locale); 97 this.locale 128 getInstance(Locale locale) argument [all...] |
H A D | MessageFormat.java | 44 * {@code MessageFormat} itself doesn't implement locale-specific 45 * behavior. Any locale-specific behavior is defined by the pattern that you 336 private Locale locale; field in class:MessageFormat 349 * Constructs a new {@code MessageFormat} using the specified pattern and {@code locale}. 353 * @param locale 354 * the locale. 358 public MessageFormat(String template, Locale locale) { argument 359 this.locale = locale; 365 * the user's default locale 1068 setLocale(Locale locale) argument [all...] |
H A D | NumberFormat.java | 38 * {@code NumberFormat} helps you to format and parse numbers for any locale. 39 * Your code can be completely independent of the locale conventions for decimal 43 * To format a number for the current locale, use one of the factory class 67 * To format a number for a different locale, specify it in the call to 310 * <p>Note that Android does not support user-supplied locale service providers. 334 * for the user's default locale. 335 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 345 * for the specified locale. 347 * @param locale 348 * the locale t 351 getCurrencyInstance(Locale locale) argument 374 getIntegerInstance(Locale locale) argument 398 getInstance(Locale locale) argument 402 getInstance(String pattern, Locale locale) argument 467 getNumberInstance(Locale locale) argument 494 getPercentInstance(Locale locale) argument [all...] |
H A D | SimpleDateFormat.java | 36 * A concrete class for formatting and parsing dates in a locale-sensitive 44 * locale. 50 * (See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>".) 229 * dates and times in the {@code SHORT} style for the user's default locale. 230 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 241 * Calendar} for the user's default locale. 242 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 334 * Calendar} for the user's default locale. 335 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 356 * Calendar} for the specified locale 367 SimpleDateFormat(String template, Locale locale) argument 374 SimpleDateFormat(Locale locale) argument [all...] |
/libcore/luni/src/main/java/java/text/spi/ |
H A D | BreakIteratorProvider.java | 27 * <p>Note that Android does not support user-supplied locale service providers. 41 * given locale. 43 * @param locale the locale 45 * @throws NullPointerException if {@code locale == null} 47 * if locale isn't one of the locales returned from 50 public abstract BreakIterator getWordInstance(Locale locale); argument 54 * given locale. 56 * @param locale the locale 63 getLineInstance(Locale locale) argument 76 getCharacterInstance(Locale locale) argument 89 getSentenceInstance(Locale locale) argument [all...] |
H A D | CollatorProvider.java | 27 * <p>Note that Android does not support user-supplied locale service providers. 40 * Returns an instance of {@code Collator} for the given locale. 42 * @param locale the locale 44 * @throws NullPointerException if {@code locale == null} 46 * if locale isn't one of the locales returned from 49 public abstract Collator getInstance(Locale locale); argument
|
H A D | DateFormatProvider.java | 27 * <p>Note that Android does not support user-supplied locale service providers. 41 * in the given style for the given locale. 44 * @param locale the locale 46 * @throws NullPointerException if {@code locale == null} 48 * if locale isn't one of the locales returned from 51 public abstract DateFormat getTimeInstance(int style, Locale locale); argument 55 * in the given style for the given locale. 58 * @param locale the locale 65 getDateInstance(int style, Locale locale) argument 80 getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) argument [all...] |
H A D | DateFormatSymbolsProvider.java | 27 * <p>Note that Android does not support user-supplied locale service providers. 40 * Returns an instance of {@code DateFormatSymbols} for the given locale. 42 * @param locale the locale 44 * @throws NullPointerException if {@code locale == null} 46 * if locale isn't one of the locales returned from 49 public abstract DateFormatSymbols getInstance(Locale locale); argument
|
H A D | DecimalFormatSymbolsProvider.java | 27 * <p>Note that Android does not support user-supplied locale service providers. 40 * Returns an instance of {@code DecimalFormatSymbols} for the given locale. 42 * @param locale the locale 44 * @throws NullPointerException if {@code locale == null} 46 * if locale isn't one of the locales returned from 49 public abstract DecimalFormatSymbols getInstance(Locale locale); argument
|
H A D | NumberFormatProvider.java | 27 * <p>Note that Android does not support user-supplied locale service providers. 41 * monetary values for the given locale. 43 * @param locale the locale 45 * @throws NullPointerException if {@code locale == null} 47 * if locale isn't one of the locales returned from 50 public abstract NumberFormat getCurrencyInstance(Locale locale); argument 54 * integer values for the given locale. The returned {@code NumberFormat} 59 * @param locale the locale 66 getIntegerInstance(Locale locale) argument 79 getNumberInstance(Locale locale) argument 92 getPercentInstance(Locale locale) argument [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | Calendar.java | 42 * Like other locale-sensitive classes, {@code Calendar} provides a class 45 * returns a calendar whose locale is based on system settings and whose time fields 75 * {@code Calendar} defines a locale-specific seven day week using two 77 * (from 1 to 7). These numbers are taken from the locale resource data when a 719 * @param locale 720 * the locale. 722 protected Calendar(TimeZone timezone, Locale locale) { argument 724 LocaleData localeData = LocaleData.get(locale); 954 * <p>Note that Android does not support user-supplied locale service providers. 995 * @param locale 999 getInstance(Locale locale) argument 1027 getInstance(TimeZone timezone, Locale locale) argument 1421 getDisplayName(int field, int style, Locale locale) argument 1431 getDisplayNameArray(int field, int style, Locale locale) argument 1472 getDisplayNames(int field, int style, Locale locale) argument [all...] |
H A D | Currency.java | 64 * if the locale's country is not a supported ISO 3166 country. 66 public static Currency getInstance(Locale locale) { argument 68 Currency currency = localesToCurrencies.get(locale); 72 String country = locale.getCountry(); 73 String variant = locale.getVariant(); 81 throw new IllegalArgumentException("Unsupported ISO 3166 country: " + locale); 86 localesToCurrencies.put(locale, result); 114 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 123 * Returns the localized name of this currency in the given {@code locale}. 128 public String getDisplayName(Locale locale) { argument 151 getSymbol(Locale locale) argument [all...] |
H A D | Formatter.java | 133 * uppercase using the rules of the relevant locale (either the default or the locale set for 307 * presented to a human. Those methods will select the best format strings for the user's locale. 315 * locale. 546 private Locale locale; field in class:Formatter 601 * <p>The {@code Locale} used is the user's default locale. 602 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 612 * <p>The {@code Locale} used is the user's default locale. 613 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 655 locale 906 public Locale locale() { method in class:Formatter [all...] |
H A D | GregorianCalendar.java | 302 * @param locale 305 public GregorianCalendar(Locale locale) { argument 306 this(TimeZone.getDefault(), locale); 326 * @param locale 329 public GregorianCalendar(TimeZone timezone, Locale locale) { argument 330 super(timezone, locale);
|
H A D | Locale.java | 48 * <p>Note that locale data is not necessarily available for any of the locales pre-defined as 49 * constants in this class except for en_US, which is the only locale Java guarantees is always 58 * <p>You can use {@link Locale#getDefault} to get an appropriate locale for the <i>user</i> of the 63 * <p>Note that locale data comes solely from ICU. User-supplied locale service providers (using 76 * <a name="default_locale"><h3>Be wary of the default locale</h3></a> 77 * <p>Note that there are many convenience methods that automatically use the default locale, but 80 * <p>The default locale is appropriate for tasks that involve presenting data to the user. In 85 * <p>The default locale is <i>not</i> appropriate for machine-readable output. The best choice 86 * there is usually {@code Locale.US} – this locale i 373 getDisplayCountry(Locale locale) argument 395 getDisplayLanguage(Locale locale) argument 439 getDisplayName(Locale locale) argument 485 getDisplayVariant(Locale locale) argument 564 setDefault(Locale locale) argument [all...] |
H A D | ResourceBundle.java | 93 private Locale locale; field in class:ResourceBundle 149 * @param locale 155 public static ResourceBundle getBundle(String bundleName, Locale locale) { argument 160 return getBundle(bundleName, locale, classLoader); 204 * @param locale 212 public static ResourceBundle getBundle(String bundleName, Locale locale, argument 225 if (!locale.equals(defaultLocale)) { 226 bundle = handleGetBundle(false, bundleName, locale, loader); 231 throw missingResourceException(bundleName + '_' + locale, ""); 263 * the target locale o 477 handleGetBundle(boolean loadBase, String base, Locale locale, ClassLoader loader) argument 589 strip(Locale locale) argument 605 setLocale(Locale locale) argument 669 getFallbackLocale(String baseName, Locale locale) argument 810 getCandidateLocales(String baseName, Locale locale) argument 846 getFallbackLocale(String baseName, Locale locale) argument 879 newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) argument 950 getTimeToLive(String baseName, Locale locale) argument 976 needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime) argument 1014 toBundleName(String baseName, Locale locale) argument [all...] |
H A D | Scanner.java | 109 private Locale locale = Locale.getDefault(); field in class:Scanner 946 public Locale locale() { method in class:Scanner 947 return locale; 1669 this.locale = l; 1762 decimalFormat = (DecimalFormat) NumberFormat.getInstance(locale); 1786 decimalFormat = (DecimalFormat) NumberFormat.getInstance(locale); 1841 * Add the locale specific positive prefixes and suffixes to the pattern 1859 * Add the locale specific negative prefixes and suffixes to the pattern 1877 * Remove locale related information from float String 1902 * Remove the locale specifi [all...] |
H A D | TimeZone.java | 141 * <a href="../util/Locale.html#default_locale">Be wary of the default locale</a>. 148 * Equivalent to {@code getDisplayName(false, TimeZone.LONG, locale)}. 150 public final String getDisplayName(Locale locale) { argument 151 return getDisplayName(false, LONG, locale); 156 * <a href="../util/Locale.html#default_locale">Be wary of the default locale</a>. 164 * zone with either standard or daylight time, as written in {@code locale}. 170 * @param locale the display locale. 172 public String getDisplayName(boolean daylightTime, int style, Locale locale) { argument 179 String[][] zoneStrings = TimeZones.getZoneStrings(locale); [all...] |
/libcore/luni/src/main/java/java/util/spi/ |
H A D | CurrencyNameProvider.java | 25 * <p>Note that Android does not support user-supplied locale service providers.
41 * @param locale a locale
42 * @return the symbol or null if there is no available symbol in the locale
44 * if {@code code == null || locale == null}
46 * if code or locale is not in a legal format or not available
48 public abstract String getSymbol(String code, Locale locale);
argument
|