• Home
  • Raw
  • Download

Lines Matching refs:Transliterator

213     StringEnumeration* avail = Transliterator::getAvailableIDs(ec);  in TestInstantiation()
216 int32_t n = Transliterator::countAvailableIDs(); in TestInstantiation()
227 UnicodeString id2 = Transliterator::getAvailableID(i); in TestInstantiation()
240 Transliterator* t = Transliterator::createInstance(id, in TestInstantiation()
243 Transliterator::getDisplayName(id, name); in TestInstantiation()
260 int32_t nn = Transliterator::countAvailableIDs(); in TestInstantiation()
271 Transliterator *u = Transliterator::createFromRules("x", in TestInstantiation()
295 Transliterator* t = Transliterator::createInstance(id, UTRANS_FORWARD, parseError, status); in TestInstantiation()
340 Transliterator *t = Transliterator::createFromRules( in TestSimpleRules()
420 Transliterator *fwd = Transliterator::createFromRules("<ID>", RULES, in TestRuleBasedInverse()
422 Transliterator *rev = Transliterator::createFromRules("<ID>", RULES, in TestRuleBasedInverse()
442 Transliterator *t = Transliterator::createFromRules("<ID>", in TestKeyboard()
474 Transliterator *t = Transliterator::createFromRules("<ID>", in TestKeyboard2()
528Transliterator *t = Transliterator::createFromRules("<ID>", RULES, UTRANS_FORWARD, parseError, sta… in TestKeyboard3()
537 void TransliteratorTest::keyboardAux(const Transliterator& t, in keyboardAux()
611Transliterator* t = Transliterator::createInstance("Latin-Hiragana;Hiragana-Latin", UTRANS_FORWARD… in TestCompoundKana()
626Transliterator* a = Transliterator::createInstance("Any-Hex", UTRANS_FORWARD, parseError, status); in TestCompoundHex()
627Transliterator* b = Transliterator::createInstance("Hex-Any", UTRANS_FORWARD, parseError, status); in TestCompoundHex()
628 Transliterator* transab[] = { a, b }; in TestCompoundHex()
629 Transliterator* transba[] = { b, a }; in TestCompoundHex()
641 Transliterator* ab = new CompoundTransliterator(transab, 2); in TestCompoundHex()
647 Transliterator* ba = new CompoundTransliterator(transba, 2); in TestCompoundHex()
686Transliterator* hex = Transliterator::createInstance("Any-Hex", UTRANS_FORWARD, parseError, status… in TestFiltering()
756Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestPatternQuoting()
772Transliterator *gl = Transliterator::createInstance("Greek-Latin; NFD; [:M:]Remove; NFC", UTRANS_F… in TestJ277()
810Transliterator *mini = Transliterator::createFromRules("mini", rules, UTRANS_REVERSE, parseError, … in TestJ277()
856 Transliterator *hex = in TestJ243()
857 Transliterator::createInstance("Hex-Any", UTRANS_FORWARD, ec); in TestJ243()
889 Transliterator *rbt = Transliterator::createFromRules("<ID>", in TestJ329()
934Transliterator *t = Transliterator::createFromRules("ID", DATA[i], UTRANS_FORWARD, parseError, sta… in TestSegments()
966Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestCursorOffset()
1007Transliterator *t = Transliterator::createFromRules("<ID>", DATA[i], UTRANS_FORWARD, parseError, s… in TestArbitraryVariableValues()
1050 Transliterator *t = Transliterator::createFromRules("<ID>", in TestPositionHandling()
1084Transliterator* hk = Transliterator::createInstance("Hiragana-Katakana", UTRANS_FORWARD, parseErro… in TestHiraganaKatakana()
1085Transliterator* kh = Transliterator::createInstance("Katakana-Hiragana", UTRANS_FORWARD, parseErro… in TestHiraganaKatakana()
1133 Transliterator *t2 = 0; in TestCopyJ476()
1137 Transliterator *t1 = Transliterator::createFromRules("t1", in TestCopyJ476()
1159 Transliterator* dg = Transliterator::createInstance(ID, UTRANS_FORWARD, parseError, status); in TestInterIndic()
1205 Transliterator *t = Transliterator::createInstance(ID, UTRANS_FORWARD, parseError, status); in TestFilterIDs()
1219 Transliterator *u = t->createInverse(status); in TestFilterIDs()
1238 Transliterator* toUpper = in TestCaseMap()
1239 Transliterator::createInstance("Any-Upper[^xyzXYZ]", UTRANS_FORWARD, parseError, status); in TestCaseMap()
1240 Transliterator* toLower = in TestCaseMap()
1241 Transliterator::createInstance("Any-Lower[^xyzXYZ]", UTRANS_FORWARD, parseError, status); in TestCaseMap()
1242 Transliterator* toTitle = in TestCaseMap()
1243 Transliterator::createInstance("Any-Title[^xyzXYZ]", UTRANS_FORWARD, parseError, status); in TestCaseMap()
1270 Transliterator* uni2name = in TestNameMap()
1271 Transliterator::createInstance("Any-Name[^abc]", UTRANS_FORWARD, parseError, status); in TestNameMap()
1272 Transliterator* name2uni = in TestNameMap()
1273 Transliterator::createInstance("Name-Any", UTRANS_FORWARD, parseError, status); in TestNameMap()
1291 Transliterator* t = in TestNameMap()
1292 Transliterator::createInstance("Any-Name;Name-Any", UTRANS_FORWARD, parseError, status); in TestNameMap()
1324Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_FORWARD, parseError, status); in TestLiberalizedID()
1377 Transliterator* t = in TestCreateInstance()
1378 Transliterator::createInstance(id,dir,err,ec); in TestCreateInstance()
1463 Transliterator* NFD = Transliterator::createInstance("NFD", UTRANS_FORWARD, parseError, status); in TestNormalizationTransliterator()
1464 Transliterator* NFC = Transliterator::createInstance("NFC", UTRANS_FORWARD, parseError, status); in TestNormalizationTransliterator()
1481Transliterator* NFKD = Transliterator::createInstance("NFKD", UTRANS_FORWARD, parseError, status); in TestNormalizationTransliterator()
1482Transliterator* NFKC = Transliterator::createInstance("NFKC", UTRANS_FORWARD, parseError, status); in TestNormalizationTransliterator()
1501 Transliterator *t = Transliterator::createInstance("NFD; [x]Remove", in TestNormalizationTransliterator()
1561 std::unique_ptr<Transliterator> translit(Transliterator::createInstance( in TestBasicTransliteratorEvenWithoutData()
1580 std::unique_ptr<Transliterator> translit(Transliterator::createFromRules( in TestBasicTransliteratorEvenWithoutData()
1604Transliterator *t = Transliterator::createFromRules("Test", rule, UTRANS_FORWARD, parseError, stat… in TestCompoundRBT()
1622 …t = Transliterator::createInstance("Greek-Latin; Latin-Cyrillic", UTRANS_FORWARD, parseError, stat… in TestCompoundRBT()
1638 t = Transliterator::createFromRules("Test", r, UTRANS_FORWARD, parseError, status); in TestCompoundRBT()
1660 t = Transliterator::createInstance(id, UTRANS_FORWARD, parseError, status); in TestCompoundRBT()
1672 Transliterator *u = t->createInverse(status); in TestCompoundRBT()
1709 Transliterator *t = Transliterator::createInstance in TestCompoundFilter()
1732Transliterator *t = Transliterator::createInstance("Remove[abc]", UTRANS_FORWARD, parseError, stat… in TestRemove()
1742 Transliterator* t2 = t->clone(); in TestRemove()
1820 Transliterator *t = Transliterator::createFromRules("ID", in TestToRules()
2025 class TestTrans : public Transliterator {
2027 TestTrans(const UnicodeString& id) : Transliterator(id, 0) { in TestTrans()
2046 int32_t ns = Transliterator::countAvailableSources(); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2054 Transliterator::getAvailableSource(i, source); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2060 int32_t nt = Transliterator::countAvailableTargets(source); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2067 Transliterator::getAvailableTarget(j, source, target); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2073 int32_t nv = Transliterator::countAvailableVariants(source, target); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2080 Transliterator::getAvailableVariant(k, source, target, variant); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2095 Transliterator *t = new TestTrans(IDS[i]); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2105 Transliterator::registerInstance(t); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2107 t = Transliterator::createInstance(IDS[i], UTRANS_FORWARD, status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2116 Transliterator::unregister(IDS[i]); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2117 t = Transliterator::createInstance(IDS[i], UTRANS_FORWARD, status); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2126 int32_t n = Transliterator::countAvailableIDs(); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2128 UnicodeString id = Transliterator::getAvailableID(i); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2135 n = Transliterator::countAvailableTargets("Any"); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2138 Transliterator::getAvailableTarget(i, "Any", t); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2143 n = Transliterator::countAvailableSources(); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2146 Transliterator::getAvailableSource(i, s); in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
2162 Transliterator *t = Transliterator::createInstance in TestCompoundInverse()
2185 Transliterator* t = Transliterator::createFromRules( in TestNFDChainRBT()
2289 Transliterator *t = Transliterator::createInstance("Null", UTRANS_FORWARD, pe, ec); in TestNullInverse()
2294 Transliterator *u = t->createInverse(ec); in TestNullInverse()
2314 Transliterator *t = Transliterator::createInstance(ID, UTRANS_FORWARD, pe, ec); in TestAliasInverseID()
2319 Transliterator *u = t->createInverse(ec); in TestAliasInverseID()
2342 Transliterator *t = Transliterator::createInstance(ID, UTRANS_FORWARD, pe, ec); in TestCompoundInverseID()
2347 Transliterator *u = t->createInverse(ec); in TestCompoundInverseID()
2371 Transliterator *t = Transliterator::createFromRules("<ID>", rule, UTRANS_FORWARD, pe, ec); in TestUndefinedVariable()
2422 LocalPointer<Transliterator> t; in TestCompoundFilterID()
2426 t.adoptInstead(Transliterator::createFromRules("ID", id, direction, pe, ec)); in TestCompoundFilterID()
2428 t.adoptInstead(Transliterator::createInstance(id, direction, pe, ec)); in TestCompoundFilterID()
2466 Transliterator *t = Transliterator::createInstance("Latin-Hiragana", UTRANS_FORWARD, pe, ec); in TestNewEngine()
2481 Transliterator *a = in TestNewEngine()
2482 Transliterator::createFromRules("a_to_A", "a > A;", UTRANS_FORWARD, pe, ec); in TestNewEngine()
2483 Transliterator *A = in TestNewEngine()
2484 Transliterator::createFromRules("A_to_b", "A > b;", UTRANS_FORWARD, pe, ec); in TestNewEngine()
2491 Transliterator* array[3]; in TestNewEngine()
2493 array[1] = Transliterator::createInstance("NFD", UTRANS_FORWARD, pe, ec); in TestNewEngine()
2564 Transliterator* t = Transliterator::createFromRules("ID", r, UTRANS_FORWARD, pe, ec); in TestQuantifiedSegment()
2582 t = Transliterator::createFromRules("ID", r, UTRANS_FORWARD, pe, ec); in TestQuantifiedSegment()
2724Transliterator* latinToDev=Transliterator::createInstance("Latin-Devanagari", UTRANS_FORWARD, pars… in TestDevanagariLatinRT()
2725Transliterator* devToLatin=Transliterator::createInstance("Devanagari-Latin", UTRANS_FORWARD, pars… in TestDevanagariLatinRT()
2772Transliterator* latinToDev=Transliterator::createInstance("Latin-Telugu", UTRANS_FORWARD, parseErr… in TestTeluguLatinRT()
2773Transliterator* devToLatin=Transliterator::createInstance("Telugu-Latin", UTRANS_FORWARD, parseErr… in TestTeluguLatinRT()
2832Transliterator* latinToDev=Transliterator::createInstance("Latin-Devanagari", UTRANS_FORWARD, pars… in TestSanskritLatinRT()
2833Transliterator* devToLatin=Transliterator::createInstance("Devanagari-Latin", UTRANS_FORWARD, pars… in TestSanskritLatinRT()
2898Transliterator* devToLatinToDev =Transliterator::createInstance("Devanagari-Latin;Latin-Devanagar… in TestCompoundLatinRT()
2899Transliterator* latinToDevToLatin=Transliterator::createInstance("Latin-Devanagari;Devanagari-Lati… in TestCompoundLatinRT()
2900Transliterator* devToTelToDev =Transliterator::createInstance("Devanagari-Telugu;Telugu-Devanag… in TestCompoundLatinRT()
2901Transliterator* latinToTelToLatin=Transliterator::createInstance("Latin-Telugu;Telugu-Latin", UTRA… in TestCompoundLatinRT()
2936Transliterator* trans = Transliterator::createInstance("Devanagari-Gurmukhi",UTRANS_FORWARD, parse… in TestGurmukhiDevanagari()
2968 Transliterator *t = Transliterator::createInstance("ru_RU-Latin", UTRANS_FORWARD, pe, ec); in TestLocaleInstantiation()
2977 t = Transliterator::createInstance("en-el", UTRANS_FORWARD, pe, ec); in TestLocaleInstantiation()
2993 Transliterator *t = Transliterator::createInstance("Title", UTRANS_FORWARD, pe, ec); in TestTitleAccents()
3020 Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_FORWARD, pe, ec); in TestLocaleResource()
3042 Transliterator *t = Transliterator::createFromRules("ID", rule, UTRANS_FORWARD, pe, ec); in TestParseError()
3061 delete Transliterator::createFromRules("ID", maskingRule, UTRANS_FORWARD, pe, ec); in TestParseError()
3080 Transliterator *t = Transliterator::createFromRules("ID", rule, UTRANS_FORWARD, pe, ec); in TestOutputSet()
3099 Transliterator *t = Transliterator::createFromRules("ID", rule, UTRANS_FORWARD, pe, ec); in TestVariableRange()
3117 Transliterator *t = Transliterator::createFromRules("ID", rule, UTRANS_FORWARD, pe, ec); in TestInvalidPostContext()
3168 Transliterator *t = in TestIDForms()
3169 Transliterator::createInstance(ID, UTRANS_FORWARD, pe, ec); in TestIDForms()
3179 Transliterator *u = t->createInverse(ec); in TestIDForms()
3204 void TransliteratorTest::checkRules(const UnicodeString& label, Transliterator& t2, in checkRules()
3257 LocalPointer<Transliterator> t2( in TestToRulesMark()
3258Transliterator::createFromRules("source-target", UnicodeString(testRules, -1, US_INV), UTRANS_FORW… in TestToRulesMark()
3259 LocalPointer<Transliterator> t3( in TestToRulesMark()
3260Transliterator::createFromRules("target-source", UnicodeString(testRules, -1, US_INV), UTRANS_REVE… in TestToRulesMark()
3280 Transliterator *t; in TestEscape()
3283 t = Transliterator::createInstance("Hex-Any", UTRANS_FORWARD, pe, ec); in TestEscape()
3294 t = Transliterator::createInstance("Any-Hex/C", UTRANS_FORWARD, pe, ec); in TestEscape()
3305 t = Transliterator::createInstance("Any-Hex/Java", UTRANS_FORWARD, pe, ec); in TestEscape()
3316 t = Transliterator::createInstance("Any-Hex/Perl", UTRANS_FORWARD, pe, ec); in TestEscape()
3333Transliterator* t = Transliterator::createFromRules("ID", rule, UTRANS_FORWARD,parseError,status); in TestAnchorMasking()
3375 Transliterator::getDisplayName(DATA[i], US, name); in TestDisplayName()
3384 Transliterator *t = Transliterator::createInstance(DATA[i], UTRANS_REVERSE, pe, ec); in TestDisplayName()
3390 name = Transliterator::getDisplayName(t->getID(), US, name); in TestDisplayName()
3472 Transliterator *t = Transliterator::createFromRules(registerRules[0+i], in TestSpecialCases()
3477 Transliterator::registerInstance(t); in TestSpecialCases()
3484 Transliterator *t = Transliterator::createInstance(name, UTRANS_FORWARD, pe, ec); in TestSpecialCases()
3522 Transliterator::unregister(registerRules[i]); in TestSpecialCases()
3567 static void _trans(Transliterator& t, const UnicodeString& src, in _trans()
3576 Transliterator *t = Transliterator::createInstance(id, UTRANS_FORWARD, pe, ec); in _trans()
3618 int32_t sources = Transliterator::countAvailableSources(); in TestIncrementalProgress()
3621 Transliterator::getAvailableSource(i, source); in TestIncrementalProgress()
3627 int32_t targets = Transliterator::countAvailableTargets(source); in TestIncrementalProgress()
3630 Transliterator::getAvailableTarget(j, source, target); in TestIncrementalProgress()
3631 int32_t variants = Transliterator::countAvailableVariants(source, target); in TestIncrementalProgress()
3637 Transliterator::getAvailableVariant(k, source, target, variant); in TestIncrementalProgress()
3640 Transliterator *t = Transliterator::createInstance(id, UTRANS_FORWARD, err, status); in TestIncrementalProgress()
3651 Transliterator *inv = t->createInverse(status); in TestIncrementalProgress()
3683 void TransliteratorTest::CheckIncrementalAux(const Transliterator* t, in CheckIncrementalAux()
3729 Transliterator *t = Transliterator::createFromRules("Test", rule, UTRANS_FORWARD, pe, ec); in TestFunction()
3755 Transliterator *t = Transliterator::createFromRules("Test", rule, UTRANS_FORWARD, pe, ec); in TestInvalidBackRef()
3756 Transliterator *t2 = Transliterator::createFromRules("Test2", rule2, UTRANS_FORWARD, pe, ec); in TestInvalidBackRef()
3786 Transliterator* t = Transliterator::createFromRules("Test", rule, UTRANS_FORWARD, pe, ec); in TestMulticharStringSet()
3805 t = Transliterator::createFromRules("Test", rule, UTRANS_FORWARD, pe, ec); in TestMulticharStringSet()
3820 Transliterator* _TUFF[4];
3823 static Transliterator* U_EXPORT2 _TUFFactory(const UnicodeString& /*ID*/, in _TUFFactory()
3824 Transliterator::Token context) { in _TUFFactory()
3828 static void _TUFReg(const UnicodeString& ID, Transliterator* t, int32_t n) { in _TUFReg()
3831 Transliterator::registerFactory(ID, _TUFFactory, Transliterator::integerToken(n)); in _TUFReg()
3836 Transliterator::unregister(*_TUFID[n]); in _TUFUnreg()
3851 Transliterator* t; in TestUserFunction()
3862 t = Transliterator::createFromRules("gif", in TestUserFunction()
3871 t = Transliterator::createFromRules("RemoveCurly", in TestUserFunction()
3882 t = Transliterator::createFromRules("hex2", in TestUserFunction()
3891 t = Transliterator::createInstance("Any-hex2", UTRANS_FORWARD, ec); in TestUserFunction()
3900 t = Transliterator::createFromRules("gif2", in TestUserFunction()
3909 t = Transliterator::createInstance("Any-gif2", UTRANS_FORWARD, ec); in TestUserFunction()
3919 t = Transliterator::createFromRules("test", in TestUserFunction()
3942 Transliterator* anyLatin = in TestAnyX()
3943 Transliterator::createInstance("Any-Latin", UTRANS_FORWARD, parseError, status); in TestAnyX()
3996 Transliterator* anyLatin = in TestAny()
3997 Transliterator::createInstance("Any-Latin", UTRANS_FORWARD, parseError, status); in TestAny()
4029 Transliterator* t = Transliterator::createFromRules("test", r, UTRANS_FORWARD, pe, ec); in TestSourceTargetSet()
4066Transliterator* t = Transliterator::createFromRules("test", CharsToUnicodeString(r), UTRANS_FORWAR… in TestPatternWhiteSpace()
4124 Transliterator* t = Transliterator::createInstance(newId,UTRANS_FORWARD,pe,status); in TestAllCodepoints()
4131 Transliterator* t = Transliterator::createInstance(newAbbrId,UTRANS_FORWARD,pe,status); in TestAllCodepoints()
4146 Transliterator* t = Transliterator::createInstance(id, UTRANS_FORWARD, ec); \
4161 Transliterator* t = Transliterator::createFromRules("_", rule, UTRANS_FORWARD, pe, ec); \
4443Transliterator* reversed = Transliterator::createFromRules("Reversed", UnicodeString(BEGIN_END_RU… in TestBeginEnd()
4478Transliterator* t = Transliterator::createFromRules("--", UnicodeString(BEGIN_END_TEST_CASES[i], -… in TestBeginEndToRules()
4485Transliterator* t2 = Transliterator::createFromRules((UnicodeString)"Test case #" + (i / 3), rules, in TestBeginEndToRules()
4504Transliterator* reversed = Transliterator::createFromRules("Reversed", UnicodeString(BEGIN_END_RUL… in TestBeginEndToRules()
4511Transliterator* reversed2 = Transliterator::createFromRules("Reversed", rules, UTRANS_FORWARD, in TestBeginEndToRules()
4532 Transliterator::registerAlias(shortID, longID); in TestRegisterAlias()
4535 Transliterator* t1 = Transliterator::createInstance(longID, UTRANS_FORWARD, err); in TestRegisterAlias()
4538 Transliterator::unregister(shortID); in TestRegisterAlias()
4541 Transliterator* t2 = Transliterator::createInstance(reallyShortID, UTRANS_FORWARD, err); in TestRegisterAlias()
4545 Transliterator::unregister(shortID); in TestRegisterAlias()
4564 Transliterator::unregister(shortID); in TestRegisterAlias()
4566 t1 = Transliterator::createInstance(shortID, UTRANS_FORWARD, err); in TestRegisterAlias()
4576 Transliterator::registerAlias(fakeID, realID); in TestRegisterAlias()
4579 t1 = Transliterator::createInstance(realID, UTRANS_FORWARD, err); in TestRegisterAlias()
4582 Transliterator::unregister(realID); in TestRegisterAlias()
4585 t2 = Transliterator::createInstance(fakeID, UTRANS_FORWARD, err); in TestRegisterAlias()
4589 Transliterator::unregister(realID); in TestRegisterAlias()
4600 Transliterator::unregister(fakeID); in TestRegisterAlias()
4632Transliterator* hf = Transliterator::createInstance("Halfwidth-Fullwidth", UTRANS_FORWARD, parseEr… in TestHalfwidthFullwidth()
4633Transliterator* fh = Transliterator::createInstance("Fullwidth-Halfwidth", UTRANS_FORWARD, parseEr… in TestHalfwidthFullwidth()
4683Transliterator* tr = Transliterator::createInstance("Any-Latin", UTRANS_FORWARD, parseError, statu… in TestThai()
4766 Transliterator *t = Transliterator::createInstance(id, UTRANS_FORWARD, pe, ec); in expectT()
4802Transliterator* t = Transliterator::createFromRules(id, rules, UTRANS_FORWARD, parseError, status); in expect()
4811 void TransliteratorTest::expect(const Transliterator& t, in expect()
4814 const Transliterator& reverseTransliterator) { in expect()
4819 void TransliteratorTest::expect(const Transliterator& t, in expect()