/openjdk10/jdk/src/java.base/unix/classes/sun/util/locale/provider/ |
H A D | HostLocaleProviderAdapterImpl.java | 26 package sun.util.locale.provider; 29 * LocaleProviderAdapter implementation for the Unix locale data
|
/openjdk10/nashorn/test/script/basic/ |
H A D | JDK-8146147.js | 31 var locale = java.util.Locale.ENGLISH; variable 43 checkLang(locale.ISO3Language); 44 checkLang(locale['ISO3Language']); 45 checkLang(locale[prop]); 46 checkLang(locale[prop1 + 'Language']); 47 checkLang(locale[prop2]); 48 checkLang(locale[prop3]); 49 checkLang(locale[String(prop1 + 'Language')]);
|
/openjdk10/jdk/src/java.base/share/classes/javax/security/auth/callback/ |
H A D | LanguageCallback.java | 47 private Locale locale; field in class:LanguageCallback 57 * @param locale the retrieved {@code Locale}. 61 public void setLocale(Locale locale) { argument 62 this.locale = locale; 74 return locale;
|
/openjdk10/jdk/test/java/util/ResourceBundle/modules/appbasic2/src/test/jdk/test/resources/ |
H A D | MyResourcesProviderImpl.java | 35 protected String toBundleName(String baseName, Locale locale) { argument 36 return locale.equals(Locale.ROOT) ? baseName : baseName + '_' + locale.getLanguage(); 40 protected boolean isSupportedInModule(Locale locale) { argument 41 return locale.equals(Locale.ENGLISH) || locale.equals(Locale.ROOT);
|
/openjdk10/jaxws/src/java.xml.bind/share/classes/com/sun/xml/internal/fastinfoset/ |
H A D | CommonResourceBundle.java | 39 private static Locale locale = null; field in class:CommonResourceBundle 43 // Load the resource bundle of default locale 47 protected CommonResourceBundle(Locale locale) { argument 48 // Load the resource bundle of specified locale 49 bundle = ResourceBundle.getBundle(BASE_NAME, locale); 56 //**need to know where to get the locale 58 // .getProperty("omar.common.locale"); 59 locale = parseLocale(/*localeString*/null); 66 public static CommonResourceBundle getInstance(Locale locale) { argument 69 instance = new CommonResourceBundle(locale); 85 getBundle(Locale locale) argument [all...] |
/openjdk10/jdk/src/java.desktop/share/classes/javax/print/attribute/ |
H A D | TextSyntax.java | 34 * includes a locale to indicate the natural language. Thus, a text attribute 60 private Locale locale; field in class:TextSyntax 63 * Constructs a {@code TextAttribute} with the specified string and locale. 66 * @param locale natural language of the text string. {@code null} is 67 * interpreted to mean the default locale for as returned by 71 protected TextSyntax(String value, Locale locale) { argument 73 this.locale = verify (locale); 83 private static Locale verify(Locale locale) { argument 84 if (locale [all...] |
/openjdk10/jdk/src/java.base/share/classes/sun/util/locale/provider/ |
H A D | CollationRules.java | 39 package sun.util.locale.provider;
|
H A D | LocaleNameProviderImpl.java | 26 package sun.util.locale.provider; 50 * Returns an array of all locales for which this locale service provider 53 * @return An array of all locales for which this locale service provider 62 public boolean isSupportedLocale(Locale locale) { argument 63 return LocaleProviderAdapter.forType(type).isSupportedProviderLocale(locale, langtags); 68 * given locale that is appropriate for display to the user. 69 * For example, if <code>languageCode</code> is "fr" and <code>locale</code> 71 * is "en" and <code>locale</code> is fr_FR, getDisplayLanguage() will return "anglais". 72 * If the name returned cannot be localized according to <code>locale</code>, 77 * @param locale th 89 getDisplayLanguage(String lang, Locale locale) argument 119 getDisplayScript(String scriptCode, Locale locale) argument 146 getDisplayCountry(String ctry, Locale locale) argument 167 getDisplayVariant(String vrnt, Locale locale) argument 171 getDisplayString(String key, Locale locale) argument [all...] |
H A D | SPILocaleProviderAdapter.java | 26 package sun.util.locale.provider; 115 public P getImpl(Locale locale); argument 119 * Obtain the real SPI implementation, using locale fallback 121 private static <P extends LocaleServiceProvider> P getImpl(Map<Locale, P> map, Locale locale) { argument 122 for (Locale l : LocaleServiceProviderPool.getLookupLocales(locale)) { 146 public BreakIteratorProvider getImpl(Locale locale) { argument 147 return SPILocaleProviderAdapter.getImpl(map, locale); 156 public boolean isSupportedLocale(Locale locale) { argument 157 return map.containsKey(locale); 161 public BreakIterator getWordInstance(Locale locale) { argument 168 getLineInstance(Locale locale) argument 175 getCharacterInstance(Locale locale) argument 182 getSentenceInstance(Locale locale) argument 201 getImpl(Locale locale) argument 211 isSupportedLocale(Locale locale) argument 216 getInstance(Locale locale) argument 235 getImpl(Locale locale) argument 245 isSupportedLocale(Locale locale) argument 250 getTimeInstance(int style, Locale locale) argument 257 getDateInstance(int style, Locale locale) argument 264 getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) argument 283 getImpl(Locale locale) argument 293 isSupportedLocale(Locale locale) argument 298 getInstance(Locale locale) argument 317 getImpl(Locale locale) argument 327 isSupportedLocale(Locale locale) argument 332 getInstance(Locale locale) argument 351 getImpl(Locale locale) argument 361 isSupportedLocale(Locale locale) argument 366 getCurrencyInstance(Locale locale) argument 373 getIntegerInstance(Locale locale) argument 380 getNumberInstance(Locale locale) argument 387 getPercentInstance(Locale locale) argument 406 getImpl(Locale locale) argument 416 isSupportedLocale(Locale locale) argument 421 getFirstDayOfWeek(Locale locale) argument 428 getMinimalDaysInFirstWeek(Locale locale) argument 447 getImpl(Locale locale) argument 457 isSupportedLocale(Locale locale) argument 462 getDisplayName(String calendarType, int field, int value, int style, Locale locale) argument 471 getDisplayNames(String calendarType, int field, int style, Locale locale) argument 492 getImpl(Locale locale) argument 502 isSupportedLocale(Locale locale) argument 507 getSymbol(String currencyCode, Locale locale) argument 514 getDisplayName(String currencyCode, Locale locale) argument 533 getImpl(Locale locale) argument 543 isSupportedLocale(Locale locale) argument 548 getDisplayLanguage(String languageCode, Locale locale) argument 555 getDisplayScript(String scriptCode, Locale locale) argument 562 getDisplayCountry(String countryCode, Locale locale) argument 569 getDisplayVariant(String variant, Locale locale) argument 588 getImpl(Locale locale) argument 598 isSupportedLocale(Locale locale) argument 603 getDisplayName(String ID, boolean daylight, int style, Locale locale) argument 610 getGenericDisplayName(String ID, int style, Locale locale) argument [all...] |
/openjdk10/jdk/src/java.base/share/classes/java/text/spi/ |
H A D | NumberFormatProvider.java | 50 * 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 D | BreakIteratorProvider.java | 51 * 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 D | DateFormatProvider.java | 50 * 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...] |
/openjdk10/jdk/test/java/util/spi/ResourceBundleControlProvider/test/jdk/test/ |
H A D | ResourceBundleDelegate.java | 30 public static ResourceBundle getBundle(String baseName, Locale locale) { argument 31 return ResourceBundle.getBundle(baseName, locale); 34 public static ResourceBundle getBundle(String baseName, Locale locale, Module module) { argument 35 return ResourceBundle.getBundle(baseName, locale, module);
|
/openjdk10/jdk/test/java/util/PluggableLocale/providersrc/ |
H A D | CurrencyNameProviderImpl2.java | 42 public String getSymbol(String c, Locale locale) { argument 43 if (!Utils.supportsLocale(Arrays.asList(avail), locale)) { 44 throw new IllegalArgumentException("locale is not supported: "+locale); 48 if (Utils.supportsLocale(avail[0], locale)) { 50 } else if (Utils.supportsLocale(avail[1], locale)) { 58 public String getDisplayName(String c, Locale locale) { argument 59 if (!Utils.supportsLocale(Arrays.asList(avail), locale)) { 60 throw new IllegalArgumentException("locale is not supported: "+locale); [all...] |
H A D | CurrencyNameProviderImpl.java | 44 public String getSymbol(String c, Locale locale) { argument 45 if (!Utils.supportsLocale(Arrays.asList(avail), locale)) { 46 throw new IllegalArgumentException("locale is not supported: "+locale); 50 if (Utils.supportsLocale(avail[0], locale)) { 52 } else if (Utils.supportsLocale(avail[1], locale)) { 54 } else if (Utils.supportsLocale(avail[2], locale)) { 56 } else if (Utils.supportsLocale(avail[3], locale)) { 64 public String getDisplayName(String c, Locale locale) { argument 65 if (!Utils.supportsLocale(Arrays.asList(avail), locale)) { [all...] |
H A D | DateFormatProviderImpl.java | 68 public DateFormat getDateInstance(int style, Locale locale) { argument 70 if (Utils.supportsLocale(avail[i], locale)) { 71 return new FooDateFormat(datePattern[style]+dialect[i], locale); 74 throw new IllegalArgumentException("locale is not supported: "+locale); 77 public DateFormat getTimeInstance(int style, Locale locale) { argument 79 if (Utils.supportsLocale(avail[i], locale)) { 80 return new FooDateFormat(timePattern[style]+dialect[i], locale); 83 throw new IllegalArgumentException("locale is not supported: "+locale); 86 getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) argument [all...] |
/openjdk10/jdk/test/java/text/testlib/ |
H A D | TestUtils.java | 32 * TestUtils provides utility methods to get a locale-dependent attribute. 43 * Returns true if the give locale uses Gregorian calendar. 45 public static boolean usesGregorianCalendar(Locale locale) { argument 46 return Calendar.getInstance(locale).getClass() == GregorianCalendar.class; 50 * Returns true if the given locale uses ASCII digits. 52 public static boolean usesAsciiDigits(Locale locale) { argument 53 return DecimalFormatSymbols.getInstance(locale).getZeroDigit() == '0'; 57 * Returns true if the given locale has a special variant which is treated 68 public static boolean hasSpecialVariant(Locale locale) { argument 69 String variant = locale [all...] |
/openjdk10/jdk/src/java.desktop/share/classes/sun/awt/im/ |
H A D | InputMethodLocator.java | 34 * of an input method and a locale. Immutable class. 46 private Locale locale; field in class:InputMethodLocator 48 InputMethodLocator(InputMethodDescriptor descriptor, ClassLoader loader, Locale locale) { argument 54 this.locale = locale; 73 if (locale == null && otherLocator.locale != null 74 || locale != null && !locale.equals(otherLocator.locale)) { 107 isLocaleAvailable(Locale locale) argument [all...] |
/openjdk10/jdk/src/java.base/share/classes/java/util/spi/ |
H A D | CalendarDataProvider.java | 32 * An abstract class for service providers that provide locale-dependent {@link 49 * Returns the first day of a week in the given {@code locale}. This 53 * @param locale 54 * the desired locale 57 * or 0 if the value isn't available for the {@code locale} 59 * if {@code locale} is {@code null}. 63 public abstract int getFirstDayOfWeek(Locale locale); argument 72 * @param locale 73 * the desired locale 75 * or 0 if the value isn't available for the {@code locale} 80 getMinimalDaysInFirstWeek(Locale locale) argument [all...] |
H A D | LocaleServiceProvider.java | 32 * This is the super class of all the locale sensitive service provider 36 * correspond to locale sensitive classes in the <code>java.text</code> 38 * construction of locale sensitive objects and the retrieval of 46 * Implementations of these locale sensitive services can be made available 82 * service provider methods when needed to support the requested locale. 84 * supports the requested locale, and use its support if available. 87 * supports the requested locale. If such a provider is found, its other 89 * whether a locale is supported, the <a href="../Locale.html#def_extensions"> 90 * locale's extensions</a> are ignored by default. (If locale' 215 isSupportedLocale(Locale locale) argument [all...] |
H A D | LocaleNameProvider.java | 48 * 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...] |
/openjdk10/jdk/test/java/net/URL/ |
H A D | LocaleDependentURLTest.java | 27 * locale 36 for (Locale locale : Locale.getAvailableLocales()) { 37 Locale.setDefault(locale);
|
/openjdk10/jdk/test/java/util/ResourceBundle/modules/appbasic/src/test/jdk/test/resources/ |
H A D | MyResourcesProviderImpl.java | 38 public ResourceBundle getBundle(String baseName, Locale locale) { argument 39 if (locale.equals(Locale.ENGLISH) || locale.equals(Locale.ROOT)) { 40 return super.getBundle(baseName, locale);
|
/openjdk10/jdk/test/java/util/ResourceBundle/modules/appbasic2/src/test/jdk/test/resources/spi/ |
H A D | MyResourcesProvider.java | 37 public ResourceBundle getBundle(String baseName, Locale locale) { argument 38 if (isSupportedInModule(locale)) { 39 return super.getBundle(baseName, locale); 44 protected abstract boolean isSupportedInModule(Locale locale); argument
|
/openjdk10/jdk/test/java/util/ResourceBundle/modules/appbasic2/src/eubundles/jdk/test/resources/eu/ |
H A D | MyResourcesEU.java | 35 protected String toBundleName(String baseName, Locale locale) { argument 38 + '_' + locale.getLanguage(); 43 protected boolean isSupportedInModule(Locale locale) { argument 44 return locale.equals(Locale.GERMAN) || locale.equals(Locale.FRENCH);
|