Lines Matching refs:Transliterator
212 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()
421 Transliterator *rev = Transliterator::createFromRules("<ID>", RULES, in TestRuleBasedInverse()
441 Transliterator *t = Transliterator::createFromRules("<ID>", in TestKeyboard()
473 Transliterator *t = Transliterator::createFromRules("<ID>", in TestKeyboard2()
527 …Transliterator *t = Transliterator::createFromRules("<ID>", RULES, UTRANS_FORWARD, parseError, sta… in TestKeyboard3()
536 void TransliteratorTest::keyboardAux(const Transliterator& t, in keyboardAux()
610 …Transliterator* t = Transliterator::createInstance("Latin-Hiragana;Hiragana-Latin", UTRANS_FORWARD… in TestCompoundKana()
625 … Transliterator* a = Transliterator::createInstance("Any-Hex", UTRANS_FORWARD, parseError, status); in TestCompoundHex()
626 … Transliterator* b = Transliterator::createInstance("Hex-Any", UTRANS_FORWARD, parseError, status); in TestCompoundHex()
627 Transliterator* transab[] = { a, b }; in TestCompoundHex()
628 Transliterator* transba[] = { b, a }; in TestCompoundHex()
640 Transliterator* ab = new CompoundTransliterator(transab, 2); in TestCompoundHex()
646 Transliterator* ba = new CompoundTransliterator(transba, 2); in TestCompoundHex()
685 …Transliterator* hex = Transliterator::createInstance("Any-Hex", UTRANS_FORWARD, parseError, status… in TestFiltering()
755 …Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestPatternQuoting()
771 …Transliterator *gl = Transliterator::createInstance("Greek-Latin; NFD; [:M:]Remove; NFC", UTRANS_F… in TestJ277()
809 …Transliterator *mini = Transliterator::createFromRules("mini", rules, UTRANS_REVERSE, parseError, … in TestJ277()
855 Transliterator *hex = in TestJ243()
856 Transliterator::createInstance("Hex-Any", UTRANS_FORWARD, ec); in TestJ243()
888 Transliterator *rbt = Transliterator::createFromRules("<ID>", in TestJ329()
933 …Transliterator *t = Transliterator::createFromRules("ID", DATA[i], UTRANS_FORWARD, parseError, sta… in TestSegments()
965 …Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestCursorOffset()
1006 …Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestArbitraryVariableValues()
1049 Transliterator *t = Transliterator::createFromRules("<ID>", in TestPositionHandling()
1083 …Transliterator* hk = Transliterator::createInstance("Hiragana-Katakana", UTRANS_FORWARD, parseErro… in TestHiraganaKatakana()
1084 …Transliterator* kh = Transliterator::createInstance("Katakana-Hiragana", UTRANS_FORWARD, parseErro… in TestHiraganaKatakana()
1132 Transliterator *t2 = 0; in TestCopyJ476()
1136 Transliterator *t1 = Transliterator::createFromRules("t1", in TestCopyJ476()
1158 Transliterator* dg = Transliterator::createInstance(ID, UTRANS_FORWARD, parseError, status); in TestInterIndic()
1204 Transliterator *t = Transliterator::createInstance(ID, UTRANS_FORWARD, parseError, status); in TestFilterIDs()
1218 Transliterator *u = t->createInverse(status); in TestFilterIDs()
1237 Transliterator* toUpper = in TestCaseMap()
1238 Transliterator::createInstance("Any-Upper[^xyzXYZ]", UTRANS_FORWARD, parseError, status); in TestCaseMap()
1239 Transliterator* toLower = in TestCaseMap()
1240 Transliterator::createInstance("Any-Lower[^xyzXYZ]", UTRANS_FORWARD, parseError, status); in TestCaseMap()
1241 Transliterator* toTitle = in TestCaseMap()
1242 Transliterator::createInstance("Any-Title[^xyzXYZ]", UTRANS_FORWARD, parseError, status); in TestCaseMap()
1269 Transliterator* uni2name = in TestNameMap()
1270 Transliterator::createInstance("Any-Name[^abc]", UTRANS_FORWARD, parseError, status); in TestNameMap()
1271 Transliterator* name2uni = in TestNameMap()
1272 Transliterator::createInstance("Name-Any", UTRANS_FORWARD, parseError, status); in TestNameMap()
1290 Transliterator* t = in TestNameMap()
1291 Transliterator::createInstance("Any-Name;Name-Any", UTRANS_FORWARD, parseError, status); in TestNameMap()
1323 … Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_FORWARD, parseError, status); in TestLiberalizedID()
1376 Transliterator* t = in TestCreateInstance()
1377 Transliterator::createInstance(id,dir,err,ec); in TestCreateInstance()
1462 Transliterator* NFD = Transliterator::createInstance("NFD", UTRANS_FORWARD, parseError, status); in TestNormalizationTransliterator()
1463 Transliterator* NFC = Transliterator::createInstance("NFC", UTRANS_FORWARD, parseError, status); in TestNormalizationTransliterator()
1480 … Transliterator* NFKD = Transliterator::createInstance("NFKD", UTRANS_FORWARD, parseError, status); in TestNormalizationTransliterator()
1481 … Transliterator* NFKC = Transliterator::createInstance("NFKC", UTRANS_FORWARD, parseError, status); in TestNormalizationTransliterator()
1500 Transliterator *t = Transliterator::createInstance("NFD; [x]Remove", in TestNormalizationTransliterator()
1525 …Transliterator *t = Transliterator::createFromRules("Test", rule, UTRANS_FORWARD, parseError, stat… in TestCompoundRBT()
1543 …t = Transliterator::createInstance("Greek-Latin; Latin-Cyrillic", UTRANS_FORWARD, parseError, stat… in TestCompoundRBT()
1559 t = Transliterator::createFromRules("Test", r, UTRANS_FORWARD, parseError, status); in TestCompoundRBT()
1581 t = Transliterator::createInstance(id, UTRANS_FORWARD, parseError, status); in TestCompoundRBT()
1593 Transliterator *u = t->createInverse(status); in TestCompoundRBT()
1630 Transliterator *t = Transliterator::createInstance in TestCompoundFilter()
1653 …Transliterator *t = Transliterator::createInstance("Remove[abc]", UTRANS_FORWARD, parseError, stat… in TestRemove()
1663 Transliterator* t2 = t->clone(); in TestRemove()
1741 Transliterator *t = Transliterator::createFromRules("ID", in TestToRules()
1946 class TestTrans : public Transliterator {
1948 TestTrans(const UnicodeString& id) : Transliterator(id, 0) { in TestTrans()
1950 virtual Transliterator* clone(void) const { in clone()
1967 int32_t ns = Transliterator::countAvailableSources(); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
1975 Transliterator::getAvailableSource(i, source); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
1981 int32_t nt = Transliterator::countAvailableTargets(source); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
1988 Transliterator::getAvailableTarget(j, source, target); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
1994 int32_t nv = Transliterator::countAvailableVariants(source, target); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2001 Transliterator::getAvailableVariant(k, source, target, variant); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2016 Transliterator *t = new TestTrans(IDS[i]); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2026 Transliterator::registerInstance(t); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2028 t = Transliterator::createInstance(IDS[i], UTRANS_FORWARD, status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2037 Transliterator::unregister(IDS[i]); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2038 t = Transliterator::createInstance(IDS[i], UTRANS_FORWARD, status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2047 int32_t n = Transliterator::countAvailableIDs(); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2049 UnicodeString id = Transliterator::getAvailableID(i); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2056 n = Transliterator::countAvailableTargets("Any"); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2059 Transliterator::getAvailableTarget(i, "Any", t); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2064 n = Transliterator::countAvailableSources(); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2067 Transliterator::getAvailableSource(i, s); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2083 Transliterator *t = Transliterator::createInstance in TestCompoundInverse()
2106 Transliterator* t = Transliterator::createFromRules( in TestNFDChainRBT()
2210 Transliterator *t = Transliterator::createInstance("Null", UTRANS_FORWARD, pe, ec); in TestNullInverse()
2215 Transliterator *u = t->createInverse(ec); in TestNullInverse()
2235 Transliterator *t = Transliterator::createInstance(ID, UTRANS_FORWARD, pe, ec); in TestAliasInverseID()
2240 Transliterator *u = t->createInverse(ec); in TestAliasInverseID()
2263 Transliterator *t = Transliterator::createInstance(ID, UTRANS_FORWARD, pe, ec); in TestCompoundInverseID()
2268 Transliterator *u = t->createInverse(ec); in TestCompoundInverseID()
2292 Transliterator *t = Transliterator::createFromRules("<ID>", rule, UTRANS_FORWARD, pe, ec); in TestUndefinedVariable()
2343 Transliterator* t = NULL; in TestCompoundFilterID()
2347 t = Transliterator::createFromRules("ID", id, direction, pe, ec); in TestCompoundFilterID()
2349 t = Transliterator::createInstance(id, direction, pe, ec); in TestCompoundFilterID()
2388 Transliterator *t = Transliterator::createInstance("Latin-Hiragana", UTRANS_FORWARD, pe, ec); in TestNewEngine()
2403 Transliterator *a = in TestNewEngine()
2404 Transliterator::createFromRules("a_to_A", "a > A;", UTRANS_FORWARD, pe, ec); in TestNewEngine()
2405 Transliterator *A = in TestNewEngine()
2406 Transliterator::createFromRules("A_to_b", "A > b;", UTRANS_FORWARD, pe, ec); in TestNewEngine()
2413 Transliterator* array[3]; in TestNewEngine()
2415 array[1] = Transliterator::createInstance("NFD", UTRANS_FORWARD, pe, ec); in TestNewEngine()
2486 Transliterator* t = Transliterator::createFromRules("ID", r, UTRANS_FORWARD, pe, ec); in TestQuantifiedSegment()
2504 t = Transliterator::createFromRules("ID", r, UTRANS_FORWARD, pe, ec); in TestQuantifiedSegment()
2646 …Transliterator* latinToDev=Transliterator::createInstance("Latin-Devanagari", UTRANS_FORWARD, pars… in TestDevanagariLatinRT()
2647 …Transliterator* devToLatin=Transliterator::createInstance("Devanagari-Latin", UTRANS_FORWARD, pars… in TestDevanagariLatinRT()
2694 …Transliterator* latinToDev=Transliterator::createInstance("Latin-Telugu", UTRANS_FORWARD, parseErr… in TestTeluguLatinRT()
2695 …Transliterator* devToLatin=Transliterator::createInstance("Telugu-Latin", UTRANS_FORWARD, parseErr… in TestTeluguLatinRT()
2754 …Transliterator* latinToDev=Transliterator::createInstance("Latin-Devanagari", UTRANS_FORWARD, pars… in TestSanskritLatinRT()
2755 …Transliterator* devToLatin=Transliterator::createInstance("Devanagari-Latin", UTRANS_FORWARD, pars… in TestSanskritLatinRT()
2820 …Transliterator* devToLatinToDev =Transliterator::createInstance("Devanagari-Latin;Latin-Devanagar… in TestCompoundLatinRT()
2821 …Transliterator* latinToDevToLatin=Transliterator::createInstance("Latin-Devanagari;Devanagari-Lati… in TestCompoundLatinRT()
2822 …Transliterator* devToTelToDev =Transliterator::createInstance("Devanagari-Telugu;Telugu-Devanag… in TestCompoundLatinRT()
2823 …Transliterator* latinToTelToLatin=Transliterator::createInstance("Latin-Telugu;Telugu-Latin", UTRA… in TestCompoundLatinRT()
2858 …Transliterator* trans = Transliterator::createInstance("Devanagari-Gurmukhi",UTRANS_FORWARD, parse… in TestGurmukhiDevanagari()
2890 Transliterator *t = Transliterator::createInstance("ru_RU-Latin", UTRANS_FORWARD, pe, ec); in TestLocaleInstantiation()
2899 t = Transliterator::createInstance("en-el", UTRANS_FORWARD, pe, ec); in TestLocaleInstantiation()
2915 Transliterator *t = Transliterator::createInstance("Title", UTRANS_FORWARD, pe, ec); in TestTitleAccents()
2942 Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_FORWARD, pe, ec); in TestLocaleResource()
2964 Transliterator *t = Transliterator::createFromRules("ID", rule, UTRANS_FORWARD, pe, ec); in TestParseError()
2983 delete Transliterator::createFromRules("ID", maskingRule, UTRANS_FORWARD, pe, ec); in TestParseError()
3002 Transliterator *t = Transliterator::createFromRules("ID", rule, UTRANS_FORWARD, pe, ec); in TestOutputSet()
3021 Transliterator *t = Transliterator::createFromRules("ID", rule, UTRANS_FORWARD, pe, ec); in TestVariableRange()
3039 Transliterator *t = Transliterator::createFromRules("ID", rule, UTRANS_FORWARD, pe, ec); in TestInvalidPostContext()
3090 Transliterator *t = in TestIDForms()
3091 Transliterator::createInstance(ID, UTRANS_FORWARD, pe, ec); in TestIDForms()
3101 Transliterator *u = t->createInverse(ec); in TestIDForms()
3126 void TransliteratorTest::checkRules(const UnicodeString& label, Transliterator& t2, in checkRules()
3179 …Transliterator *t2 = Transliterator::createFromRules("source-target", UnicodeString(testRules, -1,… in TestToRulesMark()
3180 …Transliterator *t3 = Transliterator::createFromRules("target-source", UnicodeString(testRules, -1,… in TestToRulesMark()
3205 Transliterator *t; in TestEscape()
3208 t = Transliterator::createInstance("Hex-Any", UTRANS_FORWARD, pe, ec); in TestEscape()
3219 t = Transliterator::createInstance("Any-Hex/C", UTRANS_FORWARD, pe, ec); in TestEscape()
3230 t = Transliterator::createInstance("Any-Hex/Java", UTRANS_FORWARD, pe, ec); in TestEscape()
3241 t = Transliterator::createInstance("Any-Hex/Perl", UTRANS_FORWARD, pe, ec); in TestEscape()
3258 … Transliterator* t = Transliterator::createFromRules("ID", rule, UTRANS_FORWARD,parseError,status); in TestAnchorMasking()
3300 Transliterator::getDisplayName(DATA[i], US, name); in TestDisplayName()
3309 Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_REVERSE, pe, ec); in TestDisplayName()
3315 name = Transliterator::getDisplayName(t->getID(), US, name); in TestDisplayName()
3397 Transliterator *t = Transliterator::createFromRules(registerRules[0+i], in TestSpecialCases()
3402 Transliterator::registerInstance(t); in TestSpecialCases()
3409 Transliterator *t = Transliterator::createInstance(name, UTRANS_FORWARD, pe, ec); in TestSpecialCases()
3447 Transliterator::unregister(registerRules[i]); in TestSpecialCases()
3492 static void _trans(Transliterator& t, const UnicodeString& src, in _trans()
3501 Transliterator *t = Transliterator::createInstance(id, UTRANS_FORWARD, pe, ec); in _trans()
3543 int32_t sources = Transliterator::countAvailableSources(); in TestIncrementalProgress()
3546 Transliterator::getAvailableSource(i, source); in TestIncrementalProgress()
3552 int32_t targets = Transliterator::countAvailableTargets(source); in TestIncrementalProgress()
3555 Transliterator::getAvailableTarget(j, source, target); in TestIncrementalProgress()
3556 int32_t variants = Transliterator::countAvailableVariants(source, target); in TestIncrementalProgress()
3562 Transliterator::getAvailableVariant(k, source, target, variant); in TestIncrementalProgress()
3565 Transliterator *t = Transliterator::createInstance(id, UTRANS_FORWARD, err, status); in TestIncrementalProgress()
3576 Transliterator *inv = t->createInverse(status); in TestIncrementalProgress()
3608 void TransliteratorTest::CheckIncrementalAux(const Transliterator* t, in CheckIncrementalAux()
3654 Transliterator *t = Transliterator::createFromRules("Test", rule, UTRANS_FORWARD, pe, ec); in TestFunction()
3680 Transliterator *t = Transliterator::createFromRules("Test", rule, UTRANS_FORWARD, pe, ec); in TestInvalidBackRef()
3681 Transliterator *t2 = Transliterator::createFromRules("Test2", rule2, UTRANS_FORWARD, pe, ec); in TestInvalidBackRef()
3711 Transliterator* t = Transliterator::createFromRules("Test", rule, UTRANS_FORWARD, pe, ec); in TestMulticharStringSet()
3730 t = Transliterator::createFromRules("Test", rule, UTRANS_FORWARD, pe, ec); in TestMulticharStringSet()
3745 Transliterator* _TUFF[4];
3748 static Transliterator* U_EXPORT2 _TUFFactory(const UnicodeString& /*ID*/, in _TUFFactory()
3749 Transliterator::Token context) { in _TUFFactory()
3753 static void _TUFReg(const UnicodeString& ID, Transliterator* t, int32_t n) { in _TUFReg()
3756 Transliterator::registerFactory(ID, _TUFFactory, Transliterator::integerToken(n)); in _TUFReg()
3761 Transliterator::unregister(*_TUFID[n]); in _TUFUnreg()
3776 Transliterator* t; in TestUserFunction()
3787 t = Transliterator::createFromRules("gif", in TestUserFunction()
3796 t = Transliterator::createFromRules("RemoveCurly", in TestUserFunction()
3807 t = Transliterator::createFromRules("hex2", in TestUserFunction()
3816 t = Transliterator::createInstance("Any-hex2", UTRANS_FORWARD, ec); in TestUserFunction()
3825 t = Transliterator::createFromRules("gif2", in TestUserFunction()
3834 t = Transliterator::createInstance("Any-gif2", UTRANS_FORWARD, ec); in TestUserFunction()
3844 t = Transliterator::createFromRules("test", in TestUserFunction()
3867 Transliterator* anyLatin = in TestAnyX()
3868 Transliterator::createInstance("Any-Latin", UTRANS_FORWARD, parseError, status); in TestAnyX()
3921 Transliterator* anyLatin = in TestAny()
3922 Transliterator::createInstance("Any-Latin", UTRANS_FORWARD, parseError, status); in TestAny()
3954 Transliterator* t = Transliterator::createFromRules("test", r, UTRANS_FORWARD, pe, ec); in TestSourceTargetSet()
3991 …Transliterator* t = Transliterator::createFromRules("test", CharsToUnicodeString(r), UTRANS_FORWAR… in TestPatternWhiteSpace()
4049 Transliterator* t = Transliterator::createInstance(newId,UTRANS_FORWARD,pe,status); in TestAllCodepoints()
4056 Transliterator* t = Transliterator::createInstance(newAbbrId,UTRANS_FORWARD,pe,status); in TestAllCodepoints()
4071 Transliterator* t = Transliterator::createInstance(id, UTRANS_FORWARD, ec); \
4086 Transliterator* t = Transliterator::createFromRules("_", rule, UTRANS_FORWARD, pe, ec); \
4368 …Transliterator* reversed = Transliterator::createFromRules("Reversed", UnicodeString(BEGIN_END_RU… in TestBeginEnd()
4403 …Transliterator* t = Transliterator::createFromRules("--", UnicodeString(BEGIN_END_TEST_CASES[i], -… in TestBeginEndToRules()
4410 …Transliterator* t2 = Transliterator::createFromRules((UnicodeString)"Test case #" + (i / 3), rules, in TestBeginEndToRules()
4429 …Transliterator* reversed = Transliterator::createFromRules("Reversed", UnicodeString(BEGIN_END_RUL… in TestBeginEndToRules()
4436 … Transliterator* reversed2 = Transliterator::createFromRules("Reversed", rules, UTRANS_FORWARD, in TestBeginEndToRules()
4457 Transliterator::registerAlias(shortID, longID); in TestRegisterAlias()
4460 Transliterator* t1 = Transliterator::createInstance(longID, UTRANS_FORWARD, err); in TestRegisterAlias()
4463 Transliterator::unregister(shortID); in TestRegisterAlias()
4466 Transliterator* t2 = Transliterator::createInstance(reallyShortID, UTRANS_FORWARD, err); in TestRegisterAlias()
4470 Transliterator::unregister(shortID); in TestRegisterAlias()
4489 Transliterator::unregister(shortID); in TestRegisterAlias()
4491 t1 = Transliterator::createInstance(shortID, UTRANS_FORWARD, err); in TestRegisterAlias()
4501 Transliterator::registerAlias(fakeID, realID); in TestRegisterAlias()
4504 t1 = Transliterator::createInstance(realID, UTRANS_FORWARD, err); in TestRegisterAlias()
4507 Transliterator::unregister(realID); in TestRegisterAlias()
4510 t2 = Transliterator::createInstance(fakeID, UTRANS_FORWARD, err); in TestRegisterAlias()
4514 Transliterator::unregister(realID); in TestRegisterAlias()
4525 Transliterator::unregister(fakeID); in TestRegisterAlias()
4557 …Transliterator* hf = Transliterator::createInstance("Halfwidth-Fullwidth", UTRANS_FORWARD, parseEr… in TestHalfwidthFullwidth()
4558 …Transliterator* fh = Transliterator::createInstance("Fullwidth-Halfwidth", UTRANS_FORWARD, parseEr… in TestHalfwidthFullwidth()
4608 …Transliterator* tr = Transliterator::createInstance("Any-Latin", UTRANS_FORWARD, parseError, statu… in TestThai()
4691 Transliterator *t = Transliterator::createInstance(id, UTRANS_FORWARD, pe, ec); in expectT()
4727 …Transliterator* t = Transliterator::createFromRules(id, rules, UTRANS_FORWARD, parseError, status); in expect()
4736 void TransliteratorTest::expect(const Transliterator& t, in expect()
4739 const Transliterator& reverseTransliterator) { in expect()
4744 void TransliteratorTest::expect(const Transliterator& t, in expect()