Lines Matching refs:rules
135 , rules(0) in NFRuleSet()
206 rules.deleteAll(); in parseRules()
219 NFRule::makeRules(currentDescription, this, rules.last(), owner, rules, status); in parseRules()
232 int32_t rulesSize = rules.size(); in parseRules()
234 NFRule* rule = rules[i]; in parseRules()
347 if (rules.size() == rhs.rules.size() && in operator ==()
359 for (uint32_t i = 0; i < rules.size(); ++i) { in operator ==()
360 if (*rules[i] != *rhs.rules[i]) { in operator ==()
371 for (uint32_t i = 0; i < rules.size(); ++i) { in setDecimalFormatSymbols()
372 rules[i]->setDecimalFormatSymbols(newSymbols, status); in setDecimalFormatSymbols()
518 int32_t hi = rules.size(); in findNormalRule()
524 if (rules[mid]->getBaseValue() == number) { in findNormalRule()
525 return rules[mid]; in findNormalRule()
527 else if (rules[mid]->getBaseValue() > number) { in findNormalRule()
538 NFRule *result = rules[hi - 1]; in findNormalRule()
549 result = rules[hi - 2]; in findNormalRule()
584 int64_t leastCommonMultiple = rules[0]->getBaseValue(); in findFractionRuleSetRule()
587 for (uint32_t i = 1; i < rules.size(); ++i) { in findFractionRuleSetRule()
588 leastCommonMultiple = util_lcm(leastCommonMultiple, rules[i]->getBaseValue()); in findFractionRuleSetRule()
596 for (uint32_t i = 0; i < rules.size(); ++i) { in findFractionRuleSetRule()
603 tempDifference = numerator * rules[i]->getBaseValue() % leastCommonMultiple; in findFractionRuleSetRule()
632 if ((unsigned)(winner + 1) < rules.size() && in findFractionRuleSetRule()
633 rules[winner + 1]->getBaseValue() == rules[winner]->getBaseValue()) { in findFractionRuleSetRule()
634 double n = ((double)rules[winner]->getBaseValue()) * number; in findFractionRuleSetRule()
641 return rules[winner]; in findFractionRuleSetRule()
743 for (int32_t i = rules.size(); --i >= 0 && highWaterMark.getIndex() < text.length();) { in parse()
744 if ((!fIsFractionRuleSet) && (rules[i]->getBaseValue() >= ub)) { in parse()
748 … UBool success = rules[i]->doParse(text, workingPos, fIsFractionRuleSet, upperBound, tempResult); in parse()
778 for (i = 0; i < rules.size(); i++) { in appendRules()
779 rules[i]->_appendRuleText(result); in appendRules()