Home
last modified time | relevance | path

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

123

/external/icu4c/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 …]
Dtranstst.h69 void keyboardAux(const Transliterator& t,
389 void expect(const Transliterator& t,
392 const Transliterator& reverseTransliterator);
394 void expect(const Transliterator& t,
412 void checkRules(const UnicodeString& label, Transliterator& t2,
414 void CheckIncrementalAux(const Transliterator* t,
Dcanittst.h25 class Transliterator; variable
51 Transliterator *nameTrans;
52 Transliterator *hexTrans;
/external/icu4c/i18n/
Dunesctrn.cpp95 static Transliterator* _createUnicode(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createUnicode()
98 static Transliterator* _createJava(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createJava()
101 static Transliterator* _createC(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createC()
104 static Transliterator* _createXML(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createXML()
107 static Transliterator* _createXML10(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createXML10()
110 static Transliterator* _createPerl(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createPerl()
113 static Transliterator* _createAny(const UnicodeString& ID, Transliterator::Token /*context*/) { in _createAny()
124 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/Unicode"), _createUnicode, t); in registerIDs()
126 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/Java"), _createJava, t); in registerIDs()
128 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Hex-Any/C"), _createC, t); in registerIDs()
[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 …]
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 …]
Dnortrans.cpp23 static inline Transliterator::Token cstrToken(const char *s) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
24 return Transliterator::pointerToken((void *)s); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
32 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-NFC"), in registerIDs()
34 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-NFKC"), in registerIDs()
36 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-NFD"), in registerIDs()
38 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-NFKD"), in registerIDs()
40 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-FCD"), in registerIDs()
42 Transliterator::_registerFactory(UNICODE_STRING_SIMPLE("Any-FCC"), in registerIDs()
44 Transliterator::_registerSpecialInverse(UNICODE_STRING_SIMPLE("NFC"), in registerIDs()
46 Transliterator::_registerSpecialInverse(UNICODE_STRING_SIMPLE("NFKC"), in registerIDs()
[all …]
Dcpdtrans.cpp52 Transliterator* const transliterators[], in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
55 Transliterator(joinIDs(transliterators, transliteratorCount), adoptedFilter), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
72 Transliterator(id, adoptedFilter), in CompoundTransliterator()
82 Transliterator(id, 0), // set filter to 0 here! in CompoundTransliterator()
99 Transliterator(newID, adoptedFilter), in CompoundTransliterator()
113 Transliterator(EMPTY, NULL), in CompoundTransliterator()
126 Transliterator(EMPTY, NULL), in CompoundTransliterator()
199 trans = (Transliterator **)uprv_malloc(count * sizeof(Transliterator *)); in init()
217 trans[i] = (Transliterator*) list.elementAt(j); in init()
241 UnicodeString CompoundTransliterator::joinIDs(Transliterator* const transliterators[], in joinIDs()
[all …]
Dutrans.cpp156 Transliterator *trans = NULL; in utrans_openU()
158 trans = Transliterator::createInstance(ID, dir, *parseError, *status); in utrans_openU()
169 Transliterator *trans = NULL; in utrans_openU()
170 trans = Transliterator::createFromRules(ID, ruleStr, dir, *parseError, *status); in utrans_openU()
199 (UTransliterator*) ((Transliterator*) trans)->createInverse(*status); in utrans_openInverse()
215 Transliterator *t = ((Transliterator*) trans)->clone(); in utrans_clone()
224 delete (Transliterator*) trans; in utrans_close()
231 const UnicodeString &ID=((Transliterator*) trans)->getID(); in utrans_getUnicodeID()
242 return ((Transliterator*) trans)->getID().extract(0, 0x7fffffff, buf, bufCapacity, US_INV); in utrans_getID()
250 Transliterator::registerInstance((Transliterator*) adoptedTrans); in utrans_register()
[all …]
Danytrans.cpp42 delete (U_NAMESPACE_QUALIFIER Transliterator*) obj; in _deleteTransliterator()
182 Transliterator(id, NULL), in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
205 Transliterator(o), in AnyTransliterator()
221 Transliterator* AnyTransliterator::clone() const { in clone()
241 Transliterator* t = getTransliterator(it.scriptCode); in handleTransliterate()
272 Transliterator* AnyTransliterator::getTransliterator(UScriptCode source) const { in getTransliterator()
278 Transliterator* t = (Transliterator*) uhash_iget(cache, (int32_t) source); in getTransliterator()
285 t = Transliterator::createInstance(id, UTRANS_FORWARD, ec); in getTransliterator()
292 t = Transliterator::createInstance(id, UTRANS_FORWARD, ec); in getTransliterator()
338 int32_t sourceCount = Transliterator::_countAvailableSources(); in registerIDs()
[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(::CURR_ID, RemoveTransliterator_create, integerToken(0)); in registerIDs()
40 Transliterator::_registerSpecialInverse(UNICODE_STRING_SIMPLE("Remove"), in registerIDs()
44 RemoveTransliterator::RemoveTransliterator() : Transliterator(::CURR_ID, 0) {} in RemoveTransliterator()
48 Transliterator* RemoveTransliterator::clone(void) const { in clone()
49 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[],
Danytrans.h35 class AnyTransliterator : public Transliterator {
67 virtual Transliterator* clone() const;
114 Transliterator* getTransliterator(UScriptCode source) const;
122 friend class Transliterator; // for registerIDs() variable
Dtransreg.h75 Transliterator* create(UParseError&, UErrorCode&);
175 Transliterator* get(const UnicodeString& ID,
194 Transliterator* reget(const UnicodeString& ID,
204 void put(Transliterator* adoptedProto,
214 Transliterator::Factory factory,
215 Transliterator::Token context,
406 Transliterator* instantiateEntry(const UnicodeString& ID,
Dtransreg.cpp99 Transliterator* TransliteratorAlias::create(UParseError& pe, in create()
104 Transliterator *t = NULL; in create()
107 t = Transliterator::createInstance(aliasesOrRules, UTRANS_FORWARD, pe, ec); in create()
142 … transliterators.addElement(Transliterator::createInstance(idBlock, UTRANS_FORWARD, pe, ec), ec); in create()
148 …transliterators.addElement(Transliterator::createInstance(aliasesOrRules, UTRANS_FORWARD, pe, ec),… in create()
162 delete (Transliterator*)(transliterators.elementAt(i)); in create()
439 Transliterator* prototype; // For PROTOTYPE
443 Transliterator::Factory function;
444 Transliterator::Token context;
449 void adoptPrototype(Transliterator* adopted);
[all …]
Drbt.cpp76 Transliterator(id, adoptedFilter) { in RuleBasedTransliterator()
142 Transliterator(id, adoptedFilter), in RuleBasedTransliterator()
154 Transliterator(id, 0), in RuleBasedTransliterator()
165 Transliterator(other), fData(other.fData), in RuleBasedTransliterator()
192 Transliterator* // Covariant return NOT ALLOWED (for portability)
Dnortrans.h26 class NormalizationTransliterator : public Transliterator {
45 virtual Transliterator* clone(void) const;
80 static Transliterator* _create(const UnicodeString& ID,
Dfuncrepl.h23 class Transliterator; variable
40 Transliterator* translit;
55 FunctionReplacer(Transliterator* adoptedTranslit,
/external/icu4c/i18n/unicode/
Dtranslit.h241 class U_I18N_API Transliterator : public UObject {
309 typedef Transliterator* (U_EXPORT2 *Factory)(const UnicodeString& ID, Token context);
322 Transliterator(const UnicodeString& ID, UnicodeFilter* adoptedFilter);
328 Transliterator(const Transliterator&);
334 Transliterator& operator=(const Transliterator&);
347 static Transliterator* createBasicInstance(const UnicodeString& id,
360 virtual ~Transliterator();
376 virtual Transliterator* clone() const;
807 Transliterator* createInverse(UErrorCode& status) const;
825 static Transliterator* U_EXPORT2 createInstance(const UnicodeString& ID,
[all …]
/external/icu4c/samples/translit/
Dmain.cpp33 Transliterator *greek_latin; in main()
34 Transliterator *rbtUnaccent; in main()
35 Transliterator *unaccent; in main()
54 greek_latin = Transliterator::createInstance("Greek-Latin", UTRANS_FORWARD, status); in main()
61 rbtUnaccent = Transliterator::createFromRules("RBTUnaccent", in main()
/external/icu4c/samples/translit/answers/
Dmain_4.cpp33 Transliterator *greek_latin; in main()
34 Transliterator *rbtUnaccent; in main()
35 Transliterator *unaccent; in main()
53 greek_latin = Transliterator::createInstance("Greek-Latin"); in main()

123