Home | History | Annotate | Download | only in cintltst

Lines Matching defs:rule

269         log_err_status(status, "ERROR: in creation of rule based collator: %s\n", myErrorName(status));
1311 /* Funky fa rule */
1377 UChar rule[2048];
1438 log_verbose("Testing rule: %s\n", rulesToTest[i]);
1439 ruleLen = u_unescape(rulesToTest[i], rule, 2048);
1441 coll = ucol_openRules(rule, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status);
1447 log_err_status(status, "Could not test rule: %s: '%s'\n", u_errorName(status), rulesToTest[i]);
1457 UChar rule[2048];
1464 u_uastrcpy(rule, "&Z < A, B, C;c < d");
1465 ruleLen = u_strlen(rule);
1473 coll = ucol_openRules(rule, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status);
1581 const char *rule = "&\\u4e00 < a <<< A < b <<< B";
1588 ruleLen = u_unescape(rule, t1, 256);
2019 log_verbose("testing rule %s, expected to be %s\n", tests[i].rules, tests[i].expectedRules);
2082 log_verbose("testing rule %s, expected to be %s\n", rules[i], expectedRules[i]);
2145 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", myErrorName(status));
2165 log_err("ERROR: in creation of rule based collator: %s\n", myErrorName(status));
2695 UChar rule[256] = {0};
2702 log_verbose("Rule %s for testing\n", testrules[i]);
2703 rlen = u_unescape(testrules[i], rule, 32);
2704 coll = ucol_openRules(rule, rlen, UCOL_ON, UCOL_TERTIARY,NULL, &status);
2742 rlen = u_unescape("& a < b < c < ch < d & c = ch / h", rule, 256);
2743 coll = ucol_openRules(rule, rlen, UCOL_ON, UCOL_TERTIARY,NULL, &status);
2765 rlen = u_unescape(testrules3[i], rule, 32);
2766 coll1 = ucol_openRules(rule, rlen, UCOL_ON, UCOL_TERTIARY,NULL, &status);
2767 rlen = u_unescape(testrules3[i + 1], rule, 32);
2768 coll2 = ucol_openRules(rule, rlen, UCOL_ON, UCOL_TERTIARY,NULL, &status);
2822 UChar rule[256] = {0};
2828 log_verbose("Rule %s for testing\n", testrules[i]);
2829 rlen = u_unescape(testrules[i], rule, 32);
2830 coll = ucol_openRules(rule, rlen, UCOL_ON, UCOL_TERTIARY,NULL, &status);
2849 static const char *rule = "&a=b/c&d=c/e";
2853 genericRulesStarter(rule, tlimit01, sizeof(tlimit01)/sizeof(tlimit01[0]));
2854 genericRulesStarter(rule, tlimit02, sizeof(tlimit02)/sizeof(tlimit02[0]));
2858 static const char *rule = "&a<<<c/e&g<<<eh";
2862 genericRulesStarter(rule, tlimit01, sizeof(tlimit01)/sizeof(tlimit01[0]));
2863 genericRulesStarter(rule, tlimit02, sizeof(tlimit02)/sizeof(tlimit02[0]));
2867 static const char *rule = "&a<<<\\u0000\\u0302";
2875 genericRulesStarterWithOptions(rule, tlimit01, 2, att, valOn, 1);
2876 genericRulesStarterWithOptions(rule, tlimit02, 2, att, valOn, 1);
2877 genericRulesStarterWithOptions(rule, tlimit01, 2, att, valOff, 1);
2878 genericRulesStarterWithOptions(rule, tlimit02, 2, att, valOff, 1);
2883 static const char *rule = "&a<<<\\u0000\\u0302";
2891 genericRulesStarterWithOptions(rule, tlimit01, 2, att, valOn, 1);
2892 genericRulesStarterWithOptions(rule, tlimit02, 2, att, valOn, 1);
2893 genericRulesStarterWithOptions(rule, tlimit01, 2, att, valOff, 1);
2894 genericRulesStarterWithOptions(rule, tlimit02, 2, att, valOff, 1);
2900 static const char *rule = "&\\u2010<x<[variable top]=z";
2910 genericRulesStarterWithOptions(rule, tlimit03, sizeof(tlimit03)/sizeof(tlimit03[0]), att, valOn, sizeof(att)/sizeof(att[0]));
2911 genericRulesStarterWithOptions(rule, tlimit01, sizeof(tlimit01)/sizeof(tlimit01[0]), att, valOn, sizeof(att)/sizeof(att[0]));
2912 genericRulesStarterWithOptions(rule, tlimit02, sizeof(tlimit02)/sizeof(tlimit02[0]), att, valOn, sizeof(att)/sizeof(att[0]));
2913 genericRulesStarterWithOptions(rule, tlimit01, sizeof(tlimit01)/sizeof(tlimit01[0]), att, valOff, sizeof(att)/sizeof(att[0]));
2914 genericRulesStarterWithOptions(rule, tlimit02, sizeof(tlimit02)/sizeof(tlimit02[0]), att, valOff, sizeof(att)/sizeof(att[0]));
2919 static const char *rule = "&c<ch<<<cH<<<Ch<<<CH";
2926 genericRulesStarterWithOptions(rule, tlimit01, sizeof(tlimit01)/sizeof(tlimit01[0]), att, valOn, sizeof(att)/sizeof(att[0]));
2927 genericRulesStarterWithOptions(rule, tlimit02, sizeof(tlimit02)/sizeof(tlimit02[0]), att, valOn, sizeof(att)/sizeof(att[0]));
2928 /*genericRulesStarterWithOptions(rule, tlimit01, sizeof(tlimit01)/sizeof(tlimit01[0]), att, valOff, sizeof(att)/sizeof(att[0]));*/
2929 /*genericRulesStarterWithOptions(rule, tlimit02, sizeof(tlimit02)/sizeof(tlimit02[0]), att, valOff, sizeof(att)/sizeof(att[0]));*/
3290 static const char *rule =
3297 genericRulesStarter(rule, test, 14);
3489 const char* rule = "&\\ud9b0\\udc70=\\ud9b0\\udc71";
3494 genericRulesStarterWithResult(rule, test, sizeof(test)/sizeof(test[0]), UCOL_EQUAL);
4789 const static char* rule = "&a <<< '\\u0000'";
4799 rlen = u_unescape(rule, rlz, RULE_BUFFER_LEN);
4831 const char* rule = "&[first tertiary ignorable]=A=a";
4841 genericRulesStarterWithOptionsAndResult(rule, tests2, sizeof(tests2)/sizeof(tests2[0]), att2, attVals2, sizeof(att2)/sizeof(att2[0]), UCOL_EQUAL);
4924 UChar rule[256]={0x26, 0x62, 0x3c, 0x1FF3, 0}; /* &a<0x1FF3-omega with Ypogegrammeni*/
5017 ruleLen = u_strlen(rule);
5018 coll = ucol_openRules(rule, ruleLen, UCOL_OFF, UCOL_TERTIARY, NULL,&status);
5526 * @param str_rules Array of rules. These rules should be specifying the same rule in different formats.
5535 UChar rule[500];
5543 length = u_unescape(str_rules[rule_no], rule, 500);
5545 log_err("ERROR: The rule cannot be unescaped: %s\n");
5548 myCollation = ucol_openRules(rule, length, UCOL_ON, UCOL_TERTIARY, &parse_error, &status);
5550 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", myErrorName(status));
5816 UChar rule[500];
5826 length = u_unescape(invalidRules[rule_no], rule, 500);
5828 log_err("ERROR: The rule cannot be unescaped: %s\n");
5831 myCollation = ucol_openRules(rule, length, UCOL_ON, UCOL_TERTIARY, &parse_error, &status);
5868 log_verbose("Testing the &[before 1] rule with [reorder grek]\n");
5872 log_verbose("Testing the &[before 1] rule with [scriptReorder grek]\n");
5877 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", myErrorName(status));
5881 /* check collation results - before rule applied but not script reordering */
5891 log_err("Different lead byte for sort keys using before rule and before script reordering. base character lead byte = %02x, before character lead byte = %02x\n", baseKey[0], beforeKey[0]);
5901 /* check collation results - before rule applied and after script reordering */
6663 "&a<b", /* Dummy rule. */
6714 /* TODO: Fix ICU ticket #8962 by uncommenting the following test after fi.txt is updated with the following rule:
6737 "&a<b", /* Dummy rule. */
6811 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", myErrorName(status));
6892 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", myErrorName(status));
6899 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", myErrorName(status));
6916 log_err_status(status, "ERROR: in creation of rule based collator: %s\n", myErrorName(status));