/openjdk10/langtools/test/jdk/javadoc/tool/ |
H A D | VerifyLocale.java | 48 Locale locale; field in class:VerifyLocale 64 "-locale", language + (country.equals("") ? "" : ("_" + country + (variant.equals("") ? "" : "_" + variant))), 75 reporter.print(Kind.NOTE, "just a test: Locale is: " + locale.getDisplayName()); 76 return language.equals(locale.getLanguage()) 77 && country.equals(locale.getCountry()) 78 && variant.equals(locale.getVariant()); 96 public void init(Locale locale, Reporter reporter) { argument 97 this.locale = locale;
|
/openjdk10/jdk/src/java.base/share/classes/sun/util/locale/provider/ |
H A D | CalendarDataUtility.java | 26 package sun.util.locale.provider; 49 public static int retrieveFirstDayOfWeek(Locale locale) { argument 53 locale, true, FIRST_DAY_OF_WEEK); 57 public static int retrieveMinimalDaysInFirstWeek(Locale locale) { argument 61 locale, true, MINIMAL_DAYS_IN_FIRST_WEEK); 65 public static String retrieveFieldValueName(String id, int field, int value, int style, Locale locale) { argument 68 return pool.getLocalizedObject(CalendarFieldValueNameGetter.INSTANCE, locale, normalizeCalendarType(id), 72 public static String retrieveJavaTimeFieldValueName(String id, int field, int value, int style, Locale locale) { argument 76 name = pool.getLocalizedObject(CalendarFieldValueNameGetter.INSTANCE, locale, normalizeCalendarType(id), 79 name = pool.getLocalizedObject(CalendarFieldValueNameGetter.INSTANCE, locale, normalizeCalendarTyp 85 retrieveFieldValueNames(String id, int field, int style, Locale locale) argument 92 retrieveJavaTimeFieldValueNames(String id, int field, int style, Locale locale) argument 128 getObject(CalendarNameProvider calendarNameProvider, Locale locale, String requestID, Object... params) argument 161 getObject(CalendarNameProvider calendarNameProvider, Locale locale, String requestID, Object... params) argument 189 getObject(CalendarDataProvider calendarDataProvider, Locale locale, String requestID, Object... params) argument [all...] |
H A D | CollatorProviderImpl.java | 41 package sun.util.locale.provider; 65 * Returns an array of all locales for which this locale service provider 68 * @return An array of all locales for which this locale service provider 77 public boolean isSupportedLocale(Locale locale) { argument 78 return LocaleProviderAdapter.forType(type).isSupportedProviderLocale(locale, langtags); 82 * Returns a new <code>Collator</code> instance for the specified locale. 83 * @param locale the desired locale. 84 * @return the <code>Collator</code> for the desired locale. 86 * <code>locale</cod 94 getInstance(Locale locale) argument [all...] |
H A D | CalendarNameProviderImpl.java | 25 package sun.util.locale.provider; 54 public String getDisplayName(String calendarType, int field, int value, int style, Locale locale) { argument 55 return getDisplayNameImpl(calendarType, field, value, style, locale, false); 58 public String getJavaTimeDisplayName(String calendarType, int field, int value, int style, Locale locale) { argument 59 return getDisplayNameImpl(calendarType, field, value, style, locale, true); 62 public String getDisplayNameImpl(String calendarType, int field, int value, int style, Locale locale, boolean javatime) { argument 66 LocaleResources lr = LocaleProviderAdapter.forType(type).getLocaleResources(locale); 110 locale); 123 public Map<String, Integer> getDisplayNames(String calendarType, int field, int style, Locale locale) { argument 126 names = getDisplayNamesImpl(calendarType, field, SHORT_FORMAT, locale, fals 138 getJavaTimeDisplayNames(String calendarType, int field, int style, Locale locale) argument 144 getDisplayNamesImpl(String calendarType, int field, int style, Locale locale, boolean javatime) argument 210 isSupportedLocale(Locale locale) argument [all...] |
/openjdk10/jdk/test/java/nio/charset/coders/ |
H A D | SJISMappingPropTest.java | 66 public void testWithProperty(String locale) throws Exception { argument 68 runTest(locale, 75 public void testWithoutProperty(String locale) throws Exception { argument 78 runTest(locale, 83 private void runTest(String locale, String... cmd) throws Exception { argument 86 env.put("LC_ALL", locale);
|
/openjdk10/jdk/test/java/text/Format/DateFormat/ |
H A D | Bug8141243.java | 29 * @run main/othervm -Djava.locale.providers=COMPAT Bug8141243 50 for (Locale locale : DateFormat.getAvailableLocales()) { 52 String utc = UTC.getDisplayName(false, SHORT, locale); 54 System.out.println("Skipping " + locale + " due to localized UTC name: " + utc); 57 SimpleDateFormat fmt = new SimpleDateFormat("z", locale); 63 + ", locale: " + locale); 66 errors.add("parse exception: " + e + ", locale: " + locale);
|
H A D | Bug4845901.java | 39 Locale locale = Locale.getDefault(); 40 if (!TestUtils.usesGregorianCalendar(locale)) { 41 System.out.println("Skipping this test because locale is " + locale);
|
/openjdk10/jdk/test/java/text/BreakIterator/ |
H A D | Bug7104012.java | 47 for (Locale locale : Locale.getAvailableLocales()) { 49 breakIterators.add(BreakIterator.getCharacterInstance(locale)); 50 breakIterators.add(BreakIterator.getLineInstance(locale)); 51 breakIterators.add(BreakIterator.getSentenceInstance(locale)); 52 breakIterators.add(BreakIterator.getWordInstance(locale)); 65 + ": BreakIterator(" + locale
|
/openjdk10/jdk/test/java/util/PluggableLocale/providersrc/ |
H A D | DecimalFormatSymbolsProviderImpl.java | 58 public DecimalFormatSymbols getInstance(Locale locale) { argument 59 if (!Utils.supportsLocale(availList, locale)) { 60 throw new IllegalArgumentException("locale is not supported: "+locale); 63 FooDecimalFormatSymbols fdfs = symbols.get(locale); 66 if (Utils.supportsLocale(avail[index], locale)) { 68 symbols.put(locale, fdfs);
|
H A D | CollatorProviderImpl.java | 54 public Collator getInstance(Locale locale) { argument 56 if (Utils.supportsLocale(avail[i], locale)) { 66 throw new IllegalArgumentException("locale is not supported: "+locale);
|
/openjdk10/jdk/src/java.base/share/classes/java/text/ |
H A D | DecimalFormatSymbols.java | 47 import sun.util.locale.provider.LocaleProviderAdapter; 48 import sun.util.locale.provider.LocaleServiceProviderPool; 49 import sun.util.locale.provider.ResourceBundleBasedAdapter; 55 * <code>DecimalFormatSymbols</code> from its locale data. If you need to change any 70 * {@link java.util.Locale.Category#FORMAT FORMAT} locale. 75 * implementations. For full locale coverage, use the 88 * Create a DecimalFormatSymbols object for the given locale. 93 * implementations. For full locale coverage, use the 95 * If the specified locale contains the {@link java.util.Locale#UNICODE_LOCALE_EXTENSION} 104 * @param locale th 171 getInstance(Locale locale) argument 647 initializeCurrency(Locale locale) argument 869 private Locale locale; field in class:DecimalFormatSymbols [all...] |
/openjdk10/jdk/test/java/util/Locale/ |
H A D | LocaleEnhanceTest.java | 52 * @run main/othervm -Djava.locale.providers=JRE,SPI -esa LocaleEnhanceTest 140 * Test that locale construction works with 'multiple variants'. 240 * Ensure that all current locale ids parse. Use DateFormat as a proxy 241 * for all current locale ids. 250 // the tag recreates the original locale, 257 // the builder also recreates the original locale, 267 * Ensure that all icu locale ids parse. 312 Locale locale = new Locale(test[0], test[1], test[2]); 313 assertEquals(id + " lang", test.length > 3 ? test[3] : test[0], locale.getLanguage()); 314 assertEquals(id + " region", test.length > 4 ? test[4] : test[1], locale [all...] |
/openjdk10/jdk/test/java/time/test/java/time/format/ |
H A D | AbstractTestPrinterParser.java | 87 protected Locale locale; field in class:AbstractTestPrinterParser 96 locale = Locale.ENGLISH; 117 return builder.toFormatter(locale).withDecimalStyle(decimalStyle); 121 return builder.appendLiteral(c).toFormatter(locale).withDecimalStyle(decimalStyle); 125 return builder.appendLiteral(s).toFormatter(locale).withDecimalStyle(decimalStyle); 129 return builder.appendText(field).toFormatter(locale).withDecimalStyle(decimalStyle); 133 return builder.appendText(field, style).toFormatter(locale).withDecimalStyle(decimalStyle); 137 return builder.appendValue(field, minWidth, maxWidth, signStyle).toFormatter(locale).withDecimalStyle(decimalStyle); 141 return builder.appendOffset(pattern, noOffsetText).toFormatter(locale).withDecimalStyle(decimalStyle); 145 return builder.appendPattern(pattern).toFormatter(locale) [all...] |
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/xs/ |
H A D | XSMessageFormatter.java | 46 // private objects to cache the locale and resource bundle 52 * locale information. 54 * @param locale The locale of the message. 65 public String formatMessage(Locale locale, String key, Object[] arguments) argument 68 if (fResourceBundle == null || locale != fLocale) { 69 if (locale != null) { 70 fResourceBundle = SecuritySupport.getResourceBundle("com.sun.org.apache.xerces.internal.impl.msg.XMLSchemaMessages", locale); 71 // memorize the most-recent locale 72 fLocale = locale; [all...] |
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xpointer/ |
H A D | XPointerMessageFormatter.java | 42 // private objects to cache the locale and resource bundle 48 * Formats a message with the specified arguments using the given locale 51 * @param locale 52 * The locale of the message. 65 public String formatMessage(Locale locale, String key, Object[] arguments) argument 68 if (fResourceBundle == null || locale != fLocale) { 69 if (locale != null) { 71 "com.sun.org.apache.xerces.internal.impl.msg.XPointerMessages", locale); 72 // memorize the most-recent locale 73 fLocale = locale; [all...] |
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xinclude/ |
H A D | XIncludeMessageFormatter.java | 41 // private objects to cache the locale and resource bundle 47 * locale information. 49 * @param locale The locale of the message. 60 public String formatMessage(Locale locale, String key, Object[] arguments) argument 63 if (fResourceBundle == null || locale != fLocale) { 64 if (locale != null) { 65 fResourceBundle = SecuritySupport.getResourceBundle("com.sun.org.apache.xerces.internal.impl.msg.XIncludeMessages", locale); 66 // memorize the most-recent locale 67 fLocale = locale; [all...] |
/openjdk10/jdk/test/java/util/ResourceBundle/modules/unnamed/ |
H A D | Main.java | 33 Locale locale = Locale.forLanguageTag(loctag); 34 if (locale.equals(Locale.ROOT)) { 38 locale); 39 String tag = locale.toLanguageTag(); // normalized 41 System.out.println(rb.getBaseBundleName() + ": locale = " + tag + ", value = " + value); 49 ResourceBundle.getBundle("jdk.test.internal.resources.Foo", locale);
|
/openjdk10/jdk/test/java/util/ResourceBundle/modules/xmlformat/src/bundles/jdk/test/resources/spi/ |
H A D | MyResourcesProvider.java | 37 public ResourceBundle getBundle(String baseName, Locale locale) { argument 38 String xmlName = toXMLName(baseName, locale); 46 private String toXMLName(String baseName, Locale locale) { argument 48 String lang = locale.getLanguage(); 51 String country = locale.getCountry();
|
/openjdk10/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/ |
H A D | PluginsResourceBundle.java | 39 Locale locale = Locale.getDefault(); 42 + "resources.plugins", locale); 45 + "locale " + locale);
|
/openjdk10/jdk/src/java.desktop/unix/classes/sun/awt/ |
H A D | X11InputMethodDescriptor.java | 48 private static Locale locale; field in class:X11InputMethodDescriptor 51 locale = getSupportedLocale(); 58 Locale[] locales = {locale}; 73 // We ignore the input locale. 74 // When displaying for the default locale, rely on the localized AWT properties; 75 // for any other locale, fall back to English. 96 * returns supported locale. Currently this method returns the locale in which 97 * the VM is started since Solaris doesn't provide a way to determine the login locale.
|
/openjdk10/jdk/test/java/beans/XMLDecoder/ |
H A D | Test6341798.java | 27 * @summary Tests name generation for turkish locale 55 // restore the reserved locale 60 private static void test(Locale locale, byte[] data) { argument 61 Locale.setDefault(locale); 62 System.out.println("locale = " + locale);
|
/openjdk10/langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/ |
H A D | Messages.java | 44 Locale locale = Locale.getDefault(); 46 bundle = ResourceBundle.getBundle("com.sun.tools.jdeprscan.resources.jdeprscan", locale); 48 throw new InternalError("Cannot find jdeprscan resource bundle for locale " + locale, e);
|
/openjdk10/jdk/test/java/nio/charset/Charset/ |
H A D | DefaultCharsetTest.java | 89 public void testDefaultCharset(String locale, String expectedCharset) argument 91 String actual = runWithLocale(locale); 93 System.out.println(locale + ": Locale not supported, skipping..."); 98 locale, actual, expectedCharset)); 102 private static String runWithLocale(String locale) throws Exception { argument 104 env.put("LC_ALL", locale);
|
/openjdk10/jdk/src/java.base/share/classes/sun/util/cldr/ |
H A D | CLDRLocaleProviderAdapter.java | 43 import sun.util.locale.provider.JRELocaleProviderAdapter; 44 import sun.util.locale.provider.LocaleProviderAdapter; 45 import sun.util.locale.provider.LocaleDataMetaInfo; 48 * LocaleProviderAdapter implementation for the CLDR locale data. 150 public List<Locale> getCandidateLocales(String baseName, Locale locale) { argument 151 List<Locale> candidates = super.getCandidateLocales(baseName, locale); 173 private static Locale getParentLocale(Locale locale) { argument 174 Locale parent = parentLocalesMap.get(locale); 177 String tag = locale.toLanguageTag(); 185 parent = locale; // no 203 getEquivalentLoc(Locale locale) argument 215 isSupportedProviderLocale(Locale locale, Set<String> langtags) argument [all...] |
/openjdk10/jdk/src/java.desktop/share/classes/javax/print/attribute/standard/ |
H A D | PrinterMessageFromOperator.java | 51 * locale gives the IPP natural language. The category name returned by 66 * message and locale. 69 * @param locale natural language of the text string. {@code null} is 70 * interpreted to mean the default locale as returned by 74 public PrinterMessageFromOperator(String message, Locale locale) { argument 75 super (message, locale); 88 * <li>This printer message from operator attribute's locale and 89 * {@code object}'s locale are equal.
|