/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/ |
D | TransliteratorTest.java | 32 import android.icu.text.Transliterator; 100 Transliterator lh = Transliterator.getInstance("Latin-Hangul"); in TestHangul() 101 Transliterator hl = lh.getInverse(); in TestHangul() 135 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() 170 for (Enumeration e = Transliterator.getAvailableIDs(); e.hasMoreElements(); ) { in TestInstantiation() [all …]
|
D | ErrorTest.java | 11 import android.icu.text.Transliterator; 37 Transliterator.Position pos = new Transliterator.Position(); in TestTransliteratorErrors() 39 Transliterator t = in TestTransliteratorErrors() 40 Transliterator.getInstance(trans, Transliterator.FORWARD); in TestTransliteratorErrors() 116 Transliterator t1 = null; in TestTransliteratorErrors() 118 t1 = Transliterator.getInstance(bogusID, Transliterator.FORWARD); in TestTransliteratorErrors() 126 Transliterator t2 = in TestTransliteratorErrors() 127 Transliterator.createFromRules( in TestTransliteratorErrors() 130 Transliterator.FORWARD); in TestTransliteratorErrors() 132 Transliterator t3 = t2.getInverse(); in TestTransliteratorErrors() [all …]
|
D | JamoTest.java | 14 import android.icu.text.Transliterator; 30 Transliterator latinJamo = Transliterator.getInstance("Latin-Jamo"); in TestJamo() 31 Transliterator jamoLatin = latinJamo.getInverse(); in TestJamo() 103 Transliterator latinJamo = Transliterator.getInstance("Latin-Jamo"); in TestRoundTrip() 104 Transliterator jamoLatin = latinJamo.getInverse(); in TestRoundTrip() 105 Transliterator jamoHangul = Transliterator.getInstance("NFC"); in TestRoundTrip() 106 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 | 12 import android.icu.text.Transliterator; 34 Transliterator.getInstance(names[0]); in TestConstruction() 35 Transliterator.getInstance(names[1]); in TestConstruction() 36 Transliterator.getInstance(names[2]); in TestConstruction() 37 Transliterator.getInstance(names[3]); in TestConstruction() 53 Transliterator.getInstance(IDs[i]); in TestConstruction() 60 Transliterator.getInstance(IDs[i], Transliterator.FORWARD); in TestConstruction() 67 Transliterator.getInstance(IDs[i], Transliterator.REVERSE); in TestConstruction() 100 Transliterator ct1=null; in TestGetTransliterator() 103 ct1 = Transliterator.getInstance(ID); in TestGetTransliterator() [all …]
|
D | AnyScriptTest.java | 12 import android.icu.text.Transliterator; 31 …Transliterator t = Transliterator.createFromRules("foo", "::[bc]; a{b}d > B;", Transliterator.FORW… in TestContext() 75 Transliterator t; in TestScripts() 77 t = Transliterator.getInstance("any-" + scriptName); in TestScripts() 89 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() 138 Transliterator latin = Transliterator.getInstance("Any-Latn"); in TestCommonDigits() 139 Transliterator arabic = Transliterator.getInstance("Any-Arabic"); in TestCommonDigits()
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
D | TransliteratorTest.java | 31 import com.ibm.icu.text.Transliterator; 96 Transliterator lh = Transliterator.getInstance("Latin-Hangul"); in TestHangul() 97 Transliterator hl = lh.getInverse(); in TestHangul() 131 Transliterator hanLatin = Transliterator.getInstance("Han-Latin"); in TestChinese() 140 for (Enumeration e = Transliterator.getAvailableIDs(); e.hasMoreElements(); ) { in TestRegistry() 147 Transliterator foo = Transliterator.createFromRules(id, rules, Transliterator.FORWARD); in checkRegistry() 148 Transliterator.registerInstance(foo); in checkRegistry() 153 Transliterator fie = Transliterator.getInstance(id); in checkRegistry() 156 Transliterator foe = Transliterator.getInstance(id); in checkRegistry() 166 for (Enumeration e = Transliterator.getAvailableIDs(); e.hasMoreElements(); ) { in TestInstantiation() [all …]
|
D | ErrorTest.java | 10 import com.ibm.icu.text.Transliterator; 33 Transliterator.Position pos = new Transliterator.Position(); in TestTransliteratorErrors() 35 Transliterator t = in TestTransliteratorErrors() 36 Transliterator.getInstance(trans, Transliterator.FORWARD); in TestTransliteratorErrors() 112 Transliterator t1 = null; in TestTransliteratorErrors() 114 t1 = Transliterator.getInstance(bogusID, Transliterator.FORWARD); in TestTransliteratorErrors() 122 Transliterator t2 = in TestTransliteratorErrors() 123 Transliterator.createFromRules( in TestTransliteratorErrors() 126 Transliterator.FORWARD); in TestTransliteratorErrors() 128 Transliterator t3 = t2.getInverse(); in TestTransliteratorErrors() [all …]
|
D | JamoTest.java | 13 import com.ibm.icu.text.Transliterator; 26 Transliterator latinJamo = Transliterator.getInstance("Latin-Jamo"); in TestJamo() 27 Transliterator jamoLatin = latinJamo.getInverse(); in TestJamo() 99 Transliterator latinJamo = Transliterator.getInstance("Latin-Jamo"); in TestRoundTrip() 100 Transliterator jamoLatin = latinJamo.getInverse(); in TestRoundTrip() 101 Transliterator jamoHangul = Transliterator.getInstance("NFC"); in TestRoundTrip() 102 Transliterator hangulJamo = Transliterator.getInstance("NFD"); in TestRoundTrip() 135 Transliterator t = null; in TestPiecemeal() 137 t = Transliterator.getInstance("NFD"); // was Hangul-Jamo in TestPiecemeal() 140 t = Transliterator.getInstance("NFC"); // was Jamo-Hangul in TestPiecemeal() [all …]
|
D | CompoundTransliteratorTest.java | 11 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() 96 Transliterator ct1=null; in TestGetTransliterator() 99 ct1 = Transliterator.getInstance(ID); in TestGetTransliterator() [all …]
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/util/ |
D | TransliteratorUtilities.java | 12 import com.ibm.icu.text.Transliterator; 21 Transliterator t; in registerTransliteratorFromFile() 30 t = Transliterator.createFromRules(id, rules, Transliterator.FORWARD); in registerTransliteratorFromFile() 31 Transliterator.unregister(id); in registerTransliteratorFromFile() 32 Transliterator.registerInstance(t); in registerTransliteratorFromFile() 40 t = Transliterator.createFromRules(rid, rules, Transliterator.REVERSE); in registerTransliteratorFromFile() 41 Transliterator.unregister(rid); in registerTransliteratorFromFile() 42 Transliterator.registerInstance(t); in registerTransliteratorFromFile() 137 public static final Transliterator toXML = Transliterator.createFromRules( 138 "any-xml", XML_RULES, Transliterator.FORWARD); [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
D | TransliteratorUtilities.java | 13 import android.icu.text.Transliterator; 22 Transliterator t; in registerTransliteratorFromFile() 31 t = Transliterator.createFromRules(id, rules, Transliterator.FORWARD); in registerTransliteratorFromFile() 32 Transliterator.unregister(id); in registerTransliteratorFromFile() 33 Transliterator.registerInstance(t); in registerTransliteratorFromFile() 41 t = Transliterator.createFromRules(rid, rules, Transliterator.REVERSE); in registerTransliteratorFromFile() 42 Transliterator.unregister(rid); in registerTransliteratorFromFile() 43 Transliterator.registerInstance(t); in registerTransliteratorFromFile() 138 public static final Transliterator toXML = Transliterator.createFromRules( 139 "any-xml", XML_RULES, Transliterator.FORWARD); [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | EscapeTransliterator.java | 37 class EscapeTransliterator extends Transliterator { 83 Transliterator.registerFactory("Any-Hex/Unicode", new Transliterator.Factory() { in register() 84 public Transliterator getInstance(String ID) { in register() 91 Transliterator.registerFactory("Any-Hex/Java", new Transliterator.Factory() { in register() 92 public Transliterator getInstance(String ID) { in register() 99 Transliterator.registerFactory("Any-Hex/C", new Transliterator.Factory() { in register() 100 public Transliterator getInstance(String ID) { in register() 108 Transliterator.registerFactory("Any-Hex/XML", new Transliterator.Factory() { in register() 109 public Transliterator getInstance(String ID) { in register() 116 Transliterator.registerFactory("Any-Hex/XML10", new Transliterator.Factory() { in register() [all …]
|
D | NormalizationTransliterator.java | 22 final class NormalizationTransliterator extends Transliterator { 29 Transliterator.registerFactory("Any-NFC", new Transliterator.Factory() { in register() 30 public Transliterator getInstance(String ID) { in register() 34 Transliterator.registerFactory("Any-NFD", new Transliterator.Factory() { in register() 35 public Transliterator getInstance(String ID) { in register() 39 Transliterator.registerFactory("Any-NFKC", new Transliterator.Factory() { in register() 40 public Transliterator getInstance(String ID) { in register() 44 Transliterator.registerFactory("Any-NFKD", new Transliterator.Factory() { in register() 45 public Transliterator getInstance(String ID) { in register() 49 Transliterator.registerFactory("Any-FCD", new Transliterator.Factory() { in register() [all …]
|
D | UnescapeTransliterator.java | 25 class UnescapeTransliterator extends Transliterator { 52 Transliterator.registerFactory("Hex-Any/Unicode", new Transliterator.Factory() { in register() 53 public Transliterator getInstance(String ID) { in register() 62 Transliterator.registerFactory("Hex-Any/Java", new Transliterator.Factory() { in register() 63 public Transliterator getInstance(String ID) { in register() 72 Transliterator.registerFactory("Hex-Any/C", new Transliterator.Factory() { in register() 73 public Transliterator getInstance(String ID) { in register() 83 Transliterator.registerFactory("Hex-Any/XML", new Transliterator.Factory() { in register() 84 public Transliterator getInstance(String ID) { in register() 93 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 | 36 class EscapeTransliterator extends Transliterator { 82 Transliterator.registerFactory("Any-Hex/Unicode", new Transliterator.Factory() { in register() 83 public Transliterator getInstance(String ID) { in register() 90 Transliterator.registerFactory("Any-Hex/Java", new Transliterator.Factory() { in register() 91 public Transliterator getInstance(String ID) { in register() 98 Transliterator.registerFactory("Any-Hex/C", new Transliterator.Factory() { in register() 99 public Transliterator getInstance(String ID) { in register() 107 Transliterator.registerFactory("Any-Hex/XML", new Transliterator.Factory() { in register() 108 public Transliterator getInstance(String ID) { in register() 115 Transliterator.registerFactory("Any-Hex/XML10", new Transliterator.Factory() { in register() [all …]
|
D | NormalizationTransliterator.java | 21 final class NormalizationTransliterator extends Transliterator { 28 Transliterator.registerFactory("Any-NFC", new Transliterator.Factory() { in register() 29 public Transliterator getInstance(String ID) { in register() 33 Transliterator.registerFactory("Any-NFD", new Transliterator.Factory() { in register() 34 public Transliterator getInstance(String ID) { in register() 38 Transliterator.registerFactory("Any-NFKC", new Transliterator.Factory() { in register() 39 public Transliterator getInstance(String ID) { in register() 43 Transliterator.registerFactory("Any-NFKD", new Transliterator.Factory() { in register() 44 public Transliterator getInstance(String ID) { in register() 48 Transliterator.registerFactory("Any-FCD", new Transliterator.Factory() { in register() [all …]
|
D | UnescapeTransliterator.java | 24 class UnescapeTransliterator extends Transliterator { 51 Transliterator.registerFactory("Hex-Any/Unicode", new Transliterator.Factory() { in register() 52 public Transliterator getInstance(String ID) { in register() 61 Transliterator.registerFactory("Hex-Any/Java", new Transliterator.Factory() { in register() 62 public Transliterator getInstance(String ID) { in register() 71 Transliterator.registerFactory("Hex-Any/C", new Transliterator.Factory() { in register() 72 public Transliterator getInstance(String ID) { in register() 82 Transliterator.registerFactory("Hex-Any/XML", new Transliterator.Factory() { in register() 83 public Transliterator getInstance(String ID) { in register() 92 Transliterator.registerFactory("Hex-Any/XML10", new Transliterator.Factory() { in register() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | transtst.cpp | 210 StringEnumeration* avail = Transliterator::getAvailableIDs(ec); in TestInstantiation() 213 int32_t n = Transliterator::countAvailableIDs(); in TestInstantiation() 224 UnicodeString id2 = Transliterator::getAvailableID(i); in TestInstantiation() 237 Transliterator* t = Transliterator::createInstance(id, in TestInstantiation() 240 Transliterator::getDisplayName(id, name); in TestInstantiation() 256 int32_t nn = Transliterator::countAvailableIDs(); in TestInstantiation() 267 Transliterator *u = Transliterator::createFromRules("x", in TestInstantiation() 291 Transliterator* t = Transliterator::createInstance(id, UTRANS_FORWARD, parseError, status); in TestInstantiation() 336 Transliterator *t = Transliterator::createFromRules( in TestSimpleRules() 416 Transliterator *fwd = Transliterator::createFromRules("<ID>", RULES, in TestRuleBasedInverse() [all …]
|
D | transapi.cpp | 73 Transliterator* t= Transliterator::createInstance(trans, UTRANS_FORWARD, parseError, status); in TestgetID() 84 for (i=0; i<Transliterator::countAvailableIDs(); i++){ in TestgetID() 86 ID = (UnicodeString) Transliterator::getAvailableID(i); in TestgetID() 90 t = Transliterator::createInstance(ID, UTRANS_FORWARD, parseError, status); in TestgetID() 99 ID=(UnicodeString)Transliterator::getAvailableID(i); in TestgetID() 100 if(ID != (UnicodeString)Transliterator::getAvailableID(0)){ in TestgetID() 104 …Transliterator* t1=Transliterator::createInstance("Latin-Devanagari", UTRANS_FORWARD, parseError, … in TestgetID() 105 …Transliterator* t2=Transliterator::createInstance("Latin-Greek", UTRANS_FORWARD, parseError, statu… in TestgetID() 110 Transliterator* t3=t1->clone(); in TestgetID() 111 Transliterator* t4=t2->clone(); in TestgetID() [all …]
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/translit/ |
D | WriteIndicCharts.java | 15 import com.ibm.icu.text.Transliterator; 70 Transliterator t1 = Transliterator.getInstance("InterIndic-Bengali"); in writeIICharts() 71 Transliterator t2 = Transliterator.getInstance("InterIndic-Gurmukhi"); in writeIICharts() 72 Transliterator t3 = Transliterator.getInstance("InterIndic-Gujarati"); in writeIICharts() 73 Transliterator t4 = Transliterator.getInstance("InterIndic-Oriya"); in writeIICharts() 74 Transliterator t5 = Transliterator.getInstance("InterIndic-Tamil"); in writeIICharts() 75 Transliterator t6 = Transliterator.getInstance("InterIndic-Telugu"); in writeIICharts() 76 Transliterator t7 = Transliterator.getInstance("InterIndic-Kannada"); in writeIICharts() 77 Transliterator t8 = Transliterator.getInstance("InterIndic-Malayalam"); in writeIICharts() 78 Transliterator t9 = Transliterator.getInstance("InterIndic-Devanagari"); in writeIICharts() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | unesctrn.cpp | 96 static Transliterator* _createUnicode(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createUnicode() 99 static Transliterator* _createJava(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createJava() 102 static Transliterator* _createC(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createC() 105 static Transliterator* _createXML(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createXML() 108 static Transliterator* _createXML10(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createXML10() 111 static Transliterator* _createPerl(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createPerl() 114 static Transliterator* _createAny(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createAny() 125 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/Unicode"), _createUnicode, t); in registerIDs() 127 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/Java"), _createJava, t); in registerIDs() 129 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/C"), _createC, t); in registerIDs() [all …]
|
D | translit.cpp | 105 UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION(Transliterator) in UOBJECT_DEFINE_ABSTRACT_RTTI_IMPLEMENTATION() argument 127 Transliterator::Transliterator(const UnicodeString& theID, in Transliterator() function in Transliterator 140 Transliterator::~Transliterator() { in ~Transliterator() 149 Transliterator::Transliterator(const Transliterator& other) : in Transliterator() function in Transliterator 163 Transliterator* Transliterator::clone() const { in clone() 170 Transliterator& Transliterator::operator=(const Transliterator& other) { in operator =() 189 int32_t Transliterator::transliterate(Replaceable& text, in transliterate() 210 void Transliterator::transliterate(Replaceable& text) const { in transliterate() 278 void Transliterator::transliterate(Replaceable& text, in transliterate() 300 void Transliterator::transliterate(Replaceable& text, in transliterate() [all …]
|
D | esctrn.cpp | 35 static Transliterator* _createEscUnicode(const UnicodeString& ID, Transliterator::Token /*context*/… in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 39 static Transliterator* _createEscJava(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createEscJava() 43 static Transliterator* _createEscC(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createEscC() 48 static Transliterator* _createEscXML(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createEscXML() 52 static Transliterator* _createEscXML10(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createEscXML10() 56 static Transliterator* _createEscPerl(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createEscPerl() 68 … Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/Unicode"), _createEscUnicode, t); in registerIDs() 70 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/Java"), _createEscJava, t); in registerIDs() 72 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/C"), _createEscC, t); in registerIDs() 74 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-Hex/XML"), _createEscXML, t); in registerIDs() [all …]
|
D | nortrans.cpp | 24 static inline Transliterator::Token cstrToken(const char *s) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 25 return Transliterator::pointerToken((void *)s); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 33 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-NFC"), in registerIDs() 35 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-NFKC"), in registerIDs() 37 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-NFD"), in registerIDs() 39 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-NFKD"), in registerIDs() 41 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-FCD"), in registerIDs() 43 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-FCC"), in registerIDs() 45 Transliterator::_registerSpecialInverse(UNICODE_STRING_SIMPLE("NFC"), in registerIDs() 47 Transliterator::_registerSpecialInverse(UNICODE_STRING_SIMPLE("NFKC"), in registerIDs() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | translit.h | 241 class U_I18N_API Transliterator : public UObject { 311 typedef Transliterator* (U_EXPORT2 *Factory)(const UnicodeString& ID, Token context); 324 Transliterator(const UnicodeString& ID, UnicodeFilter* adoptedFilter); 330 Transliterator(const Transliterator&); 336 Transliterator& operator=(const Transliterator&); 349 static Transliterator* createBasicInstance(const UnicodeString& id, 362 virtual ~Transliterator(); 378 virtual Transliterator* clone() const; 808 Transliterator* createInverse(UErrorCode& status) const; 826 static Transliterator* U_EXPORT2 createInstance(const UnicodeString& ID, [all …]
|