/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/msg/ |
H A D | XMLMessageFormatter_sv.java | 48 // private objects to cache the locale and resource bundle 58 * locale information. 60 * @param locale The locale of the message. 71 public String formatMessage(Locale locale, String key, Object[] arguments) argument 74 if (fResourceBundle == null || locale != fLocale) { 75 if (locale != null) { 76 fResourceBundle = SecuritySupport.getResourceBundle("com.sun.org.apache.xerces.internal.impl.msg.XMLMessages", locale); 77 // memorize the most-recent locale 78 fLocale = locale; [all...] |
/openjdk10/jdk/test/java/util/ResourceBundle/ |
H A D | KeySetTest.java | 47 static void testKeys(String bundleName, Locale locale) { argument 48 ResourceBundle rb = ResourceBundle.getBundle(bundleName, locale); 70 // returns the subset keys of the given locale. 71 TestBundle tb = new TestBundle(bundleName, locale); 84 public TestBundle(String name, Locale locale) { argument 85 bundle = ResourceBundle.getBundle(name, locale);
|
/openjdk10/jdk/src/java.desktop/share/classes/sun/awt/im/ |
H A D | ExecutableInputMethodManager.java | 377 Locale locale = new Locale(language, country, variant); 378 locator = locator.deriveLocator(locale); 394 InputMethodLocator findInputMethod(Locale locale) { argument 396 InputMethodLocator locator = getPreferredInputMethod(locale); 401 if (hostAdapterLocator != null && hostAdapterLocator.isLocaleAvailable(locale)) { 402 return hostAdapterLocator.deriveLocator(locale); 410 if (candidate.isLocaleAvailable(locale)) { 411 return candidate.deriveLocator(locale); 428 * user prefers for the given locale. 430 * @param locale Local 432 getPreferredInputMethod(Locale locale) argument 484 findPreferredInputMethodNode(Locale locale) argument 567 createLocalePath(Locale locale) argument 604 getAdvertisedLocale(InputMethodLocator locator, Locale locale) argument [all...] |
/openjdk10/jdk/src/java.base/share/classes/sun/util/resources/ |
H A D | Bundles.java | 83 * The cache is a map from cache keys (with bundle base name, locale, and 105 public static ResourceBundle of(String baseName, Locale locale, Strategy strategy) { argument 106 return loadBundleOf(baseName, locale, strategy); 223 // instance for the locale. 248 Locale locale, 258 ResourceBundle bundle = provider.getBundle(baseName, locale); 282 Locale locale, 291 + baseName + ", locale " + locale, 292 baseName + "_" + locale, // classNam 247 loadBundleFromProviders(String baseName, Locale locale, ServiceLoader<ResourceBundleProvider> providers, CacheKey cacheKey) argument 281 throwMissingResourceException(String baseName, Locale locale, Throwable cause) argument 357 getCandidateLocales(String baseName, Locale locale) argument 362 toBundleName(String baseName, Locale locale) argument 368 getResourceBundleProviderType(String baseName, Locale locale) argument 409 private Locale locale; field in class:Bundles.CacheKey 422 CacheKey(String baseName, Locale locale) argument 444 setLocale(Locale locale) argument [all...] |
/openjdk10/jaxp/src/java.xml/share/classes/com/sun/org/apache/xml/internal/utils/ |
H A D | StringComparable.java | 48 public StringComparable(final String text, final Locale locale, final Collator collator, final String caseOrder){ argument 50 m_locale = locale; 56 public final static Comparable getComparator( final String text, final Locale locale, final Collator collator, final String caseOrder){ argument 60 return new StringComparable(text, locale, collator, caseOrder); 127 private final int[] getFirstCaseDiff(final String text, final String pattern, final Locale locale){ argument 161 final String subTextUp = subText.toUpperCase(locale); 162 final String subPattUp = subPatt.toUpperCase(locale); 170 }else if(m_collator.compare(subText, subText.toLowerCase(locale)) == 0){ 175 }else if(m_collator.compare(subPatt, subPatt.toLowerCase(locale)) == 0){
|
/openjdk10/jdk/test/java/util/Formatter/ |
H A D | Constructors.java | 60 static void locale(Formatter f) { method in class:Constructors 61 locale(f, Locale.getDefault(Locale.Category.FORMAT)); 64 static void locale(Formatter f, Locale l) { method in class:Constructors 66 if ((l != null && !l.equals(f.locale())) 67 || (l == null && f.locale() != null)) 68 throw new RuntimeException(f.locale() + " != " + l); 92 locale(f); 101 locale(f); 110 locale(f, null); 119 locale( [all...] |
/openjdk10/jdk/test/java/util/ResourceBundle/Control/ |
H A D | LoadingStrategiesTest.java | 50 // Test use of per-locale packaging 56 check("Per-locale package with Locale.US", s, ""); 61 check("Per-locale package with Locale.GERMAN", s, "de"); 66 check("Per-locale package with Locale.JAPAN", s, "ja_JP"); 84 Locale locale) { 85 if (locale.equals(Locale.TAIWAN)) { 86 return Arrays.asList(locale, 90 return super.getCandidateLocales(baseName, locale); 96 public String toBundleName(String baseName, Locale locale) { argument 97 if (baseName == null || locale 83 getCandidateLocales(String baseName, Locale locale) argument 110 getFallbackLocale(String baseName, Locale locale) argument [all...] |
/openjdk10/jdk/test/java/util/Calendar/ |
H A D | CldrFormatNamesTest.java | 28 * @modules java.base/sun.util.locale.provider 31 * @run main/othervm -Djava.locale.providers=CLDR CldrFormatNamesTest 36 import sun.util.locale.provider.*; 131 Locale locale = (Locale) data[0]; 133 .getLocaleResources(locale).getJavaTimeFormatData(); 177 private static void testSymbolNames(Locale locale, String calType, String[] expected, argument 181 String name = CalendarDataUtility.retrieveJavaTimeFieldValueName(calType, field, i, style, locale); 185 calType, fieldName, locale, i, name, expt);
|
/openjdk10/jdk/test/java/text/Format/DateFormat/ |
H A D | Bug4322313.java | 161 Locale locale = locs[i]; 162 Locale.setDefault(locale); 178 locale + ", " + formats[j] + 188 locale + ", " + formats[j] + 197 locale + ", " + formats[j] + 204 locale) + ", " + formats[j] + 216 locale + ", " + formats[j] + 249 locale + ", " + 256 locale + ", " + 275 locale [all...] |
/openjdk10/jdk/test/sun/util/resources/TimeZone/ |
H A D | Bug4640234.java | 98 for (Locale locale : locales2Test) { 100 locale); 102 sdfLoc = new SimpleDateFormat("zzzz", locale); 103 sdfLocShort = new SimpleDateFormat("z", locale); 109 warnings.append(testTZ(timezone, locale)); 118 locale, 135 locale, 163 // restore the reserved locale 169 * Compares the english timezone name and timezone name in specified locale 171 * @param locale 174 testTZ(String timeZoneName, Locale locale) argument 237 testEntry(String ISOCode, Map<String, String> entriesEn, Map<String, String> entriesLoc, Locale locale, String notFoundMessage, String notLocalizedMessage) argument [all...] |
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/policy/sourcemodel/attach/ |
H A D | ContextClassloaderLocalMessages.java | 65 public ResourceBundle getResourceBundle(Locale locale) { argument 66 return ResourceBundle.getBundle(BUNDLE_NAME, locale);
|
/openjdk10/jaxws/src/java.xml.ws/share/classes/javax/xml/soap/ |
H A D | SOAPBody.java | 88 * @param locale a {@link java.util.Locale} object indicating 96 public SOAPFault addFault(Name faultCode, String faultString, Locale locale) throws SOAPException; argument 121 * @param locale 129 * @see SOAPBody#addFault(Name faultCode, String faultString, Locale locale) 133 public SOAPFault addFault(QName faultCode, String faultString, Locale locale) argument
|
/openjdk10/jaxws/src/jdk.xml.ws/share/classes/com/sun/tools/internal/ws/resources/ |
H A D | ConfigurationMessages.java | 63 public ResourceBundle getResourceBundle(Locale locale) { argument 64 return ResourceBundle.getBundle(BUNDLE_NAME, locale);
|
H A D | JavacompilerMessages.java | 63 public ResourceBundle getResourceBundle(Locale locale) { argument 64 return ResourceBundle.getBundle(BUNDLE_NAME, locale);
|
H A D | ContextClassloaderLocalMessages.java | 63 public ResourceBundle getResourceBundle(Locale locale) { argument 64 return ResourceBundle.getBundle(BUNDLE_NAME, locale);
|
/openjdk10/jaxws/src/java.xml.ws/share/classes/com/sun/xml/internal/ws/resources/ |
H A D | BindingApiMessages.java | 65 public ResourceBundle getResourceBundle(Locale locale) { argument 66 return ResourceBundle.getBundle(BUNDLE_NAME, locale);
|
H A D | HttpserverMessages.java | 65 public ResourceBundle getResourceBundle(Locale locale) { argument 66 return ResourceBundle.getBundle(BUNDLE_NAME, locale);
|
H A D | ContextClassloaderLocalMessages.java | 65 public ResourceBundle getResourceBundle(Locale locale) { argument 66 return ResourceBundle.getBundle(BUNDLE_NAME, locale);
|
/openjdk10/jdk/src/java.base/share/classes/java/time/chrono/ |
H A D | HijrahEra.java | 165 * @param locale {@inheritDoc} 168 public String getDisplayName(TextStyle style, Locale locale) { argument 171 .toFormatter(locale)
|
H A D | ThaiBuddhistEra.java | 165 * @param locale {@inheritDoc} 168 public String getDisplayName(TextStyle style, Locale locale) { argument 171 .toFormatter(locale)
|
H A D | MinguoEra.java | 165 * @param locale {@inheritDoc} 168 public String getDisplayName(TextStyle style, Locale locale) { argument 171 .toFormatter(locale)
|
/openjdk10/jdk/src/java.base/share/classes/java/time/format/ |
H A D | DecimalStyle.java | 118 * The locale 'en_US' will always be present. 131 * {@link java.util.Locale.Category#FORMAT FORMAT} locale. 133 * This method provides access to locale sensitive decimal style symbols. 147 * Obtains the DecimalStyle for the specified locale. 149 * This method provides access to locale sensitive decimal style symbols. 151 * @param locale the locale, not null 154 public static DecimalStyle of(Locale locale) { argument 155 Objects.requireNonNull(locale, "locale"); 165 create(Locale locale) argument [all...] |
/openjdk10/jdk/src/java.base/share/classes/java/time/temporal/ |
H A D | TemporalField.java | 97 * Gets the display name for the field in the requested locale. 99 * If there is no display name for the locale then a suitable default must be returned. 101 * The default implementation must check the locale is not null 104 * @param locale the locale to use, not null 105 * @return the display name for the locale or a suitable default, not null 107 default String getDisplayName(Locale locale) { argument 108 Objects.requireNonNull(locale, "locale");
|
/openjdk10/jdk/src/java.sql.rowset/share/classes/com/sun/rowset/ |
H A D | JdbcRowSetResourceBundle.java | 91 * according to locale or the default one. 95 // to the locale. Else if no bundle found according 96 // to the locale load the default. 98 // In default case the default locale resource bundle 102 Locale locale = Locale.getDefault(); 104 // Load appropriate bundle according to locale 106 locale, JdbcRowSetResourceBundle.class.getModule()); 149 * @return value in locale specific language
|
/openjdk10/jdk/src/jdk.localedata/share/classes/sun/util/resources/provider/ |
H A D | LocaleDataProvider.java | 33 * Service Provider for loading locale data resource bundles in jdk.localedata 38 public ResourceBundle getBundle(String baseName, Locale locale) { argument 39 return loadResourceBundle(toBundleName(baseName, locale));
|