Lines Matching defs:rules
509 // Open a break iterator from char * rules. Take care of conversion
510 // of the rules and error checking.
512 static UBreakIterator * testOpenRules(char *rules) {
519 ruleSourceU = toUChar(rules, &strCleanUp);
521 bi = ubrk_openRules(ruleSourceU, -1, /* The rules */
536 * a set of source rules.
539 /* Rules will keep together any run of letters not including 'a', OR
543 char rules[] = "abc{666}/def;\n [\\p{L} - [a]]* {2}; . {1};";
556 UBreakIterator *bi = testOpenRules(rules);
590 * TestBreakIteratorRuleError - Try to create a BI from rules with syntax errors,
593 char rules[] = " # This is a rule comment on line 1\n"
602 uRules = toUChar(rules, &freeHook);
603 bi = ubrk_openRules(uRules, -1, /* The rules */
624 UChar rules[RULE_STRING_LENGTH];
634 u_uastrncpy(rules, "[A-N]{100}; \n"
643 bi = ubrk_openRules(rules, -1, testString, -1, NULL, &status);