Home
last modified time | relevance | path

Searched refs:NFRuleSet (Results 1 – 21 of 21) sorted by relevance

/external/icu/icu4c/source/i18n/
Dnfrs.h33 class NFRuleSet : public UMemory {
35NFRuleSet(RuleBasedNumberFormat *owner, UnicodeString* descriptions, int32_t index, UErrorCode& st…
41 ~NFRuleSet();
43 UBool operator==(const NFRuleSet& rhs) const;
44 UBool operator!=(const NFRuleSet& rhs) const { return !operator==(rhs); }
82 NFRuleSet(const NFRuleSet &other); // forbid copying of this class
83 NFRuleSet &operator=(const NFRuleSet &other); // forbid copying of this class
Dnfrs.cpp135 NFRuleSet::NFRuleSet(RuleBasedNumberFormat *_owner, UnicodeString* descriptions, int32_t index, UEr… in NFRuleSet() function in NFRuleSet
196 NFRuleSet::parseRules(UnicodeString& description, UErrorCode& status) in parseRules()
268 void NFRuleSet::setNonNumericalRule(NFRule *rule) { in setNonNumericalRule()
300 void NFRuleSet::setBestFractionRule(int32_t originalIndex, NFRule *newRule, UBool rememberRule) { in setBestFractionRule()
320 NFRuleSet::~NFRuleSet() in ~NFRuleSet()
347 NFRuleSet::operator==(const NFRuleSet& rhs) const in operator ==()
372 NFRuleSet::setDecimalFormatSymbols(const DecimalFormatSymbols &newSymbols, UErrorCode& status) { in setDecimalFormatSymbols()
399 NFRuleSet::format(int64_t number, UnicodeString& toAppendTo, int32_t pos, int32_t recursionCount, U… in format()
413 NFRuleSet::format(double number, UnicodeString& toAppendTo, int32_t pos, int32_t recursionCount, UE… in format()
427 NFRuleSet::findDoubleRule(double number) const in findDoubleRule()
[all …]
Dnfsubs.h36 const NFRuleSet* ruleSet;
41 const NFRuleSet* ruleSet,
49 const NFRuleSet* getRuleSet() const { return ruleSet; } in getRuleSet()
61 const NFRuleSet* ruleSet,
Dnfrule.h27 class NFRuleSet; variable
49 NFRuleSet* ruleSet,
91 …void extractSubstitutions(const NFRuleSet* ruleSet, const UnicodeString &ruleText, const NFRule* p…
92 …NFSubstitution* extractSubstitution(const NFRuleSet* ruleSet, const NFRule* predecessor, UErrorCod…
Drbnf.cpp921 NFRuleSet** p = ruleSets; in operator ==()
922 NFRuleSet** q = rhs.ruleSets; in operator ==()
944 for (NFRuleSet** p = ruleSets; *p; ++p) { in getRules()
960 for (NFRuleSet** p = ruleSets; *p; ++p) { in getRuleSetName()
961 NFRuleSet* rs = *p; in getRuleSetName()
982 for (NFRuleSet** p = ruleSets; *p; ++p) { in getNumberOfRuleSetNames()
1066 NFRuleSet*
1070 for (NFRuleSet** p = ruleSets; *p; ++p) { in findRuleSet()
1071 NFRuleSet* rs = *p; in findRuleSet()
1138 NFRuleSet *rs = findRuleSet(ruleSetName, status); in format()
[all …]
Dnfsubs.cpp52 const NFRuleSet* ruleset,
77 const NFRuleSet* _ruleSet, in MultiplierSubstitution()
135 const NFRuleSet* ruleSet,
186 const NFRuleSet* _ruleSet, in IntegralPartSubstitution()
211 const NFRuleSet* ruleSet,
244 const NFRuleSet* _ruleSet, in AbsoluteValueSubstitution()
277 NFRuleSet* _ruleSet, in NumeratorSubstitution()
318 const NFRuleSet* ruleSet, in makeSubstitution()
404 const NFRuleSet* _ruleSet, in NFSubstitution()
776 const NFRuleSet* _ruleSet, in SameValueSubstitution()
[all …]
Dnfrule.cpp108 NFRuleSet *owner, in makeRules()
412 NFRule::extractSubstitutions(const NFRuleSet* ruleSet, in extractSubstitutions()
467 NFRule::extractSubstitution(const NFRuleSet* ruleSet, in extractSubstitution()
/external/icu/icu4c/source/i18n/unicode/
Drbnf.h44 class NFRuleSet; variable
1016 void format(double number, NFRuleSet& ruleSet);
1017 NFRuleSet* findRuleSet(const UnicodeString& name, UErrorCode& status) const;
1022 friend class NFRuleSet; variable
1025 inline NFRuleSet * getDefaultRuleSet() const;
1037 NFRuleSet **ruleSets;
1040 NFRuleSet *defaultRuleSet;
1067 inline NFRuleSet*
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFRuleSet.java27 final class NFRuleSet { class
104 …public NFRuleSet(RuleBasedNumberFormat owner, String[] descriptions, int index) throws IllegalArgu… in NFRuleSet() method in NFRuleSet
238 nonNumericalRules[NFRuleSet.NEGATIVE_RULE_INDEX] = rule; in setNonNumericalRule()
241 setBestFractionRule(NFRuleSet.IMPROPER_FRACTION_RULE_INDEX, rule, true); in setNonNumericalRule()
244 setBestFractionRule(NFRuleSet.PROPER_FRACTION_RULE_INDEX, rule, true); in setNonNumericalRule()
247 setBestFractionRule(NFRuleSet.MASTER_RULE_INDEX, rule, true); in setNonNumericalRule()
250 nonNumericalRules[NFRuleSet.INFINITY_RULE_INDEX] = rule; in setNonNumericalRule()
253 nonNumericalRules[NFRuleSet.NAN_RULE_INDEX] = rule; in setNonNumericalRule()
308 if (!(that instanceof NFRuleSet)) { in equals()
312 NFRuleSet that2 = (NFRuleSet)that; in equals()
DRuleBasedNumberFormat.java580 private transient NFRuleSet[] ruleSets = null;
585 private transient Map<String, NFRuleSet> ruleSetsMap = null;
591 private transient NFRuleSet defaultRuleSet = null;
969 for (NFRuleSet ruleSet : ruleSets) { in toString()
1501 for (NFRuleSet ruleSet : ruleSets) { in setDecimalFormatSymbols()
1577 NFRuleSet getDefaultRuleSet() { in getDefaultRuleSet()
1733 ruleSets = new NFRuleSet[numRuleSets]; in init()
1734 ruleSetsMap = new HashMap<String, NFRuleSet>(numRuleSets * 2 + 1); in init()
1759 NFRuleSet ruleSet = new NFRuleSet(this, ruleSetDescriptions, curRuleSet); in init()
1948 private String format(double number, NFRuleSet ruleSet) { in format()
[all …]
DNFSubstitution.java37 final NFRuleSet ruleSet;
70 NFRuleSet ruleSet, in makeSubstitution()
160 NFRuleSet ruleSet, in NFSubstitution()
549 NFRuleSet ruleSet, in SameValueSubstitution()
650 NFRuleSet ruleSet, in MultiplierSubstitution()
804 NFRuleSet ruleSet, in ModulusSubstitution()
1041 NFRuleSet ruleSet, in IntegralPartSubstitution()
1145 NFRuleSet ruleSet, in FractionalPartSubstitution()
1345 NFRuleSet ruleSet, in AbsoluteValueSubstitution()
1447 NFRuleSet ruleSet, in NumeratorSubstitution()
DRBNFPostProcessor.java30 void process(StringBuilder output, NFRuleSet ruleSet); in process()
DRBNFChinesePostProcessor.java35 public void process(StringBuilder buf, NFRuleSet ruleSet) { in process()
DNFRule.java132 NFRuleSet owner, in makeRules()
414 private void extractSubstitutions(NFRuleSet owner, in extractSubstitutions()
461 private NFSubstitution extractSubstitution(NFRuleSet owner, in extractSubstitution()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFRuleSet.java28 final class NFRuleSet { class
105 …public NFRuleSet(RuleBasedNumberFormat owner, String[] descriptions, int index) throws IllegalArgu… in NFRuleSet() method in NFRuleSet
239 nonNumericalRules[NFRuleSet.NEGATIVE_RULE_INDEX] = rule; in setNonNumericalRule()
242 setBestFractionRule(NFRuleSet.IMPROPER_FRACTION_RULE_INDEX, rule, true); in setNonNumericalRule()
245 setBestFractionRule(NFRuleSet.PROPER_FRACTION_RULE_INDEX, rule, true); in setNonNumericalRule()
248 setBestFractionRule(NFRuleSet.MASTER_RULE_INDEX, rule, true); in setNonNumericalRule()
251 nonNumericalRules[NFRuleSet.INFINITY_RULE_INDEX] = rule; in setNonNumericalRule()
254 nonNumericalRules[NFRuleSet.NAN_RULE_INDEX] = rule; in setNonNumericalRule()
309 if (!(that instanceof NFRuleSet)) { in equals()
313 NFRuleSet that2 = (NFRuleSet)that; in equals()
DRuleBasedNumberFormat.java577 private transient NFRuleSet[] ruleSets = null;
582 private transient Map<String, NFRuleSet> ruleSetsMap = null;
588 private transient NFRuleSet defaultRuleSet = null;
955 for (NFRuleSet ruleSet : ruleSets) { in toString()
1466 for (NFRuleSet ruleSet : ruleSets) { in setDecimalFormatSymbols()
1539 NFRuleSet getDefaultRuleSet() { in getDefaultRuleSet()
1695 ruleSets = new NFRuleSet[numRuleSets]; in init()
1696 ruleSetsMap = new HashMap<String, NFRuleSet>(numRuleSets * 2 + 1); in init()
1721 NFRuleSet ruleSet = new NFRuleSet(this, ruleSetDescriptions, curRuleSet); in init()
1910 private String format(double number, NFRuleSet ruleSet) { in format()
[all …]
DNFSubstitution.java38 final NFRuleSet ruleSet;
71 NFRuleSet ruleSet, in makeSubstitution()
161 NFRuleSet ruleSet, in NFSubstitution()
550 NFRuleSet ruleSet, in SameValueSubstitution()
651 NFRuleSet ruleSet, in MultiplierSubstitution()
805 NFRuleSet ruleSet, in ModulusSubstitution()
1042 NFRuleSet ruleSet, in IntegralPartSubstitution()
1146 NFRuleSet ruleSet, in FractionalPartSubstitution()
1346 NFRuleSet ruleSet, in AbsoluteValueSubstitution()
1448 NFRuleSet ruleSet, in NumeratorSubstitution()
DRBNFPostProcessor.java31 void process(StringBuilder output, NFRuleSet ruleSet); in process()
DRBNFChinesePostProcessor.java36 public void process(StringBuilder buf, NFRuleSet ruleSet) { in process()
DNFRule.java133 NFRuleSet owner, in makeRules()
415 private void extractSubstitutions(NFRuleSet owner, in extractSubstitutions()
462 private NFSubstitution extractSubstitution(NFRuleSet owner, in extractSubstitution()
/external/icu/icu4j/
Dcoverage-exclusion.txt718 com/ibm/icu/text/NFRuleSet#hashCode:()I