/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/ |
D | TransliteratorTest.java | 37 import android.icu.text.Transliterator; 98 Transliterator lh = Transliterator.getInstance("Latin-Hangul"); in TestHangul() 99 Transliterator hl = lh.getInverse(); in TestHangul() 134 Transliterator hanLatin = Transliterator.getInstance("Han-Latin"); in TestChinese() 144 for (Enumeration e = Transliterator.getAvailableIDs(); e.hasMoreElements(); ) { in TestRegistry() 151 Transliterator foo = Transliterator.createFromRules(id, rules, Transliterator.FORWARD); in checkRegistry() 152 Transliterator.registerInstance(foo); in checkRegistry() 157 Transliterator fie = Transliterator.getInstance(id); in checkRegistry() 160 Transliterator foe = Transliterator.getInstance(id); in checkRegistry() 172 for (Enumeration e = Transliterator.getAvailableIDs(); e.hasMoreElements(); ) { in TestInstantiation() [all …]
|
D | ErrorTest.java | 15 import android.icu.text.Transliterator; 35 Transliterator.Position pos = new Transliterator.Position(); in TestTransliteratorErrors() 37 Transliterator t = in TestTransliteratorErrors() 38 Transliterator.getInstance(trans, Transliterator.FORWARD); in TestTransliteratorErrors() 114 Transliterator t1 = null; in TestTransliteratorErrors() 116 t1 = Transliterator.getInstance(bogusID, Transliterator.FORWARD); in TestTransliteratorErrors() 124 Transliterator t2 = in TestTransliteratorErrors() 125 Transliterator.createFromRules( in TestTransliteratorErrors() 128 Transliterator.FORWARD); in TestTransliteratorErrors() 130 Transliterator t3 = t2.getInverse(); in TestTransliteratorErrors() [all …]
|
D | JamoTest.java | 19 import android.icu.text.Transliterator; 28 Transliterator latinJamo = Transliterator.getInstance("Latin-Jamo"); in TestJamo() 29 Transliterator jamoLatin = latinJamo.getInverse(); in TestJamo() 102 Transliterator latinJamo = Transliterator.getInstance("Latin-Jamo"); in TestRoundTrip() 103 Transliterator jamoLatin = latinJamo.getInverse(); in TestRoundTrip() 104 Transliterator jamoHangul = Transliterator.getInstance("NFC"); in TestRoundTrip() 105 Transliterator hangulJamo = Transliterator.getInstance("NFD"); in TestRoundTrip() 139 Transliterator t = null; in TestPiecemeal() 141 t = Transliterator.getInstance("NFD"); // was Hangul-Jamo in TestPiecemeal() 144 t = Transliterator.getInstance("NFC"); // was Jamo-Hangul in TestPiecemeal() [all …]
|
D | CompoundTransliteratorTest.java | 16 import android.icu.text.Transliterator; 31 Transliterator.getInstance(names[0]); in TestConstruction() 32 Transliterator.getInstance(names[1]); in TestConstruction() 33 Transliterator.getInstance(names[2]); in TestConstruction() 34 Transliterator.getInstance(names[3]); in TestConstruction() 50 Transliterator.getInstance(IDs[i]); in TestConstruction() 57 Transliterator.getInstance(IDs[i], Transliterator.FORWARD); in TestConstruction() 64 Transliterator.getInstance(IDs[i], Transliterator.REVERSE); in TestConstruction() 98 Transliterator ct1=null; in TestGetTransliterator() 101 ct1 = Transliterator.getInstance(ID); in TestGetTransliterator() [all …]
|
D | AnyScriptTest.java | 16 import android.icu.text.Transliterator; 29 …Transliterator t = Transliterator.createFromRules("foo", "::[bc]; a{b}d > B;", Transliterator.FORW… in TestContext() 74 Transliterator t; in TestScripts() 76 t = Transliterator.getInstance("any-" + scriptName); in TestScripts() 88 t = Transliterator.getInstance("any-" + shortScriptName); in TestScripts() 102 Transliterator widen = Transliterator.getInstance("halfwidth-fullwidth"); in TestForWidth() 103 Transliterator narrow = Transliterator.getInstance("fullwidth-halfwidth"); in TestForWidth() 119 Transliterator latin = Transliterator.getInstance("any-Latn"); in TestForWidth() 139 Transliterator latin = Transliterator.getInstance("Any-Latn"); in TestCommonDigits() 140 Transliterator arabic = Transliterator.getInstance("Any-Arabic"); in TestCommonDigits()
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
D | TransliteratorTest.java | 36 import com.ibm.icu.text.Transliterator; 97 Transliterator lh = Transliterator.getInstance("Latin-Hangul"); in TestHangul() 98 Transliterator hl = lh.getInverse(); in TestHangul() 133 Transliterator hanLatin = Transliterator.getInstance("Han-Latin"); in TestChinese() 143 for (Enumeration e = Transliterator.getAvailableIDs(); e.hasMoreElements(); ) { in TestRegistry() 150 Transliterator foo = Transliterator.createFromRules(id, rules, Transliterator.FORWARD); in checkRegistry() 151 Transliterator.registerInstance(foo); in checkRegistry() 156 Transliterator fie = Transliterator.getInstance(id); in checkRegistry() 159 Transliterator foe = Transliterator.getInstance(id); in checkRegistry() 171 for (Enumeration e = Transliterator.getAvailableIDs(); e.hasMoreElements(); ) { in TestInstantiation() [all …]
|
D | ErrorTest.java | 14 import com.ibm.icu.text.Transliterator; 34 Transliterator.Position pos = new Transliterator.Position(); in TestTransliteratorErrors() 36 Transliterator t = in TestTransliteratorErrors() 37 Transliterator.getInstance(trans, Transliterator.FORWARD); in TestTransliteratorErrors() 113 Transliterator t1 = null; in TestTransliteratorErrors() 115 t1 = Transliterator.getInstance(bogusID, Transliterator.FORWARD); in TestTransliteratorErrors() 123 Transliterator t2 = in TestTransliteratorErrors() 124 Transliterator.createFromRules( in TestTransliteratorErrors() 127 Transliterator.FORWARD); in TestTransliteratorErrors() 129 Transliterator t3 = t2.getInverse(); in TestTransliteratorErrors() [all …]
|
D | JamoTest.java | 18 import com.ibm.icu.text.Transliterator; 27 Transliterator latinJamo = Transliterator.getInstance("Latin-Jamo"); in TestJamo() 28 Transliterator jamoLatin = latinJamo.getInverse(); in TestJamo() 101 Transliterator latinJamo = Transliterator.getInstance("Latin-Jamo"); in TestRoundTrip() 102 Transliterator jamoLatin = latinJamo.getInverse(); in TestRoundTrip() 103 Transliterator jamoHangul = Transliterator.getInstance("NFC"); in TestRoundTrip() 104 Transliterator hangulJamo = Transliterator.getInstance("NFD"); in TestRoundTrip() 138 Transliterator t = null; in TestPiecemeal() 140 t = Transliterator.getInstance("NFD"); // was Hangul-Jamo in TestPiecemeal() 143 t = Transliterator.getInstance("NFC"); // was Jamo-Hangul in TestPiecemeal() [all …]
|
D | CompoundTransliteratorTest.java | 15 import com.ibm.icu.text.Transliterator; 30 Transliterator.getInstance(names[0]); in TestConstruction() 31 Transliterator.getInstance(names[1]); in TestConstruction() 32 Transliterator.getInstance(names[2]); in TestConstruction() 33 Transliterator.getInstance(names[3]); in TestConstruction() 49 Transliterator.getInstance(IDs[i]); in TestConstruction() 56 Transliterator.getInstance(IDs[i], Transliterator.FORWARD); in TestConstruction() 63 Transliterator.getInstance(IDs[i], Transliterator.REVERSE); in TestConstruction() 97 Transliterator ct1=null; in TestGetTransliterator() 100 ct1 = Transliterator.getInstance(ID); in TestGetTransliterator() [all …]
|
D | AnyScriptTest.java | 15 import com.ibm.icu.text.Transliterator; 28 …Transliterator t = Transliterator.createFromRules("foo", "::[bc]; a{b}d > B;", Transliterator.FORW… in TestContext() 73 Transliterator t; in TestScripts() 75 t = Transliterator.getInstance("any-" + scriptName); in TestScripts() 87 t = Transliterator.getInstance("any-" + shortScriptName); in TestScripts() 101 Transliterator widen = Transliterator.getInstance("halfwidth-fullwidth"); in TestForWidth() 102 Transliterator narrow = Transliterator.getInstance("fullwidth-halfwidth"); in TestForWidth() 118 Transliterator latin = Transliterator.getInstance("any-Latn"); in TestForWidth() 138 Transliterator latin = Transliterator.getInstance("Any-Latn"); in TestCommonDigits() 139 Transliterator arabic = Transliterator.getInstance("Any-Arabic"); in TestCommonDigits()
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | EscapeTransliterator.java | 39 class EscapeTransliterator extends Transliterator { 85 Transliterator.registerFactory("Any-Hex/Unicode", new Transliterator.Factory() { in register() 87 public Transliterator getInstance(String ID) { in register() 94 Transliterator.registerFactory("Any-Hex/Java", new Transliterator.Factory() { in register() 96 public Transliterator getInstance(String ID) { in register() 103 Transliterator.registerFactory("Any-Hex/C", new Transliterator.Factory() { in register() 105 public Transliterator getInstance(String ID) { in register() 113 Transliterator.registerFactory("Any-Hex/XML", new Transliterator.Factory() { in register() 115 public Transliterator getInstance(String ID) { in register() 122 Transliterator.registerFactory("Any-Hex/XML10", new Transliterator.Factory() { in register() [all …]
|
D | NormalizationTransliterator.java | 24 final class NormalizationTransliterator extends Transliterator { 31 Transliterator.registerFactory("Any-NFC", new Transliterator.Factory() { in register() 33 public Transliterator getInstance(String ID) { in register() 37 Transliterator.registerFactory("Any-NFD", new Transliterator.Factory() { in register() 39 public Transliterator getInstance(String ID) { in register() 43 Transliterator.registerFactory("Any-NFKC", new Transliterator.Factory() { in register() 45 public Transliterator getInstance(String ID) { in register() 49 Transliterator.registerFactory("Any-NFKD", new Transliterator.Factory() { in register() 51 public Transliterator getInstance(String ID) { in register() 55 Transliterator.registerFactory("Any-FCD", new Transliterator.Factory() { in register() [all …]
|
D | UnescapeTransliterator.java | 27 class UnescapeTransliterator extends Transliterator { 54 Transliterator.registerFactory("Hex-Any/Unicode", new Transliterator.Factory() { in register() 56 public Transliterator getInstance(String ID) { in register() 65 Transliterator.registerFactory("Hex-Any/Java", new Transliterator.Factory() { in register() 67 public Transliterator getInstance(String ID) { in register() 76 Transliterator.registerFactory("Hex-Any/C", new Transliterator.Factory() { in register() 78 public Transliterator getInstance(String ID) { in register() 88 Transliterator.registerFactory("Hex-Any/XML", new Transliterator.Factory() { in register() 90 public Transliterator getInstance(String ID) { in register() 99 Transliterator.registerFactory("Hex-Any/XML10", new Transliterator.Factory() { in register() [all …]
|
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/ |
D | EscapeTransliterator.java | 38 class EscapeTransliterator extends Transliterator { 84 Transliterator.registerFactory("Any-Hex/Unicode", new Transliterator.Factory() { in register() 86 public Transliterator getInstance(String ID) { in register() 93 Transliterator.registerFactory("Any-Hex/Java", new Transliterator.Factory() { in register() 95 public Transliterator getInstance(String ID) { in register() 102 Transliterator.registerFactory("Any-Hex/C", new Transliterator.Factory() { in register() 104 public Transliterator getInstance(String ID) { in register() 112 Transliterator.registerFactory("Any-Hex/XML", new Transliterator.Factory() { in register() 114 public Transliterator getInstance(String ID) { in register() 121 Transliterator.registerFactory("Any-Hex/XML10", new Transliterator.Factory() { in register() [all …]
|
D | NormalizationTransliterator.java | 23 final class NormalizationTransliterator extends Transliterator { 30 Transliterator.registerFactory("Any-NFC", new Transliterator.Factory() { in register() 32 public Transliterator getInstance(String ID) { in register() 36 Transliterator.registerFactory("Any-NFD", new Transliterator.Factory() { in register() 38 public Transliterator getInstance(String ID) { in register() 42 Transliterator.registerFactory("Any-NFKC", new Transliterator.Factory() { in register() 44 public Transliterator getInstance(String ID) { in register() 48 Transliterator.registerFactory("Any-NFKD", new Transliterator.Factory() { in register() 50 public Transliterator getInstance(String ID) { in register() 54 Transliterator.registerFactory("Any-FCD", new Transliterator.Factory() { in register() [all …]
|
D | UnescapeTransliterator.java | 26 class UnescapeTransliterator extends Transliterator { 53 Transliterator.registerFactory("Hex-Any/Unicode", new Transliterator.Factory() { in register() 55 public Transliterator getInstance(String ID) { in register() 64 Transliterator.registerFactory("Hex-Any/Java", new Transliterator.Factory() { in register() 66 public Transliterator getInstance(String ID) { in register() 75 Transliterator.registerFactory("Hex-Any/C", new Transliterator.Factory() { in register() 77 public Transliterator getInstance(String ID) { in register() 87 Transliterator.registerFactory("Hex-Any/XML", new Transliterator.Factory() { in register() 89 public Transliterator getInstance(String ID) { in register() 98 Transliterator.registerFactory("Hex-Any/XML10", new Transliterator.Factory() { in register() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | transtst.cpp | 212 StringEnumeration* avail = Transliterator::getAvailableIDs(ec); in TestInstantiation() 215 int32_t n = Transliterator::countAvailableIDs(); in TestInstantiation() 226 UnicodeString id2 = Transliterator::getAvailableID(i); in TestInstantiation() 239 Transliterator* t = Transliterator::createInstance(id, in TestInstantiation() 242 Transliterator::getDisplayName(id, name); in TestInstantiation() 258 int32_t nn = Transliterator::countAvailableIDs(); in TestInstantiation() 269 Transliterator *u = Transliterator::createFromRules("x", in TestInstantiation() 293 Transliterator* t = Transliterator::createInstance(id, UTRANS_FORWARD, parseError, status); in TestInstantiation() 338 Transliterator *t = Transliterator::createFromRules( in TestSimpleRules() 418 Transliterator *fwd = Transliterator::createFromRules("<ID>", RULES, in TestRuleBasedInverse() [all …]
|
D | transapi.cpp | 76 Transliterator* t= Transliterator::createInstance(trans, UTRANS_FORWARD, parseError, status); in TestgetID() 87 for (i=0; i<Transliterator::countAvailableIDs(); i++){ in TestgetID() 89 ID = (UnicodeString) Transliterator::getAvailableID(i); in TestgetID() 93 t = Transliterator::createInstance(ID, UTRANS_FORWARD, parseError, status); in TestgetID() 102 ID=(UnicodeString)Transliterator::getAvailableID(i); in TestgetID() 103 if(ID != (UnicodeString)Transliterator::getAvailableID(0)){ in TestgetID() 107 …Transliterator* t1=Transliterator::createInstance("Latin-Devanagari", UTRANS_FORWARD, parseError, … in TestgetID() 108 …Transliterator* t2=Transliterator::createInstance("Latin-Greek", UTRANS_FORWARD, parseError, statu… in TestgetID() 113 Transliterator* t3=t1->clone(); in TestgetID() 114 Transliterator* t4=t2->clone(); in TestgetID() [all …]
|
D | jamotest.cpp | 31 NAME_JAMO = Transliterator::createFromRules("Name-Jamo", in JamoTest() 40 JAMO_NAME = Transliterator::createFromRules("Jamo-Name", in JamoTest() 70 …Transliterator* latinJamo = Transliterator::createInstance("Latin-Jamo", UTRANS_FORWARD, parseErro… in TestJamo() 77 Transliterator* jamoLatin = latinJamo->createInverse(status); in TestJamo() 162 Transliterator *t = NULL; in TestPiecemeal() 165 t = Transliterator::createInstance("NFD", UTRANS_FORWARD, status); // was Hangul-Jamo in TestPiecemeal() 173 t = Transliterator::createInstance("NFC", UTRANS_FORWARD, status); // was Jamo-Hangul in TestPiecemeal() 181 t = Transliterator::createInstance("Latin-Jamo", UTRANS_FORWARD, status); in TestPiecemeal() 189 t = Transliterator::createInstance("Jamo-Latin", UTRANS_FORWARD, status); in TestPiecemeal() 197 t = Transliterator::createInstance("Hangul-Latin", UTRANS_FORWARD, status); in TestPiecemeal() [all …]
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/translit/ |
D | WriteIndicCharts.java | 17 import com.ibm.icu.text.Transliterator; 72 Transliterator t1 = Transliterator.getInstance("InterIndic-Bengali"); in writeIICharts() 73 Transliterator t2 = Transliterator.getInstance("InterIndic-Gurmukhi"); in writeIICharts() 74 Transliterator t3 = Transliterator.getInstance("InterIndic-Gujarati"); in writeIICharts() 75 Transliterator t4 = Transliterator.getInstance("InterIndic-Oriya"); in writeIICharts() 76 Transliterator t5 = Transliterator.getInstance("InterIndic-Tamil"); in writeIICharts() 77 Transliterator t6 = Transliterator.getInstance("InterIndic-Telugu"); in writeIICharts() 78 Transliterator t7 = Transliterator.getInstance("InterIndic-Kannada"); in writeIICharts() 79 Transliterator t8 = Transliterator.getInstance("InterIndic-Malayalam"); in writeIICharts() 80 Transliterator t9 = Transliterator.getInstance("InterIndic-Devanagari"); in writeIICharts() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | unesctrn.cpp | 98 static Transliterator* _createUnicode(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createUnicode() 101 static Transliterator* _createJava(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createJava() 104 static Transliterator* _createC(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createC() 107 static Transliterator* _createXML(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createXML() 110 static Transliterator* _createXML10(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createXML10() 113 static Transliterator* _createPerl(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createPerl() 116 static Transliterator* _createAny(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createAny() 127 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/Unicode"), _createUnicode, t); in registerIDs() 129 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/Java"), _createJava, t); in registerIDs() 131 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/C"), _createC, t); in registerIDs() [all …]
|
D | translit.cpp | 107 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(Transliterator) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument 129 Transliterator::Transliterator(const UnicodeString& theID, in Transliterator() function in Transliterator 142 Transliterator::~Transliterator() { in ~Transliterator() 151 Transliterator::Transliterator(const Transliterator& other) : in Transliterator() function in Transliterator 165 Transliterator* Transliterator::clone() const { in clone() 172 Transliterator& Transliterator::operator=(const Transliterator& other) { in operator =() 191 int32_t Transliterator::transliterate(Replaceable& text, in transliterate() 212 void Transliterator::transliterate(Replaceable& text) const { in transliterate() 280 void Transliterator::transliterate(Replaceable& text, in transliterate() 302 void Transliterator::transliterate(Replaceable& text, in transliterate() [all …]
|
D | esctrn.cpp | 37 static Transliterator* _createEscUnicode(const UnicodeString& ID, Transliterator::Token /*context*/… in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 41 static Transliterator* _createEscJava(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createEscJava() 45 static Transliterator* _createEscC(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createEscC() 50 static Transliterator* _createEscXML(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createEscXML() 54 static Transliterator* _createEscXML10(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createEscXML10() 58 static Transliterator* _createEscPerl(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createEscPerl() 70 … Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/Unicode"), _createEscUnicode, t); in registerIDs() 72 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/Java"), _createEscJava, t); in registerIDs() 74 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/C"), _createEscC, t); in registerIDs() 76 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/XML"), _createEscXML, t); in registerIDs() [all …]
|
D | nortrans.cpp | 26 static inline Transliterator::Token cstrToken(const char *s) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 27 return Transliterator::pointerToken((void *)s); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 35 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-NFC"), in registerIDs() 37 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-NFKC"), in registerIDs() 39 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-NFD"), in registerIDs() 41 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-NFKD"), in registerIDs() 43 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-FCD"), in registerIDs() 45 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-FCC"), in registerIDs() 47 Transliterator::_registerSpecialInverse(UNICODE_STRING_SIMPLE("NFC"), in registerIDs() 49 Transliterator::_registerSpecialInverse(UNICODE_STRING_SIMPLE("NFKC"), in registerIDs() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | translit.h | 243 class U_I18N_API Transliterator : public UObject { 313 typedef Transliterator* (U_EXPORT2 *Factory)(const UnicodeString& ID, Token context); 326 Transliterator(const UnicodeString& ID, UnicodeFilter* adoptedFilter); 332 Transliterator(const Transliterator&); 338 Transliterator& operator=(const Transliterator&); 351 static Transliterator* createBasicInstance(const UnicodeString& id, 364 virtual ~Transliterator(); 380 virtual Transliterator* clone() const; 810 Transliterator* createInverse(UErrorCode& status) const; 828 static Transliterator* U_EXPORT2 createInstance(const UnicodeString& ID, [all …]
|