Home | History | Annotate | Download | only in intltest

Lines Matching defs:rules

259             UnicodeString rules;
260 t->toRules(rules, TRUE);
262 rules, UTRANS_FORWARD, parseError,status);
265 ".createFromRules() => bad rules" +
270 ", rules: " + prettify(rules, TRUE));
295 /* Example: rules 1. ab>x|y
308 /* Another set of rules:
378 UnicodeString RULES =
410 Transliterator *fwd = Transliterator::createFromRules("<ID>", RULES,
412 Transliterator *rev = Transliterator::createFromRules("<ID>", RULES,
500 UnicodeString RULES("t>|y;"
518 Transliterator *t = Transliterator::createFromRules("<ID>", RULES, UTRANS_FORWARD, parseError, status);
735 // Each item is <rules>, <input>, <expected output>
788 UnicodeString rules(
800 Transliterator *mini = Transliterator::createFromRules("mini", rules, UTRANS_REVERSE, parseError, status);
907 // Each item is <rules>, <input>, <expected output>
939 // Each item is <rules>, <input>, <expected output>
972 // Each item is <rules>, <input>, <expected output>
1013 // Each item is <rules>, <input>, <expected output>
1503 * Test compound RBT rules.
1738 UnicodeString rules, escapedRules;
1739 t->toRules(rules, FALSE);
1743 if (rules == expRules) {
1745 " => " + rules);
1748 " => " + rules + ", exp " + expRules);
3129 logln((UnicodeString)"GENERATED RULES: " + rules2);
3252 ".createFromRules() => bad rules" +
3257 ", rules: " + prettify(rule, TRUE));
3391 dataerrln("Fails: Unable to create the transliterator from rules. - %s", u_errorName(status));
3915 // Rules
3959 // Rules
4301 // rules input expected output
4370 // instantiating a Transliterator from the rules and running the test against it, we instantiate
4371 // a Transliterator from the rules, do toRules() on it, instantiate a Transliterator from
4372 // the resulting set of rules, and make sure that the generated rule set is semantically equivalent
4382 UnicodeString rules;
4383 t->toRules(rules, TRUE);
4384 Transliterator* t2 = Transliterator::createFromRules((UnicodeString)"Test case #" + (i / 3), rules,
4387 reportParseError(UnicodeString("FAIL: Couldn't create transliterator from generated rules"),
4408 UnicodeString rules;
4409 reversed->toRules(rules, FALSE);
4410 Transliterator* reversed2 = Transliterator::createFromRules("Reversed", rules, UTRANS_FORWARD,
4413 reportParseError(UnicodeString("FAIL: Couldn't create reversed transliterator from generated rules"),
4685 void TransliteratorTest::expect(const UnicodeString& rules,
4689 expect("<ID>", rules, source, expectedResult, pos);
4693 const UnicodeString& rules,
4699 Transliterator* t = Transliterator::createFromRules(id, rules, UTRANS_FORWARD, parseError, status);
4701 reportParseError(UnicodeString("Couldn't create transliterator from ") + rules, parseError, status);