Home
last modified time | relevance | path

Searched refs:Transliterator (Results 1 – 25 of 169) sorted by relevance

1234567

/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/
DTransliteratorTest.java38 import android.icu.text.Transliterator;
102 Transliterator lh = Transliterator.getInstance("Latin-Hangul"); in TestHangul()
103 Transliterator hl = lh.getInverse(); in TestHangul()
138 Transliterator hanLatin = Transliterator.getInstance("Han-Latin"); in TestChinese()
148 for (Enumeration e = Transliterator.getAvailableIDs(); e.hasMoreElements(); ) { in TestRegistry()
153 Transliterator.unregister("foo3"); in TestRegistry()
154 Transliterator.unregister("foo2"); in TestRegistry()
155 Transliterator.unregister("foo1"); in TestRegistry()
159 Transliterator foo = Transliterator.createFromRules(id, rules, Transliterator.FORWARD); in checkRegistry()
160 Transliterator.registerInstance(foo); in checkRegistry()
[all …]
DErrorTest.java18 import android.icu.text.Transliterator;
41 Transliterator.Position pos = new Transliterator.Position(); in TestTransliteratorErrors()
43 Transliterator t = in TestTransliteratorErrors()
44 Transliterator.getInstance(trans, Transliterator.FORWARD); in TestTransliteratorErrors()
120 Transliterator t1 = null; in TestTransliteratorErrors()
122 t1 = Transliterator.getInstance(bogusID, Transliterator.FORWARD); in TestTransliteratorErrors()
130 Transliterator t2 = in TestTransliteratorErrors()
131 Transliterator.createFromRules( in TestTransliteratorErrors()
134 Transliterator.FORWARD); in TestTransliteratorErrors()
136 Transliterator t3 = t2.getInverse(); in TestTransliteratorErrors()
[all …]
DJamoTest.java21 import android.icu.text.Transliterator;
33 Transliterator latinJamo = Transliterator.getInstance("Latin-Jamo"); in TestJamo()
34 Transliterator jamoLatin = latinJamo.getInverse(); in TestJamo()
107 Transliterator latinJamo = Transliterator.getInstance("Latin-Jamo"); in TestRoundTrip()
108 Transliterator jamoLatin = latinJamo.getInverse(); in TestRoundTrip()
109 Transliterator jamoHangul = Transliterator.getInstance("NFC"); in TestRoundTrip()
110 Transliterator hangulJamo = Transliterator.getInstance("NFD"); in TestRoundTrip()
144 Transliterator t = null; in TestPiecemeal()
146 t = Transliterator.getInstance("NFD"); // was Hangul-Jamo in TestPiecemeal()
149 t = Transliterator.getInstance("NFC"); // was Jamo-Hangul in TestPiecemeal()
[all …]
DCompoundTransliteratorTest.java19 import android.icu.text.Transliterator;
37 Transliterator.getInstance(names[0]); in TestConstruction()
38 Transliterator.getInstance(names[1]); in TestConstruction()
39 Transliterator.getInstance(names[2]); in TestConstruction()
40 Transliterator.getInstance(names[3]); in TestConstruction()
56 Transliterator.getInstance(IDs[i]); in TestConstruction()
63 Transliterator.getInstance(IDs[i], Transliterator.FORWARD); in TestConstruction()
70 Transliterator.getInstance(IDs[i], Transliterator.REVERSE); in TestConstruction()
104 Transliterator ct1=null; in TestGetTransliterator()
107 ct1 = Transliterator.getInstance(ID); in TestGetTransliterator()
[all …]
DAnyScriptTest.java18 import android.icu.text.Transliterator;
34Transliterator t = Transliterator.createFromRules("foo", "::[bc]; a{b}d > B;", Transliterator.FORW… in TestContext()
79 Transliterator t; in TestScripts()
81 t = Transliterator.getInstance("any-" + scriptName); in TestScripts()
93 t = Transliterator.getInstance("any-" + shortScriptName); in TestScripts()
107 Transliterator widen = Transliterator.getInstance("halfwidth-fullwidth"); in TestForWidth()
108 Transliterator narrow = Transliterator.getInstance("fullwidth-halfwidth"); in TestForWidth()
124 Transliterator latin = Transliterator.getInstance("any-Latn"); in TestForWidth()
144 Transliterator latin = Transliterator.getInstance("Any-Latn"); in TestCommonDigits()
145 Transliterator arabic = Transliterator.getInstance("Any-Arabic"); in TestCommonDigits()
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DTransliteratorTest.java37 import com.ibm.icu.text.Transliterator;
99 Transliterator lh = Transliterator.getInstance("Latin-Hangul"); in TestHangul()
100 Transliterator hl = lh.getInverse(); in TestHangul()
135 Transliterator hanLatin = Transliterator.getInstance("Han-Latin"); in TestChinese()
145 for (Enumeration e = Transliterator.getAvailableIDs(); e.hasMoreElements(); ) { in TestRegistry()
150 Transliterator.unregister("foo3"); in TestRegistry()
151 Transliterator.unregister("foo2"); in TestRegistry()
152 Transliterator.unregister("foo1"); in TestRegistry()
156 Transliterator foo = Transliterator.createFromRules(id, rules, Transliterator.FORWARD); in checkRegistry()
157 Transliterator.registerInstance(foo); in checkRegistry()
[all …]
DErrorTest.java17 import com.ibm.icu.text.Transliterator;
38 Transliterator.Position pos = new Transliterator.Position(); in TestTransliteratorErrors()
40 Transliterator t = in TestTransliteratorErrors()
41 Transliterator.getInstance(trans, Transliterator.FORWARD); in TestTransliteratorErrors()
117 Transliterator t1 = null; in TestTransliteratorErrors()
119 t1 = Transliterator.getInstance(bogusID, Transliterator.FORWARD); in TestTransliteratorErrors()
127 Transliterator t2 = in TestTransliteratorErrors()
128 Transliterator.createFromRules( in TestTransliteratorErrors()
131 Transliterator.FORWARD); in TestTransliteratorErrors()
133 Transliterator t3 = t2.getInverse(); in TestTransliteratorErrors()
[all …]
DJamoTest.java20 import com.ibm.icu.text.Transliterator;
30 Transliterator latinJamo = Transliterator.getInstance("Latin-Jamo"); in TestJamo()
31 Transliterator jamoLatin = latinJamo.getInverse(); in TestJamo()
104 Transliterator latinJamo = Transliterator.getInstance("Latin-Jamo"); in TestRoundTrip()
105 Transliterator jamoLatin = latinJamo.getInverse(); in TestRoundTrip()
106 Transliterator jamoHangul = Transliterator.getInstance("NFC"); in TestRoundTrip()
107 Transliterator hangulJamo = Transliterator.getInstance("NFD"); in TestRoundTrip()
141 Transliterator t = null; in TestPiecemeal()
143 t = Transliterator.getInstance("NFD"); // was Hangul-Jamo in TestPiecemeal()
146 t = Transliterator.getInstance("NFC"); // was Jamo-Hangul in TestPiecemeal()
[all …]
DCompoundTransliteratorTest.java18 import com.ibm.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()
101 Transliterator ct1=null; in TestGetTransliterator()
104 ct1 = Transliterator.getInstance(ID); in TestGetTransliterator()
[all …]
/external/icu/icu4c/source/test/intltest/
Dtranstst.cpp212 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()
259 int32_t nn = Transliterator::countAvailableIDs(); in TestInstantiation()
270 Transliterator *u = Transliterator::createFromRules("x", in TestInstantiation()
294 Transliterator* t = Transliterator::createInstance(id, UTRANS_FORWARD, parseError, status); in TestInstantiation()
339 Transliterator *t = Transliterator::createFromRules( in TestSimpleRules()
419 Transliterator *fwd = Transliterator::createFromRules("<ID>", RULES, in TestRuleBasedInverse()
[all …]
Dtransapi.cpp76 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()
107Transliterator* t1=Transliterator::createInstance("Latin-Devanagari", UTRANS_FORWARD, parseError, … in TestgetID()
108Transliterator* 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 …]
Djamotest.cpp31 NAME_JAMO = Transliterator::createFromRules("Name-Jamo", in JamoTest()
40 JAMO_NAME = Transliterator::createFromRules("Jamo-Name", in JamoTest()
70Transliterator* 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 …]
Dtrnserr.cpp66 Transliterator* t= Transliterator::createInstance(trans, UTRANS_FORWARD, parseError, status); in TestTransliteratorErrors()
138 Transliterator* t1= Transliterator::createInstance(bogusID, UTRANS_FORWARD, parseError, status); in TestTransliteratorErrors()
144Transliterator* t2 = Transliterator::createFromRules(newID, newIDRules, UTRANS_FORWARD, parseError… in TestTransliteratorErrors()
146 Transliterator* t3 = t2->createInverse(status); in TestTransliteratorErrors()
155Transliterator* t4 = Transliterator::createFromRules(newID, bogusRules, UTRANS_FORWARD, parseError… in TestTransliteratorErrors()
226Transliterator *t = Transliterator::createFromRules(id, rules, UTRANS_REVERSE, parseErr, status); in TestRBTErrors()
232 Transliterator::registerInstance(t); in TestRBTErrors()
233 Transliterator::unregister(id); in TestRBTErrors()
235 Transliterator* t1= Transliterator::createInstance(id, UTRANS_REVERSE, parseErr, status); in TestRBTErrors()
264 class StubTransliterator: public Transliterator{
[all …]
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/translit/
DWriteIndicCharts.java17 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/icu4j/main/classes/translit/src/com/ibm/icu/text/
DEscapeTransliterator.java38 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 …]
DNormalizationTransliterator.java23 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 …]
DUnescapeTransliterator.java26 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/android_icu4j/src/main/java/android/icu/text/
DEscapeTransliterator.java39 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 …]
DNormalizationTransliterator.java24 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 …]
DUnescapeTransliterator.java27 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/icu4c/source/i18n/
Dtranslit.cpp107 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 …]
Dunesctrn.cpp98 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 …]
Desctrn.cpp37 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()
70Transliterator::_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 …]
Dnortrans.cpp26 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/
Dtranslit.h243 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 …]

1234567