/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/lang/ |
D | TestUScript.java | 21 import android.icu.lang.UScript; 22 import android.icu.lang.UScript.ScriptUsage; 41 UScript.COMMON==UScript.getScript(0x0640) && in TestGetScriptOfCharsWithScriptExtensions() 42 UScript.INHERITED==UScript.getScript(0x0650) && in TestGetScriptOfCharsWithScriptExtensions() 43 UScript.ARABIC==UScript.getScript(0xfdf2)) in TestGetScriptOfCharsWithScriptExtensions() 52 !UScript.hasScript(0x063f, UScript.COMMON) && in TestHasScript() 53 UScript.hasScript(0x063f, UScript.ARABIC) && /* main Script value */ in TestHasScript() 54 !UScript.hasScript(0x063f, UScript.SYRIAC) && in TestHasScript() 55 !UScript.hasScript(0x063f, UScript.THAANA)) in TestHasScript() 60 !UScript.hasScript(0x0640, UScript.COMMON) && /* main Script value */ in TestHasScript() [all …]
|
D | DataDrivenUScriptTest.java | 17 import android.icu.lang.UScript; 34 sb.append(UScript.getShortName(script)); in scriptsToString() 55 return Arrays.asList(new Object[][] { { new ULocale("en"), UScript.LATIN }, in testData() 56 { new ULocale("en_US"), UScript.LATIN }, in testData() 57 { new ULocale("sr"), UScript.CYRILLIC }, in testData() 58 { new ULocale("ta"), UScript.TAMIL }, in testData() 59 { new ULocale("te_IN"), UScript.TELUGU }, in testData() 60 { new ULocale("hi"), UScript.DEVANAGARI }, in testData() 61 { new ULocale("he"), UScript.HEBREW }, in testData() 62 { new ULocale("ar"), UScript.ARABIC }, in testData() [all …]
|
D | TestUScriptRun.java | 18 import android.icu.lang.UScript; 45 … new RunTestData("\u0020\u0946\u0939\u093F\u0928\u094D\u0926\u0940\u0020", UScript.DEVANAGARI), 46 new RunTestData("\u0627\u0644\u0639\u0631\u0628\u064A\u0629\u0020", UScript.ARABIC), 47 new RunTestData("\u0420\u0443\u0441\u0441\u043A\u0438\u0439\u0020", UScript.CYRILLIC), 48 new RunTestData("English (", UScript.LATIN), 49 new RunTestData("\u0E44\u0E17\u0E22", UScript.THAI), 50 new RunTestData(") ", UScript.LATIN), 51 new RunTestData("\u6F22\u5B75", UScript.HAN), 52 new RunTestData("\u3068\u3072\u3089\u304C\u306A\u3068", UScript.HIRAGANA), 53 new RunTestData("\u30AB\u30BF\u30AB\u30CA", UScript.KATAKANA), [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/lang/ |
D | TestUScript.java | 20 import com.ibm.icu.lang.UScript; 21 import com.ibm.icu.lang.UScript.ScriptUsage; 38 UScript.COMMON==UScript.getScript(0x0640) && in TestGetScriptOfCharsWithScriptExtensions() 39 UScript.INHERITED==UScript.getScript(0x0650) && in TestGetScriptOfCharsWithScriptExtensions() 40 UScript.ARABIC==UScript.getScript(0xfdf2)) in TestGetScriptOfCharsWithScriptExtensions() 49 !UScript.hasScript(0x063f, UScript.COMMON) && in TestHasScript() 50 UScript.hasScript(0x063f, UScript.ARABIC) && /* main Script value */ in TestHasScript() 51 !UScript.hasScript(0x063f, UScript.SYRIAC) && in TestHasScript() 52 !UScript.hasScript(0x063f, UScript.THAANA)) in TestHasScript() 57 !UScript.hasScript(0x0640, UScript.COMMON) && /* main Script value */ in TestHasScript() [all …]
|
D | DataDrivenUScriptTest.java | 16 import com.ibm.icu.lang.UScript; 31 sb.append(UScript.getShortName(script)); in scriptsToString() 52 return Arrays.asList(new Object[][] { { new ULocale("en"), UScript.LATIN }, in testData() 53 { new ULocale("en_US"), UScript.LATIN }, in testData() 54 { new ULocale("sr"), UScript.CYRILLIC }, in testData() 55 { new ULocale("ta"), UScript.TAMIL }, in testData() 56 { new ULocale("te_IN"), UScript.TELUGU }, in testData() 57 { new ULocale("hi"), UScript.DEVANAGARI }, in testData() 58 { new ULocale("he"), UScript.HEBREW }, in testData() 59 { new ULocale("ar"), UScript.ARABIC }, in testData() [all …]
|
D | TestUScriptRun.java | 17 import com.ibm.icu.lang.UScript; 42 … new RunTestData("\u0020\u0946\u0939\u093F\u0928\u094D\u0926\u0940\u0020", UScript.DEVANAGARI), 43 new RunTestData("\u0627\u0644\u0639\u0631\u0628\u064A\u0629\u0020", UScript.ARABIC), 44 new RunTestData("\u0420\u0443\u0441\u0441\u043A\u0438\u0439\u0020", UScript.CYRILLIC), 45 new RunTestData("English (", UScript.LATIN), 46 new RunTestData("\u0E44\u0E17\u0E22", UScript.THAI), 47 new RunTestData(") ", UScript.LATIN), 48 new RunTestData("\u6F22\u5B75", UScript.HAN), 49 new RunTestData("\u3068\u3072\u3089\u304C\u306A\u3068", UScript.HIRAGANA), 50 new RunTestData("\u30AB\u30BF\u30AB\u30CA", UScript.KATAKANA), [all …]
|
/external/cldr/tools/java/org/unicode/cldr/draft/ |
D | TestMixedScript.java | 8 import com.ibm.icu.lang.UScript; 95 UScript.getScriptExtensions(i, bitSet); in UScript.getScriptExtensions() 114 UScript.getScriptExtensions(cp, ext); in findScripts() 117 int script = UScript.getScript(cp); in findScripts() 118 if (script == UScript.UNKNOWN) { in findScripts() 121 … if (script != UScript.COMMON && script != UScript.INHERITED) { // skip common/inherited in findScripts() 131 ALL_SCRIPTS.set(UScript.COMMON, UScript.CODE_LIMIT, true); in ALL_SCRIPTS.set() 189 DISALLOWED_WITH_LATIN.clear(UScript.ARABIC); 190 DISALLOWED_WITH_LATIN.clear(UScript.ARMENIAN); 191 DISALLOWED_WITH_LATIN.clear(UScript.BENGALI); [all …]
|
D | IdentifierInfo.java | 11 import com.ibm.icu.lang.UScript; 100 UScript.getScriptExtensions(cp, temp); in setIdentifier() 101 temp.clear(UScript.COMMON); in setIdentifier() 102 temp.clear(UScript.INHERITED); in setIdentifier() 105 requiredScripts.set(UScript.getScript(cp)); in setIdentifier() 122 commonAmongAlternates.set(0, UScript.CODE_LIMIT); in setIdentifier() 148 static final BitSet COMMON_AND_INHERITED = set(new BitSet(), UScript.COMMON, UScript.INHERITED); 157 UScript.getScriptExtensions(cp, temp); in isMultiScript() 160 final int script = UScript.getScript(cp); in isMultiScript() 233 …private final static BitSet JAPANESE = set(new BitSet(), UScript.LATIN, UScript.HAN, UScript.HIRAG… [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | AnyTransliterator.java | 24 import android.icu.lang.UScript; 175 if (source == targetScript || source == UScript.INVALID_CODE) { in getTransliterator() 186 String sourceName = UScript.getName(source); in getTransliterator() 225 …eturn script == UScript.BOPOMOFO || script == UScript.HAN || script == UScript.HANGUL || script ==… in isWide() 249 if (targetScript == UScript.INVALID_CODE) { in register() 285 int[] codes = UScript.getCode(name); in scriptNameToCode() 286 return codes != null ? codes[0] : UScript.INVALID_CODE; in scriptNameToCode() 289 return UScript.INVALID_CODE; in scriptNameToCode() 353 scriptCode = UScript.INVALID_CODE; // don't know script yet in next() 365 s = UScript.getScript(ch); in next() [all …]
|
D | SpoofChecker.java | 41 import android.icu.lang.UScript; 670 tempSet.applyIntPropertyValue(UProperty.SCRIPT, UScript.COMMON); in setAllowedLocales() 672 tempSet.applyIntPropertyValue(UProperty.SCRIPT, UScript.INHERITED); in setAllowedLocales() 705 int scripts[] = UScript.getCode(locale); in addScriptChars() 1518 UScript.getScriptExtensions(codePoint, result); in getAugmentedScriptSet() 1521 if (result.get(UScript.HAN)) { in getAugmentedScriptSet() 1522 result.set(UScript.HAN_WITH_BOPOMOFO); in getAugmentedScriptSet() 1523 result.set(UScript.JAPANESE); in getAugmentedScriptSet() 1524 result.set(UScript.KOREAN); in getAugmentedScriptSet() 1526 if (result.get(UScript.HIRAGANA)) { in getAugmentedScriptSet() [all …]
|
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
D | AnyTransliterator.java | 23 import com.ibm.icu.lang.UScript; 175 if (source == targetScript || source == UScript.INVALID_CODE) { in getTransliterator() 186 String sourceName = UScript.getName(source); in getTransliterator() 225 …eturn script == UScript.BOPOMOFO || script == UScript.HAN || script == UScript.HANGUL || script ==… in isWide() 249 if (targetScript == UScript.INVALID_CODE) { in register() 285 int[] codes = UScript.getCode(name); in scriptNameToCode() 286 return codes != null ? codes[0] : UScript.INVALID_CODE; in scriptNameToCode() 289 return UScript.INVALID_CODE; in scriptNameToCode() 353 scriptCode = UScript.INVALID_CODE; // don't know script yet in next() 365 s = UScript.getScript(ch); in next() [all …]
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/ |
D | ScriptTagModuleWriter.java | 11 import com.ibm.icu.lang.UScript; 38 case UScript.BENGALI: in writeTagValueHeader() 41 case UScript.DEVANAGARI: in writeTagValueHeader() 44 case UScript.GUJARATI: in writeTagValueHeader() 47 case UScript.GURMUKHI: in writeTagValueHeader() 50 case UScript.KANNADA: in writeTagValueHeader() 53 case UScript.MALAYALAM: in writeTagValueHeader() 56 case UScript.ORIYA: in writeTagValueHeader() 59 case UScript.TAMIL: in writeTagValueHeader() 62 case UScript.TELUGU: in writeTagValueHeader()
|
D | CanonicalCharacterData.java | 16 import com.ibm.icu.lang.UScript; 124 int script = UScript.getScript(character); in add() 136 if (script < 0 || script >= UScript.CODE_LIMIT) { in getMaxEquivalents() 145 if (script < 0 || script >= UScript.CODE_LIMIT) { in getRecord() 160 if (script < 0 || script >= UScript.CODE_LIMIT || in countRecords() 216 private Vector recordVectors[] = new Vector[UScript.CODE_LIMIT]; 217 private int maxEquivalents[] = new int[UScript.CODE_LIMIT];
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/ |
D | AnyScriptTest.java | 17 import android.icu.lang.UScript; 44 for (int script = 0; script < UScript.CODE_LIMIT; ++script) { in TestScripts() 45 … UnicodeSet test = new UnicodeSet().applyPropertyAlias("script", UScript.getName(script)); in TestScripts() 57 for (int script = 0; script < UScript.CODE_LIMIT; ++script) { in TestScripts() 58 if (script == UScript.COMMON || script == UScript.INHERITED) { in TestScripts() 63 if (inclusion < 10 && script != UScript.LATIN in TestScripts() 64 && script != UScript.HAN in TestScripts() 65 && script != UScript.HIRAGANA in TestScripts() 71 String scriptName = UScript.getName(script); // long name in TestScripts() 91 String shortScriptName = UScript.getShortName(script); // 4-letter script code in TestScripts()
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
D | AnyScriptTest.java | 16 import com.ibm.icu.lang.UScript; 41 for (int script = 0; script < UScript.CODE_LIMIT; ++script) { in TestScripts() 42 … UnicodeSet test = new UnicodeSet().applyPropertyAlias("script", UScript.getName(script)); in TestScripts() 54 for (int script = 0; script < UScript.CODE_LIMIT; ++script) { in TestScripts() 55 if (script == UScript.COMMON || script == UScript.INHERITED) { in TestScripts() 60 if (inclusion < 10 && script != UScript.LATIN in TestScripts() 61 && script != UScript.HAN in TestScripts() 62 && script != UScript.HIRAGANA in TestScripts() 68 String scriptName = UScript.getName(script); // long name in TestScripts() 88 String shortScriptName = UScript.getShortName(script); // 4-letter script code in TestScripts()
|
/external/cldr/tools/java/org/unicode/cldr/posix/ |
D | POSIXLocale.java | 22 import com.ibm.icu.lang.UScript; 77 int PreviousScript = UScript.INVALID_CODE; in POSIXLocale() 80 int Script = UScript.getScript(it.codepoint); in POSIXLocale() 81 if (Script != UScript.COMMON && in POSIXLocale() 82 Script != UScript.INHERITED && in POSIXLocale() 83 Script != UScript.INVALID_CODE && in POSIXLocale() 84 Script != UScript.HAN && in POSIXLocale() 122 int PreviousScript = UScript.INVALID_CODE; in POSIXLocale() 125 int Script = UScript.getScript(it.codepoint); in POSIXLocale() 126 if (Script != UScript.COMMON && in POSIXLocale() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | SpoofChecker.java | 40 import com.ibm.icu.lang.UScript; 712 tempSet.applyIntPropertyValue(UProperty.SCRIPT, UScript.COMMON); in setAllowedLocales() 714 tempSet.applyIntPropertyValue(UProperty.SCRIPT, UScript.INHERITED); in setAllowedLocales() 748 int scripts[] = UScript.getCode(locale); in addScriptChars() 1584 UScript.getScriptExtensions(codePoint, result); in getAugmentedScriptSet() 1587 if (result.get(UScript.HAN)) { in getAugmentedScriptSet() 1588 result.set(UScript.HAN_WITH_BOPOMOFO); in getAugmentedScriptSet() 1589 result.set(UScript.JAPANESE); in getAugmentedScriptSet() 1590 result.set(UScript.KOREAN); in getAugmentedScriptSet() 1592 if (result.get(UScript.HIRAGANA)) { in getAugmentedScriptSet() [all …]
|
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/translit/ |
D | TransliterationChart.java | 24 import com.ibm.icu.lang.UScript; 36 UScript.LATIN, in main() 37 UScript.DEVANAGARI, in main() 38 UScript.BENGALI, in main() 39 UScript.GURMUKHI, in main() 40 UScript.GUJARATI, in main() 41 UScript.ORIYA, in main() 42 UScript.TAMIL, in main() 43 UScript.TELUGU, in main() 44 UScript.KANNADA, in main() [all …]
|
D | AnyTransliterator.java | 17 import com.ibm.icu.lang.UScript; 154 script = UScript.INVALID_CODE; in reset() 176 int scrpt = UScript.getScript(cp); in next() 177 if (scrpt != UScript.COMMON && scrpt != UScript.INHERITED) break; in next() 183 int lastScript = UScript.COMMON; in next() 188 int scrpt = UScript.getScript(cp); in next() 189 if (scrpt == UScript.INHERITED) scrpt = UScript.COMMON; in next() 190 if (scrpt != UScript.COMMON) { in next() 194 if (lastScript == UScript.COMMON) lastScript = scrpt; in next() 235 return UScript.getName(script); in getName() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/lang/ |
D | UScript.java | 44 public final class UScript { class 864 return new int[] { UScript.KATAKANA, UScript.HIRAGANA, UScript.HAN }; in getCodesFromLocale() 867 return new int[] { UScript.HANGUL, UScript.HAN }; in getCodesFromLocale() 871 return new int[] { UScript.HAN, UScript.BOPOMOFO }; in getCodesFromLocale() 875 int scriptCode = UScript.getCodeFromName(script); in getCodesFromLocale() 876 if(scriptCode != UScript.INVALID_CODE) { in getCodesFromLocale() 877 if(scriptCode == UScript.SIMPLIFIED_HAN || scriptCode == UScript.TRADITIONAL_HAN) { in getCodesFromLocale() 878 scriptCode = UScript.HAN; in getCodesFromLocale() 979 return UScript.COMMON; in getScript() 981 return UScript.INHERITED; in getScript() [all …]
|
D | UScriptRun.java | 157 scriptCode = UScript.INVALID_CODE; in reset() 349 scriptCode = UScript.COMMON; in next() 357 int sc = UScript.getScript(ch); in next() 385 if (scriptCode <= UScript.INHERITED && sc > UScript.INHERITED) { in next() 420 … return scriptOne <= UScript.INHERITED || scriptTwo <= UScript.INHERITED || scriptOne == scriptTwo; in sameScript()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/lang/ |
D | UScript.java | 45 public final class UScript { class 1048 return new int[] { UScript.KATAKANA, UScript.HIRAGANA, UScript.HAN }; in getCodesFromLocale() 1051 return new int[] { UScript.HANGUL, UScript.HAN }; in getCodesFromLocale() 1055 return new int[] { UScript.HAN, UScript.BOPOMOFO }; in getCodesFromLocale() 1059 int scriptCode = UScript.getCodeFromName(script); in getCodesFromLocale() 1060 if(scriptCode != UScript.INVALID_CODE) { in getCodesFromLocale() 1061 if(scriptCode == UScript.SIMPLIFIED_HAN || scriptCode == UScript.TRADITIONAL_HAN) { in getCodesFromLocale() 1062 scriptCode = UScript.HAN; in getCodesFromLocale() 1168 return UScript.COMMON; in getScript() 1170 return UScript.INHERITED; in getScript() [all …]
|
D | UScriptRun.java | 155 scriptCode = UScript.INVALID_CODE; in reset() 347 scriptCode = UScript.COMMON; in next() 355 int sc = UScript.getScript(ch); in next() 383 if (scriptCode <= UScript.INHERITED && sc > UScript.INHERITED) { in next() 418 … return scriptOne <= UScript.INHERITED || scriptTwo <= UScript.INHERITED || scriptOne == scriptTwo; in sameScript()
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestScriptMetadata.java | 32 import com.ibm.icu.lang.UScript; 57 int scriptCode = UScript.getScriptExtensions( in TestScriptOfSample() 67 Info info0 = ScriptMetadata.getInfo(UScript.LATIN); in TestBasic() 93 info0 = ScriptMetadata.getInfo(UScript.HEBREW); in TestBasic() 106 for (int i = UScript.COMMON; i < UScript.CODE_LIMIT; ++i) { in TestScripts() 110 UScript.getName(i) + "\t(" + UScript.getShortName(i) in TestScripts() 118 errln("Missing script metadata for " + UScript.getName(i) in TestScripts() 119 + "\t(" + UScript.getShortName(i)); in TestScripts() 121 missingScripts.add(UScript.getShortName(i)); in TestScripts() 169 UScript.getCodeFromName(s)); in TestShowLanguages()
|
/external/cldr/tools/java/org/unicode/cldr/test/ |
D | CheckExemplars.java | 17 import com.ibm.icu.lang.UScript; 290 Japn.set(UScript.HAN); 291 Japn.set(UScript.HIRAGANA); 292 Japn.set(UScript.KATAKANA); 293 Kore.set(UScript.HAN); 294 Kore.set(UScript.HANGUL); 300 int script = UScript.getScript(item.codePointAt(0)); in checkMixedScripts() 301 if (script != UScript.COMMON && script != UScript.INHERITED) { in checkMixedScripts() 309 if (cardinality == 2 && title.equals("currencySymbol") && s.get(UScript.LATIN)) { in checkMixedScripts() 321 scripts.append(UScript.getName(i)); in checkMixedScripts()
|