/openjdk7/jdk/test/java/util/PluggableLocale/providersrc/ |
H A D | TimeZoneNameProviderImpl.java | 131 public String getDisplayName(String id, boolean dst, int style, Locale language) { argument 132 if (!Utils.supportsLocale(Arrays.asList(avail), language)) { 133 throw new IllegalArgumentException("locale is not one of available locales: "+language); 137 if (Utils.supportsLocale(avail[i], language)) {
|
/openjdk7/jdk/test/java/util/ResourceBundle/ |
H A D | Test4314141.java | 60 static void doTestCandidateOmission(String language, String country, String variant, argument 62 doTest("Test4314141A", language, country, variant, expectedSuffixes); 77 static void doTestExample(String language, String country, String[] expectedSuffixes) { argument 78 doTest("Test4314141B", language, country, "", expectedSuffixes); 81 static void doTest(String baseName, String language, String country, String variant, argument 83 System.out.print("Looking for " + baseName + " \"" + language + "\", \"" + country + "\", \"" + variant + "\""); 84 ResourceBundle bundle = ResourceBundle.getBundle(baseName, new Locale(language, country, variant));
|
/openjdk7/jdk/make/tools/src/build/tools/generatebreakiteratordata/ |
H A D | GenerateBreakIteratorData.java | 56 private static String language = ""; field in class:GenerateBreakIteratorData 82 new Locale(language, country, valiant)); 86 new Locale(language, country, valiant)); 148 } else if (arg.equals("-language")) { 149 language = args[++i]; 167 if (language.equals("")) { 169 language = "en"; 177 sb.append(language); 198 " -lang language target language nam [all...] |
/openjdk7/langtools/src/share/classes/com/sun/tools/javadoc/ |
H A D | DocLocale.java | 113 String language = null; 117 language = localeName.substring(0, firstuscore); 135 language = localeName; 140 userlocale = searchLocale(language, country, variant); 153 * Search the locale for specified language, specified country and 156 private Locale searchLocale(String language, String country, argument 160 if (locales[i].getLanguage().equals(language) &&
|
/openjdk7/jdk/test/javax/imageio/plugins/png/ |
H A D | ITXtTest.java | 58 t_en.language = "en"; 75 t_ru.language = "ru"; 93 String language; field in class:ITXtTest 106 iTXtEntry.setAttribute("languageTag", language); 129 t.language = e.getAttribute("languageTag"); 145 if (!language.equals(t.language)) { return false; }
|
/openjdk7/jdk/src/share/classes/sun/util/locale/ |
H A D | BaseLocale.java | 42 private final String language; field in class:BaseLocale 50 private BaseLocale(String language, String region) { argument 51 this.language = language; 57 private BaseLocale(String language, String script, String region, String variant) { argument 58 this.language = (language != null) ? LocaleUtils.toLowerString(language).intern() : ""; 66 public static BaseLocale createInstance(String language, String region) { argument 67 BaseLocale base = new BaseLocale(language, regio 72 getInstance(String language, String script, String region, String variant) argument 178 Key(String language, String region) argument 198 Key(String language, String script, String region, String variant) argument 202 Key(String language, String script, String region, String variant, boolean normalized) argument [all...] |
H A D | InternalLocaleBuilder.java | 46 private String language = ""; field in class:InternalLocaleBuilder 59 public InternalLocaleBuilder setLanguage(String language) throws LocaleSyntaxException { argument 60 if (LocaleUtils.isEmpty(language)) { 61 this.language = ""; 63 if (!LanguageTag.isLanguage(language)) { 64 throw new LocaleSyntaxException("Ill-formed language: " + language, 0); 66 this.language = language; 346 * Reset Builder's internal state with the given language ta [all...] |
H A D | LanguageTag.java | 53 private String language = ""; // language subtag field in class:LanguageTag 91 // / "no-bok" ; are not extended language 139 * Language-Tag = langtag ; normal language tags 144 * langtag = language 151 * language = 2*3ALPHA ; shortest ISO 639 code 153 * ; extended language subtags 155 * / 5*8ALPHA ; or registered language subtag 201 // langtag must start with either language or privateuse 238 language [all...] |
/openjdk7/jdk/src/solaris/native/java/lang/ |
H A D | java_props_md.c | 141 char *language = NULL, *country = NULL, *variant = NULL, local 185 * <language name>_<country name>.<encoding name>@<variant name> 193 /* Parse the language, country, encoding, and variant from the 196 * preceded by their delimiter (except for language). 201 * locale_aliases list are locales that include a language name but 202 * no country name, and this facility is used to map each language 228 language = temp; 242 /* Normalize the language name */ 245 if (language != NULL && mapLookup(language_names, language, std_languag [all...] |
/openjdk7/jdk/src/windows/native/java/lang/ |
H A D | java_props_md.c | 46 static void SetupI18nProps(LCID lcid, char** language, char** script, char** country, 144 // there always is the "language" tag 268 SetupI18nProps(LCID lcid, char** language, char** script, char** country, argument 289 /* language */ 290 *language = malloc(PROPSIZE); 292 LOCALE_SISO639LANGNAME, *language, PROPSIZE) == 0 && 294 LOCALE_SISO639LANGNAME2, *language, PROPSIZE) == 0) { 296 strcpy(*language, "en"); 305 if (strcmp(*language, "nb") == 0) { 306 strcpy(*language, "n [all...] |
/openjdk7/jdk/src/share/native/java/lang/ |
H A D | java_props.h | 55 char *language; member in struct:__anon657
|
/openjdk7/jdk/src/share/classes/java/util/ |
H A D | ResourceBundle.java | 104 * the German language (de) in Switzerland (CH). If you want to only 223 * // default (English language, United States) 242 * // German language 859 * locale's language, script, country, and variant are all empty strings, 862 * specified locale (language, script, country and variant) and appended to 866 * baseName + "_" + language + "_" + script + "_" + country + "_" + variant 867 * baseName + "_" + language + "_" + script + "_" + country 868 * baseName + "_" + language + "_" + script 869 * baseName + "_" + language + "_" + country + "_" + variant 870 * baseName + "_" + language 2373 getDefaultList(String language, String script, String region, String variant) argument [all...] |
H A D | Locale.java | 85 * <dt><a name="def_language"/><b>language</b></dt> 87 * <dd>ISO 639 alpha-2 or alpha-3 language code, or registered 88 * language subtags up to 8 alpha letters (for future enhancements). 89 * When a language has both an alpha-2 code and an alpha-3 code, the 91 * language codes in the IANA Language Subtag Registry (search for 92 * "Type: language"). The language field is case insensitive, but 95 * <dd>Well-formed language values have the form 97 * BCP47 language production, since it excludes extlang. They are 98 * not needed since modern three-letter language code 571 Locale(String language, String country, String variant) argument 601 Locale(String language, String country) argument 625 Locale(String language) argument 652 getInstance(String language, String country, String variant) argument 656 getInstance(String language, String script, String country, String variant, LocaleExtensions extensions) argument 2104 convertOldISOCodes(String language) argument 2119 getCompatibilityExtensions(String language, String script, String country, String variant) argument 2330 setLanguage(String language) argument [all...] |
/openjdk7/jaxp/src/com/sun/org/apache/xerces/internal/xinclude/ |
H A D | XIncludeHandler.java | 17 * See the License for the specific language governing permissions and 142 public final static String XINCLUDE_ATTR_ACCEPT_LANGUAGE = "accept-language".intern(); 159 // used for adding [language] attributes 207 /** Feature identifier: fixup language. */ 350 // flags which control whether base URI or language fixup is performed. 812 // initialize the current language 1080 // pop the language from the stack 1581 // Verify that if an accept and/or an accept-language attribute exist 1914 * Returns true if the current [language] is equivalent to the [language] tha 2805 saveLanguage(String language) argument [all...] |