Searched refs:getScriptIfChinese (Results 1 – 2 of 2) sorted by relevance
53 assertEquals("Hans", LocaleSet.getScriptIfChinese(Locale.forLanguageTag("zh"))); in testGetScriptIfChinese()54 assertEquals("Hans", LocaleSet.getScriptIfChinese(Locale.forLanguageTag("zh-SG"))); in testGetScriptIfChinese()56 assertEquals("Hant", LocaleSet.getScriptIfChinese(Locale.forLanguageTag("zh-TW"))); in testGetScriptIfChinese()57 assertEquals("Hant", LocaleSet.getScriptIfChinese(Locale.forLanguageTag("zh-HK"))); in testGetScriptIfChinese()59 assertEquals(null, LocaleSet.getScriptIfChinese(Locale.ENGLISH)); in testGetScriptIfChinese()60 assertEquals(null, LocaleSet.getScriptIfChinese(Locale.forLanguageTag("ja"))); in testGetScriptIfChinese()61 assertEquals(null, LocaleSet.getScriptIfChinese(Locale.forLanguageTag("ja-JP"))); in testGetScriptIfChinese()
85 static String getScriptIfChinese(@Nullable Locale locale) { in getScriptIfChinese() method in LocaleSet90 return SCRIPT_SIMPLIFIED_CHINESE.equals(getScriptIfChinese(locale)); in isLocaleSimplifiedChinese()95 return SCRIPT_TRADITIONAL_CHINESE.equals(getScriptIfChinese(locale)); in isLocaleTraditionalChinese()