Home
last modified time | relevance | path

Searched refs:getScript (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/test/java/libcore/icu/
DICUTest.java70 assertEquals("Latn", ICU.getScript(ICU.addLikelySubtags("en_US"))); in test_getScript_addLikelySubtags()
71 assertEquals("Hebr", ICU.getScript(ICU.addLikelySubtags("he"))); in test_getScript_addLikelySubtags()
72 assertEquals("Hebr", ICU.getScript(ICU.addLikelySubtags("he_IL"))); in test_getScript_addLikelySubtags()
73 assertEquals("Hebr", ICU.getScript(ICU.addLikelySubtags("iw"))); in test_getScript_addLikelySubtags()
74 assertEquals("Hebr", ICU.getScript(ICU.addLikelySubtags("iw_IL"))); in test_getScript_addLikelySubtags()
78 assertEquals("Latn", ICU.addLikelySubtags(new Locale("en", "US")).getScript()); in test_addLikelySubtags()
79 assertEquals("Hebr", ICU.addLikelySubtags(new Locale("he")).getScript()); in test_addLikelySubtags()
80 assertEquals("Hebr", ICU.addLikelySubtags(new Locale("he", "IL")).getScript()); in test_addLikelySubtags()
81 assertEquals("Hebr", ICU.addLikelySubtags(new Locale("iw")).getScript()); in test_addLikelySubtags()
82 assertEquals("Hebr", ICU.addLikelySubtags(new Locale("iw", "IL")).getScript()); in test_addLikelySubtags()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DLocaleTest.java425 assertEquals("Latn", b.build().getScript()); in test_Builder_setScript()
445 assertEquals("", b.build().getScript()); in test_Builder_setScript()
450 assertEquals("", b.build().getScript()); in test_Builder_setScript()
464 assertEquals("", l.getScript()); in test_Builder_clear()
548 assertEquals("Latn", l.getScript()); in test_setLanguageTag_twoWellFormedSubtags()
554 assertEquals("", l.getScript()); in test_setLanguageTag_twoWellFormedSubtags()
636 assertEquals("", l.getScript()); in test_setLanguageTag_threeWellFormedSubtags()
643 assertEquals("Latn", l.getScript()); in test_setLanguageTag_threeWellFormedSubtags()
650 assertEquals("Latn", l.getScript()); in test_setLanguageTag_threeWellFormedSubtags()
657 assertEquals("", l.getScript()); in test_setLanguageTag_threeWellFormedSubtags()
[all …]
/libcore/luni/src/main/java/libcore/icu/
DICU.java444 public static native String getScript(String locale); in getScript() method in ICU
/libcore/luni/src/main/native/
Dlibcore_icu_ICU.cpp116 return env->NewStringUTF(icuLocale.locale().getScript()); in ICU_getScript()
807 NATIVE_METHOD(ICU, getScript, "(Ljava/lang/String;)Ljava/lang/String;"),
/libcore/luni/src/main/java/java/util/
DLocale.java566 this.script = locale.getScript(); in setLocale()
1268 public String getScript() { in getScript() method in Locale