/external/icu4c/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 …]
|
D | jamotest.cpp | 28 NAME_JAMO = Transliterator::createFromRules("Name-Jamo", in JamoTest() 37 JAMO_NAME = Transliterator::createFromRules("Jamo-Name", in JamoTest() 67 …Transliterator* 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 …]
|
D | trnserr.cpp | 64 Transliterator* t= Transliterator::createInstance(trans, UTRANS_FORWARD, parseError, status); in TestTransliteratorErrors() 136 Transliterator* t1= Transliterator::createInstance(bogusID, UTRANS_FORWARD, parseError, status); in TestTransliteratorErrors() 142 …Transliterator* t2 = Transliterator::createFromRules(newID, newIDRules, UTRANS_FORWARD, parseError… in TestTransliteratorErrors() 144 Transliterator* t3 = t2->createInverse(status); in TestTransliteratorErrors() 153 …Transliterator* t4 = Transliterator::createFromRules(newID, bogusRules, UTRANS_FORWARD, parseError… in TestTransliteratorErrors() 224 … Transliterator *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 …]
|
D | cpdtrtst.cpp | 44 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 …]
|
D | transtst.h | 69 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,
|
D | canittst.h | 25 class Transliterator; variable 51 Transliterator *nameTrans; 52 Transliterator *hexTrans;
|
/external/icu4c/i18n/ |
D | unesctrn.cpp | 95 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 …]
|
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 | 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 | nortrans.cpp | 23 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 …]
|
D | cpdtrans.cpp | 52 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 …]
|
D | utrans.cpp | 156 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 …]
|
D | anytrans.cpp | 42 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 …]
|
D | remtrans.cpp | 27 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()
|
D | cpdtrans.h | 38 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[],
|
D | anytrans.h | 35 class AnyTransliterator : public Transliterator { 67 virtual Transliterator* clone() const; 114 Transliterator* getTransliterator(UScriptCode source) const; 122 friend class Transliterator; // for registerIDs() variable
|
D | transreg.h | 75 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,
|
D | transreg.cpp | 99 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 …]
|
D | rbt.cpp | 76 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)
|
D | nortrans.h | 26 class NormalizationTransliterator : public Transliterator { 45 virtual Transliterator* clone(void) const; 80 static Transliterator* _create(const UnicodeString& ID,
|
D | funcrepl.h | 23 class Transliterator; variable 40 Transliterator* translit; 55 FunctionReplacer(Transliterator* adoptedTranslit,
|
/external/icu4c/i18n/unicode/ |
D | translit.h | 241 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/ |
D | main.cpp | 33 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/ |
D | main_4.cpp | 33 Transliterator *greek_latin; in main() 34 Transliterator *rbtUnaccent; in main() 35 Transliterator *unaccent; in main() 53 greek_latin = Transliterator::createInstance("Greek-Latin"); in main()
|