Home
last modified time | relevance | path

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

12345

/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/
DTransliteratorTest.java31 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 …]
DErrorTest.java10 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 …]
DJamoTest.java13 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 …]
DCompoundTransliteratorTest.java11 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 …]
DAnyScriptTest.java11 import com.ibm.icu.text.Transliterator;
27Transliterator t = Transliterator.createFromRules("foo", "::[bc]; a{b}d > B;", Transliterator.FORW… in TestContext()
71 Transliterator t; in TestScripts()
73 t = Transliterator.getInstance("any-" + scriptName); in TestScripts()
85 t = Transliterator.getInstance("any-" + shortScriptName); in TestScripts()
98 Transliterator widen = Transliterator.getInstance("halfwidth-fullwidth"); in TestForWidth()
99 Transliterator narrow = Transliterator.getInstance("fullwidth-halfwidth"); in TestForWidth()
115 Transliterator latin = Transliterator.getInstance("any-Latn"); in TestForWidth()
134 Transliterator latin = Transliterator.getInstance("Any-Latn"); in TestCommonDigits()
135 Transliterator arabic = Transliterator.getInstance("Any-Arabic"); in TestCommonDigits()
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/util/
DTransliteratorUtilities.java12 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/icu4j/main/classes/translit/src/com/ibm/icu/text/
DEscapeTransliterator.java36 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 …]
DNormalizationTransliterator.java21 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 …]
DUnescapeTransliterator.java24 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 …]
DAnyTransliterator.java42 class AnyTransliterator extends Transliterator {
56 private ConcurrentHashMap<Integer, Transliterator> cache;
71 private Transliterator widthFix = Transliterator.getInstance("[[:dt=Nar:][:dt=Wide:]] nfkd");
90 Transliterator t = getTransliterator(it.scriptCode); in handleTransliterate()
138 cache = new ConcurrentHashMap<Integer, Transliterator>(); in AnyTransliterator()
156 … int targetScript2, Transliterator widthFix2, ConcurrentHashMap<Integer, Transliterator> cache2) { in AnyTransliterator()
171 private Transliterator getTransliterator(int source) { in getTransliterator()
181 Transliterator t = cache.get(key); in getTransliterator()
187 t = Transliterator.getInstance(id, FORWARD); in getTransliterator()
194 t = Transliterator.getInstance(id, FORWARD); in getTransliterator()
[all …]
/external/icu/icu4c/source/test/intltest/
Dtranstst.cpp210 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 …]
Dtransapi.cpp73 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()
104Transliterator* t1=Transliterator::createInstance("Latin-Devanagari", UTRANS_FORWARD, parseError, … in TestgetID()
105Transliterator* 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 …]
Djamotest.cpp28 NAME_JAMO = Transliterator::createFromRules("Name-Jamo", in JamoTest()
37 JAMO_NAME = Transliterator::createFromRules("Jamo-Name", in JamoTest()
67Transliterator* latinJamo = Transliterator::createInstance("Latin-Jamo", UTRANS_FORWARD, parseErro… in TestJamo()
74 Transliterator* jamoLatin = latinJamo->createInverse(status); in TestJamo()
159 Transliterator *t = NULL; in TestPiecemeal()
162 t = Transliterator::createInstance("NFD", UTRANS_FORWARD, status); // was Hangul-Jamo in TestPiecemeal()
170 t = Transliterator::createInstance("NFC", UTRANS_FORWARD, status); // was Jamo-Hangul in TestPiecemeal()
178 t = Transliterator::createInstance("Latin-Jamo", UTRANS_FORWARD, status); in TestPiecemeal()
186 t = Transliterator::createInstance("Jamo-Latin", UTRANS_FORWARD, status); in TestPiecemeal()
194 t = Transliterator::createInstance("Hangul-Latin", UTRANS_FORWARD, status); in TestPiecemeal()
[all …]
Dtrnserr.cpp64 Transliterator* t= Transliterator::createInstance(trans, UTRANS_FORWARD, parseError, status); in TestTransliteratorErrors()
136 Transliterator* t1= Transliterator::createInstance(bogusID, UTRANS_FORWARD, parseError, status); in TestTransliteratorErrors()
142Transliterator* t2 = Transliterator::createFromRules(newID, newIDRules, UTRANS_FORWARD, parseError… in TestTransliteratorErrors()
144 Transliterator* t3 = t2->createInverse(status); in TestTransliteratorErrors()
153Transliterator* t4 = Transliterator::createFromRules(newID, bogusRules, UTRANS_FORWARD, parseError… in TestTransliteratorErrors()
224Transliterator *t = Transliterator::createFromRules(id, rules, UTRANS_REVERSE, parseErr, status); in TestRBTErrors()
230 Transliterator::registerInstance(t); in TestRBTErrors()
231 Transliterator::unregister(id); in TestRBTErrors()
233 Transliterator* t1= Transliterator::createInstance(id, UTRANS_REVERSE, parseErr, status); in TestRBTErrors()
262 class StubTransliterator: public Transliterator{
[all …]
Dcpdtrtst.cpp44 Transliterator* t1=Transliterator::createInstance(names[0], UTRANS_FORWARD, parseError, status); in TestConstruction()
45 Transliterator* t2=Transliterator::createInstance(names[1], UTRANS_FORWARD, parseError, status); in TestConstruction()
46 Transliterator* t3=Transliterator::createInstance(names[2], UTRANS_FORWARD, parseError, status); in TestConstruction()
47 Transliterator* t4=Transliterator::createInstance(names[3], UTRANS_FORWARD, parseError, status); in TestConstruction()
54 Transliterator* transarray1[]={t1}; in TestConstruction()
55 Transliterator* transarray2[]={t1, t4}; in TestConstruction()
56 Transliterator* transarray3[]={t4, t1, t2}; in TestConstruction()
57 Transliterator* transarray4[]={t1, t2, t3, t4}; in TestConstruction()
59 Transliterator** transarray[4]; in TestConstruction()
263 Transliterator** transarray=new Transliterator*[count]; in TestGetSetAdoptTransliterator()
[all …]
/external/icu/icu4c/source/i18n/
Dunesctrn.cpp96 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 …]
Dtranslit.cpp105 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 …]
Desctrn.cpp35 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()
68Transliterator::_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 …]
Dnortrans.cpp24 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 …]
Danytrans.cpp44 delete (icu::Transliterator*) obj; in _deleteTransliterator()
184 Transliterator(id, NULL), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
207 Transliterator(o), in AnyTransliterator()
223 Transliterator* AnyTransliterator::clone() const { in clone()
243 Transliterator* t = getTransliterator(it.scriptCode); in handleTransliterate()
274 Transliterator* AnyTransliterator::getTransliterator(UScriptCode source) const { in getTransliterator()
280 Transliterator* t = NULL; in getTransliterator()
283 t = (Transliterator*) uhash_iget(cache, (int32_t) source); in getTransliterator()
291 t = Transliterator::createInstance(id, UTRANS_FORWARD, ec); in getTransliterator()
298 t = Transliterator::createInstance(id, UTRANS_FORWARD, ec); in getTransliterator()
[all …]
Dutrans.cpp157 Transliterator *trans = NULL; in utrans_openU()
159 trans = Transliterator::createInstance(ID, dir, *parseError, *status); in utrans_openU()
170 Transliterator *trans = NULL; in utrans_openU()
171 trans = Transliterator::createFromRules(ID, ruleStr, dir, *parseError, *status); in utrans_openU()
200 (UTransliterator*) ((Transliterator*) trans)->createInverse(*status); in utrans_openInverse()
216 Transliterator *t = ((Transliterator*) trans)->clone(); in utrans_clone()
225 delete (Transliterator*) trans; in utrans_close()
232 const UnicodeString &ID=((Transliterator*) trans)->getID(); in utrans_getUnicodeID()
243 return ((Transliterator*) trans)->getID().extract(0, 0x7fffffff, buf, bufCapacity, US_INV); in utrans_getID()
251 Transliterator::registerInstance((Transliterator*) adoptedTrans); in utrans_register()
[all …]
Dcpdtrans.cpp50 Transliterator* const transliterators[], in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
53 Transliterator(joinIDs(transliterators, transliteratorCount), adoptedFilter), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
70 Transliterator(id, adoptedFilter), in CompoundTransliterator()
80 Transliterator(id, 0), // set filter to 0 here! in CompoundTransliterator()
97 Transliterator(newID, adoptedFilter), in CompoundTransliterator()
111 Transliterator(UnicodeString(), NULL), in CompoundTransliterator()
124 Transliterator(UnicodeString(), NULL), in CompoundTransliterator()
197 trans = (Transliterator **)uprv_malloc(count * sizeof(Transliterator *)); in init()
215 trans[i] = (Transliterator*) list.elementAt(j); in init()
239 UnicodeString CompoundTransliterator::joinIDs(Transliterator* const transliterators[], in joinIDs()
[all …]
Dremtrans.cpp27 static Transliterator* RemoveTransliterator_create(const UnicodeString& /*ID*/, in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
28 Transliterator::Token /*context*/) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
38 Transliterator::_registerFactory(UnicodeString(TRUE, ::CURR_ID, -1), in registerIDs()
41 Transliterator::_registerSpecialInverse(UNICODE_STRING_SIMPLE("Remove"), in registerIDs()
45 RemoveTransliterator::RemoveTransliterator() : Transliterator(UnicodeString(TRUE, ::CURR_ID, -1), 0… in RemoveTransliterator()
49 Transliterator* RemoveTransliterator::clone(void) const { in clone()
50 Transliterator* result = new RemoveTransliterator(); in clone()
Dcpdtrans.h38 class U_I18N_API CompoundTransliterator : public Transliterator {
40 Transliterator** trans;
62 CompoundTransliterator(Transliterator* const transliterators[],
99 virtual Transliterator* clone(void) const;
112 virtual const Transliterator& getTransliterator(int32_t idx) const;
117 void setTransliterators(Transliterator* const transliterators[],
123 void adoptTransliterators(Transliterator* adoptedTransliterators[],
176 friend class Transliterator;
218 UnicodeString joinIDs(Transliterator* const transliterators[],
/external/icu/icu4c/source/i18n/unicode/
Dtranslit.h241 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 …]

12345