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.cpp136 NFRuleSet::NFRuleSet(RuleBasedNumberFormat *_owner, UnicodeString* descriptions, int32_t index, UEr… in NFRuleSet() function in NFRuleSet
197 NFRuleSet::parseRules(UnicodeString& description, UErrorCode& status) in parseRules()
269 void NFRuleSet::setNonNumericalRule(NFRule *rule) { in setNonNumericalRule()
301 void NFRuleSet::setBestFractionRule(int32_t originalIndex, NFRule *newRule, UBool rememberRule) { in setBestFractionRule()
321 NFRuleSet::~NFRuleSet() in ~NFRuleSet()
348 NFRuleSet::operator==(const NFRuleSet& rhs) const in operator ==()
373 NFRuleSet::setDecimalFormatSymbols(const DecimalFormatSymbols &newSymbols, UErrorCode& status) { in setDecimalFormatSymbols()
400 NFRuleSet::format(int64_t number, UnicodeString& toAppendTo, int32_t pos, int32_t recursionCount, U… in format()
414 NFRuleSet::format(double number, UnicodeString& toAppendTo, int32_t pos, int32_t recursionCount, UE… in format()
428 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,
Dnfsubs.cpp56 const NFRuleSet* ruleset,
80 const NFRuleSet* _ruleSet, in MultiplierSubstitution()
135 const NFRuleSet* ruleSet,
186 const NFRuleSet* _ruleSet, in IntegralPartSubstitution()
211 const NFRuleSet* ruleSet,
245 const NFRuleSet* _ruleSet, in AbsoluteValueSubstitution()
278 NFRuleSet* _ruleSet, in NumeratorSubstitution()
320 const NFRuleSet* ruleSet, in makeSubstitution()
406 const NFRuleSet* _ruleSet, in NFSubstitution()
794 const NFRuleSet* _ruleSet, in SameValueSubstitution()
[all …]
Dnfrule.h26 class NFRuleSet; variable
48 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.cpp953 NFRuleSet** p = fRuleSets; in operator ==()
954 NFRuleSet** q = rhs.fRuleSets; in operator ==()
976 for (NFRuleSet** p = fRuleSets; *p; ++p) { in getRules()
992 for (NFRuleSet** p = fRuleSets; *p; ++p) { in getRuleSetName()
993 NFRuleSet* rs = *p; in getRuleSetName()
1014 for (NFRuleSet** p = fRuleSets; *p; ++p) { in getNumberOfRuleSetNames()
1098 NFRuleSet*
1102 for (NFRuleSet** p = fRuleSets; *p; ++p) { in findRuleSet()
1103 NFRuleSet* rs = *p; in findRuleSet()
1248 NFRuleSet *rs = findRuleSet(ruleSetName, status); in format()
[all …]
Dnfrule.cpp109 NFRuleSet *owner, in makeRules()
413 NFRule::extractSubstitutions(const NFRuleSet* ruleSet, in extractSubstitutions()
468 NFRule::extractSubstitution(const NFRuleSet* ruleSet, in extractSubstitution()
/external/icu/icu4c/source/i18n/unicode/
Drbnf.h44 class NFRuleSet; variable
1075 NFRuleSet* findRuleSet(const UnicodeString& name, UErrorCode& status) const;
1080 friend class NFRuleSet; variable
1083 inline NFRuleSet * getDefaultRuleSet() const;
1093 …UnicodeString& format(int64_t number, NFRuleSet *ruleSet, UnicodeString& toAppendTo, UErrorCode& s…
1094 void format(double number, NFRuleSet& rs, UnicodeString& toAppendTo, UErrorCode& status) const;
1097 NFRuleSet **fRuleSets;
1100 NFRuleSet *defaultRuleSet;
1128 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()
309 if (!(that instanceof NFRuleSet)) { in equals()
313 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;
966 for (NFRuleSet ruleSet : ruleSets) { in toString()
1498 for (NFRuleSet ruleSet : ruleSets) { in setDecimalFormatSymbols()
1574 NFRuleSet getDefaultRuleSet() { in getDefaultRuleSet()
1730 ruleSets = new NFRuleSet[numRuleSets]; in init()
1756 NFRuleSet ruleSet = new NFRuleSet(this, ruleSetDescriptions, curRuleSet); in init()
1945 private String format(double number, NFRuleSet ruleSet) { in format()
1969 private String format(long number, NFRuleSet ruleSet) { in format()
[all …]
DNFSubstitution.java39 final NFRuleSet ruleSet;
72 NFRuleSet ruleSet, in makeSubstitution()
162 NFRuleSet ruleSet, in NFSubstitution()
578 NFRuleSet ruleSet, in SameValueSubstitution()
684 NFRuleSet ruleSet, in MultiplierSubstitution()
845 NFRuleSet ruleSet, in ModulusSubstitution()
1093 NFRuleSet ruleSet, in IntegralPartSubstitution()
1202 NFRuleSet ruleSet, in FractionalPartSubstitution()
1403 NFRuleSet ruleSet, in AbsoluteValueSubstitution()
1510 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()
310 if (!(that instanceof NFRuleSet)) { in equals()
314 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;
951 for (NFRuleSet ruleSet : ruleSets) { in toString()
1462 for (NFRuleSet ruleSet : ruleSets) { in setDecimalFormatSymbols()
1535 NFRuleSet getDefaultRuleSet() { in getDefaultRuleSet()
1691 ruleSets = new NFRuleSet[numRuleSets]; in init()
1717 NFRuleSet ruleSet = new NFRuleSet(this, ruleSetDescriptions, curRuleSet); in init()
1906 private String format(double number, NFRuleSet ruleSet) { in format()
1930 private String format(long number, NFRuleSet ruleSet) { in format()
[all …]
DNFSubstitution.java40 final NFRuleSet ruleSet;
73 NFRuleSet ruleSet, in makeSubstitution()
163 NFRuleSet ruleSet, in NFSubstitution()
579 NFRuleSet ruleSet, in SameValueSubstitution()
685 NFRuleSet ruleSet, in MultiplierSubstitution()
846 NFRuleSet ruleSet, in ModulusSubstitution()
1094 NFRuleSet ruleSet, in IntegralPartSubstitution()
1203 NFRuleSet ruleSet, in FractionalPartSubstitution()
1404 NFRuleSet ruleSet, in AbsoluteValueSubstitution()
1511 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.txt854 com/ibm/icu/text/NFRuleSet#hashCode:()I