Home
last modified time | relevance | path

Searched refs:script (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/locale/
DBaseLocale.java44 private final String script; field in BaseLocale
53 this.script = ""; in BaseLocale()
58 private BaseLocale(String language, String script, String region, String variant) { in BaseLocale() argument
60 this.script = (script != null) ? LocaleUtils.toTitleString(script).intern() : ""; in BaseLocale()
73 public static BaseLocale getInstance(String language, String script, in getInstance() argument
86 Key key = new Key(language, script, region, variant); in getInstance()
96 return script; in getScript()
117 && script == other.script in equals()
129 if (script.length() > 0) { in toString()
134 buf.append(script); in toString()
[all …]
DInternalLocaleBuilder.java47 private String script = ""; field in InternalLocaleBuilder
71 public InternalLocaleBuilder setScript(String script) throws LocaleSyntaxException { in setScript() argument
72 if (LocaleUtils.isEmpty(script)) { in setScript()
73 this.script = ""; in setScript()
75 if (!LanguageTag.isScript(script)) { in setScript()
76 throw new LocaleSyntaxException("Ill-formed script: " + script, 0); in setScript()
78 this.script = script; in setScript()
358 script = langtag.getScript(); in setLanguageTag()
378 String script = base.getScript(); in setLocale() local
413 if (script.length() > 0 && !LanguageTag.isScript(script)) { in setLocale()
[all …]
DLanguageTag.java54 private String script = ""; // script subtag field in LanguageTag
285 script = s; in parseScript()
420 String script = baseLocale.getScript(); in parseLocale() local
440 if (isScript(script)) { in parseLocale()
441 tag.script = canonicalizeScript(script); in parseLocale()
558 return script; in getScript()
724 if (script.length() > 0) { in toString()
725 sb.append(SEP).append(script); in toString()
/libcore/dom/src/test/resources/
Dstaff2.dtd10 <!ELEMENT svg (rect, script, employee+)>
20 <!ELEMENT script (#PCDATA)> element
21 <!ATTLIST script type CDATA #IMPLIED>
/libcore/ojluni/src/main/java/java/util/
DResourceBundle.java2372 String script = base.getScript(); in createObject() local
2388 List<Locale> tmpList = getDefaultList("nb", script, region, variant); in createObject()
2402 List<Locale> nynorskList = getDefaultList("nn", script, region, variant); in createObject()
2411 if (script.length() == 0 && region.length() > 0) { in createObject()
2418 script = "Hant"; in createObject()
2422 script = "Hans"; in createObject()
2425 } else if (script.length() > 0 && region.length() == 0) { in createObject()
2428 switch (script) { in createObject()
2439 return getDefaultList(language, script, region, variant); in createObject()
2442 …private static List<Locale> getDefaultList(String language, String script, String region, String v… in getDefaultList() argument
[all …]
DLocale.java820 static Locale getInstance(String language, String script, String country, in getInstance() argument
822 if (language== null || script == null || country == null || variant == null) { in getInstance()
827 extensions = getCompatibilityExtensions(language, script, country, variant); in getInstance()
830 BaseLocale baseloc = BaseLocale.getInstance(language, script, country, variant); in getInstance()
969 String language, region, script, country, variant; in initDefault() local
983 script = ""; in initDefault()
985 script = System.getProperty("user.script", ""); in initDefault()
991 return getInstance(language, script, country, variant, null); in initDefault()
2635 String script = (String)fields.get("script", ""); in readObject() local
2639 baseLocale = BaseLocale.getInstance(convertOldISOCodes(language), script, country, variant); in readObject()
[all …]
/libcore/luni/src/test/etc/loading-test2-jar/
DREADME.txt6 resources in any sane way. To update the resource, use the script
/libcore/luni/src/test/etc/loading-test-jar/
DREADME.txt6 resources in any sane way. To update the resource, use the script
/libcore/ojluni/annotations/hiddenapi/java/util/
DLocale.java79 java.lang.String script, in getInstance() argument
319 java.lang.String script, in getCompatibilityExtensions() argument
562 public java.util.Locale.Builder setScript(java.lang.String script) { in setScript() argument
/libcore/ojluni/src/main/java/java/awt/font/
DNumericShaper.java314 private static int toRangeIndex(Range script) { in toRangeIndex() argument
315 int index = script.ordinal(); in toRangeIndex()
/libcore/ojluni/annotations/mmodule/java/util/
DLocale.annotated.java228 public java.util.Locale.Builder setScript(java.lang.String script) { throw new RuntimeException("St… in setScript() argument
/libcore/ojluni/annotations/sdk/nullability/java/util/
DLocale.annotated.java224 …va.util.Locale.Builder setScript(@libcore.util.Nullable java.lang.String script) { throw new Runti… in setScript() argument