Lines Matching refs:rules
59 rules(NULL), baseData(base), settings(NULL), in CollationRuleParser()
89 rules = &ruleString; in parse()
92 while(ruleIndex < rules->length()) { in parse()
93 UChar c = rules->charAt(ruleIndex); in parse()
134 if(ruleIndex < rules->length() && rules->charAt(ruleIndex) == 0x23) { in parseRuleChain()
177 if(rules->compare(i, BEFORE_LENGTH, BEFORE, 0, BEFORE_LENGTH) == 0 && in parseResetAndPosition()
178 (j = i + BEFORE_LENGTH) < rules->length() && in parseResetAndPosition()
179 PatternProps::isWhiteSpace(rules->charAt(j)) && in parseResetAndPosition()
180 ((j = skipWhiteSpace(j + 1)) + 1) < rules->length() && in parseResetAndPosition()
181 0x31 <= (c = rules->charAt(j)) && c <= 0x33 && in parseResetAndPosition()
182 rules->charAt(j + 1) == 0x5d) { in parseResetAndPosition()
189 if(i >= rules->length()) { in parseResetAndPosition()
194 if(rules->charAt(i) == 0x5b) { // '[' in parseResetAndPosition()
209 if(ruleIndex >= rules->length()) { return UCOL_DEFAULT; } in parseRelationOperator()
212 UChar c = rules->charAt(i++); in parseRelationOperator()
215 if(i < rules->length() && rules->charAt(i) == 0x3c) { // << in parseRelationOperator()
217 if(i < rules->length() && rules->charAt(i) == 0x3c) { // <<< in parseRelationOperator()
219 if(i < rules->length() && rules->charAt(i) == 0x3c) { // <<<< in parseRelationOperator()
231 if(i < rules->length() && rules->charAt(i) == 0x2a) { // '*' in parseRelationOperator()
244 if(i < rules->length() && rules->charAt(i) == 0x2a) { // '*' in parseRelationOperator()
263 UChar next = (i < rules->length()) ? rules->charAt(i) : 0; in parseRelationStrings()
268 next = (i < rules->length()) ? rules->charAt(i) : 0; in parseRelationStrings()
313 if(i >= rules->length() || rules->charAt(i) != 0x2d) { // '-' in parseStarredCharacters()
372 while(i < rules->length()) { in parseString()
373 UChar32 c = rules->charAt(i++); in parseString()
376 if(i < rules->length() && rules->charAt(i) == 0x27) { in parseString()
384 if(i == rules->length()) { in parseString()
388 c = rules->charAt(i++); in parseString()
390 if(i < rules->length() && rules->charAt(i) == 0x27) { in parseString()
401 if(i == rules->length()) { in parseString()
405 c = rules->char32At(i); in parseString()
462 if(j > i && rules->charAt(j) == 0x5d && !raw.isEmpty()) { // words end with ] in parseSpecialPosition()
492 if(rules->charAt(j) == 0x5d) { // words end with ] in parseSetting()
649 const UnicodeString *outerRules = rules; in parseSetting()
657 rules = outerRules; in parseSetting()
662 } else if(rules->charAt(j) == 0x5b) { // words end with [ in parseSetting()
750 if(j == rules->length()) { in parseUnicodeSet()
754 UChar c = rules->charAt(j++); in parseUnicodeSet()
761 set.applyPattern(rules->tempSubStringBetween(i, j), errorCode); in parseUnicodeSet()
768 if(j == rules->length() || rules->charAt(j) != 0x5d) { in parseUnicodeSet()
781 if(i >= rules->length()) { return 0; } in readWords()
782 UChar c = rules->charAt(i); in readWords()
803 while(i < rules->length()) { in skipComment()
804 UChar c = rules->charAt(i++); in skipComment()
840 } else if(start > 0 && U16_IS_TRAIL(rules->charAt(start))) { in setErrorContext()
844 rules->extract(start, length, parseError->preContext); in setErrorContext()
848 length = rules->length() - ruleIndex; in setErrorContext()
851 if(U16_IS_LEAD(rules->charAt(ruleIndex + length - 1))) { in setErrorContext()
855 rules->extract(ruleIndex, length, parseError->postContext); in setErrorContext()
868 while(i < rules->length() && PatternProps::isWhiteSpace(rules->charAt(i))) { in skipWhiteSpace()