Lines Matching refs:script

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
877 * would be omitted. Also, if script is an empty string, the candidate names
878 * including script are omitted. For example, a locale with language "de"
890 * original variant. For example, for a locale with language "en", script
2149 * respectively represent non-empty language, script, country, and
2156 * <ol><li>For an input <code>Locale</code> with an empty script value,
2167 * <li>For an input <code>Locale</code> with a non-empty script value,
2202 * language "zh" (Chinese) and an empty script value, either "Hans" (Simplified) or
2207 * is empty, no script is supplied. For example, for <code>Locale("zh", "CN")
2312 String script = base.getScript();
2328 List<Locale> tmpList = getDefaultList("nb", script, region, variant);
2342 List<Locale> nynorskList = getDefaultList("nn", script, region, variant);
2351 if (script.length() == 0 && region.length() > 0) {
2352 // Supply script for users who want to use zh_Hans/zh_Hant
2355 script = "Hant";
2357 script = "Hans";
2359 } else if (script.length() > 0 && region.length() == 0) {
2362 if (script.equals("Hans")) {
2364 } else if (script.equals("Hant")) {
2370 return getDefaultList(language, script, region, variant);
2373 private static List<Locale> getDefaultList(String language, String script, String region, String variant) {
2389 list.add(Locale.getInstance(language, script, region, v, null));
2393 list.add(Locale.getInstance(language, script, region, "", null));
2395 if (script.length() > 0) {
2396 list.add(Locale.getInstance(language, script, "", "", null));
2398 // With script, after truncating variant, region and script,
2399 // start over without script.
2774 * baseName + "_" + language + "_" + script + "_" + country + "_" + variant
2776 * where <code>language</code>, <code>script</code>, <code>country</code>,
2777 * and <code>variant</code> are the language, script, country, and variant
2780 * script is empty, the script value is ommitted along with the preceding '_'.
2812 String script = locale.getScript();
2822 if (script != "") {
2824 sb.append(language).append('_').append(script).append('_').append(country).append('_').append(variant);
2826 sb.append(language).append('_').append(script).append('_').append(country);
2828 sb.append(language).append('_').append(script);