Home
last modified time | relevance | path

Searched refs:NFRule (Results 1 – 20 of 20) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFRuleSet.java40 private NFRule[] rules;
45 final NFRule[] nonNumericalRules = new NFRule[6];
51 LinkedList<NFRule> fractionRules;
163 List<NFRule> tempRules = new ArrayList<>(); in parseRules()
167 NFRule predecessor = null; in parseRules()
184 NFRule.makeRules(description.substring(oldP, p), in parseRules()
200 for (NFRule rule : tempRules) { in parseRules()
227 rules = new NFRule[tempRules.size()]; in parseRules()
235 void setNonNumericalRule(NFRule rule) { in setNonNumericalRule()
237 if (baseValue == NFRule.NEGATIVE_NUMBER_RULE) { in setNonNumericalRule()
[all …]
DNFSubstitution.java70 NFRule rule, in makeSubstitution()
71 NFRule rulePredecessor, in makeSubstitution()
82 if (rule.getBaseValue() == NFRule.NEGATIVE_NUMBER_RULE) { in makeSubstitution()
91 else if (rule.getBaseValue() == NFRule.IMPROPER_FRACTION_RULE in makeSubstitution()
92 || rule.getBaseValue() == NFRule.PROPER_FRACTION_RULE in makeSubstitution()
93 || rule.getBaseValue() == NFRule.MASTER_RULE) in makeSubstitution()
111 if (rule.getBaseValue() == NFRule.NEGATIVE_NUMBER_RULE) { in makeSubstitution()
116 else if (rule.getBaseValue() == NFRule.IMPROPER_FRACTION_RULE in makeSubstitution()
117 || rule.getBaseValue() == NFRule.PROPER_FRACTION_RULE in makeSubstitution()
118 || rule.getBaseValue() == NFRule.MASTER_RULE) in makeSubstitution()
[all …]
DNFRule.java23 final class NFRule { class
133 NFRule predecessor, in makeRules()
135 List<NFRule> returnList) { in makeRules()
140 NFRule rule1 = new NFRule(ownersOwner, description); in makeRules()
163 NFRule rule2 = null; in makeRules()
180 rule2 = new NFRule(ownersOwner, null); in makeRules()
252 public NFRule(RuleBasedNumberFormat formatter, String ruleText) { in NFRule() method
416 NFRule predecessor) { in extractSubstitutions()
462 NFRule predecessor) { in extractSubstitution()
615 if (that instanceof NFRule) { in equals()
[all …]
DRuleBasedNumberFormat.java634 private transient NFRule defaultInfinityRule = null;
640 private transient NFRule defaultNaNRule = null;
1307 Number result = NFRule.ZERO; in parse()
1628 NFRule getDefaultInfinityRule() { in getDefaultInfinityRule()
1630 … defaultInfinityRule = new NFRule(this, "Inf: " + getDecimalFormatSymbols().getInfinity()); in getDefaultInfinityRule()
1639 NFRule getDefaultNaNRule() { in getDefaultNaNRule()
1641 defaultNaNRule = new NFRule(this, "NaN: " + getDecimalFormatSymbols().getNaN()); in getDefaultNaNRule()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFRuleSet.java41 private NFRule[] rules;
46 final NFRule[] nonNumericalRules = new NFRule[6];
52 LinkedList<NFRule> fractionRules;
164 List<NFRule> tempRules = new ArrayList<>(); in parseRules()
168 NFRule predecessor = null; in parseRules()
185 NFRule.makeRules(description.substring(oldP, p), in parseRules()
201 for (NFRule rule : tempRules) { in parseRules()
228 rules = new NFRule[tempRules.size()]; in parseRules()
236 void setNonNumericalRule(NFRule rule) { in setNonNumericalRule()
238 if (baseValue == NFRule.NEGATIVE_NUMBER_RULE) { in setNonNumericalRule()
[all …]
DNFSubstitution.java71 NFRule rule, in makeSubstitution()
72 NFRule rulePredecessor, in makeSubstitution()
83 if (rule.getBaseValue() == NFRule.NEGATIVE_NUMBER_RULE) { in makeSubstitution()
92 else if (rule.getBaseValue() == NFRule.IMPROPER_FRACTION_RULE in makeSubstitution()
93 || rule.getBaseValue() == NFRule.PROPER_FRACTION_RULE in makeSubstitution()
94 || rule.getBaseValue() == NFRule.MASTER_RULE) in makeSubstitution()
112 if (rule.getBaseValue() == NFRule.NEGATIVE_NUMBER_RULE) { in makeSubstitution()
117 else if (rule.getBaseValue() == NFRule.IMPROPER_FRACTION_RULE in makeSubstitution()
118 || rule.getBaseValue() == NFRule.PROPER_FRACTION_RULE in makeSubstitution()
119 || rule.getBaseValue() == NFRule.MASTER_RULE) in makeSubstitution()
[all …]
DNFRule.java24 final class NFRule { class
134 NFRule predecessor, in makeRules()
136 List<NFRule> returnList) { in makeRules()
141 NFRule rule1 = new NFRule(ownersOwner, description); in makeRules()
164 NFRule rule2 = null; in makeRules()
181 rule2 = new NFRule(ownersOwner, null); in makeRules()
253 public NFRule(RuleBasedNumberFormat formatter, String ruleText) { in NFRule() method
417 NFRule predecessor) { in extractSubstitutions()
463 NFRule predecessor) { in extractSubstitution()
616 if (that instanceof NFRule) { in equals()
[all …]
DRuleBasedNumberFormat.java631 private transient NFRule defaultInfinityRule = null;
637 private transient NFRule defaultNaNRule = null;
1278 Number result = NFRule.ZERO; in parse()
1589 NFRule getDefaultInfinityRule() { in getDefaultInfinityRule()
1591 … defaultInfinityRule = new NFRule(this, "Inf: " + getDecimalFormatSymbols().getInfinity()); in getDefaultInfinityRule()
1600 NFRule getDefaultNaNRule() { in getDefaultNaNRule()
1602 defaultNaNRule = new NFRule(this, "NaN: " + getDecimalFormatSymbols().getNaN()); in getDefaultNaNRule()
/external/icu/icu4c/source/i18n/
Dnfrlist.h37 NFRule** fStuff;
42 : fStuff(capacity ? (NFRule**)uprv_malloc(capacity * sizeof(NFRule*)) : NULL)
53 NFRule* operator[](uint32_t index) const { return fStuff != NULL ? fStuff[index] : NULL; }
54 NFRule* remove(uint32_t index) { in remove()
58 NFRule* result = fStuff[index]; in remove()
65 void add(NFRule* thing) { in add()
68 fStuff = (NFRule**)uprv_realloc(fStuff, fCapacity * sizeof(NFRule*)); // assume success in add()
78 NFRule* last() const { return (fCount > 0 && fStuff != NULL) ? fStuff[fCount-1] : NULL; } in last()
79 NFRule** release() { in release()
81 NFRule** result = fStuff; in release()
[all …]
Dnfrule.h33 class NFRule : public UMemory {
49 const NFRule* predecessor,
54 NFRule(const RuleBasedNumberFormat* rbnf, const UnicodeString &ruleText, UErrorCode &status);
55 ~NFRule();
57 UBool operator==(const NFRule& rhs) const;
58 UBool operator!=(const NFRule& rhs) const { return !operator==(rhs); }
91 …void extractSubstitutions(const NFRuleSet* ruleSet, const UnicodeString &ruleText, const NFRule* p…
92 …NFSubstitution* extractSubstitution(const NFRuleSet* ruleSet, const NFRule* predecessor, UErrorCod…
118 NFRule(const NFRule &other); // forbid copying of this class
119 NFRule &operator=(const NFRule &other); // forbid copying of this class
Dnfrs.cpp222 NFRule::makeRules(currentDescription, this, rules.last(), owner, rules, status); in parseRules()
237 NFRule* rule = rules[i]; in parseRules()
269 void NFRuleSet::setNonNumericalRule(NFRule *rule) { in setNonNumericalRule()
271 if (baseValue == NFRule::kNegativeNumberRule) { in setNonNumericalRule()
275 else if (baseValue == NFRule::kImproperFractionRule) { in setNonNumericalRule()
278 else if (baseValue == NFRule::kProperFractionRule) { in setNonNumericalRule()
281 else if (baseValue == NFRule::kMasterRule) { in setNonNumericalRule()
284 else if (baseValue == NFRule::kInfinityRule) { in setNonNumericalRule()
288 else if (baseValue == NFRule::kNaNRule) { in setNonNumericalRule()
301 void NFRuleSet::setBestFractionRule(int32_t originalIndex, NFRule *newRule, UBool rememberRule) { in setBestFractionRule()
[all …]
Dnfrule.cpp37 NFRule::NFRule(const RuleBasedNumberFormat* _rbnf, const UnicodeString &_ruleText, UErrorCode &stat… in NFRule() function in NFRule
53 NFRule::~NFRule() in ~NFRule()
108 NFRule::makeRules(UnicodeString& description, in makeRules()
110 const NFRule *predecessor, in makeRules()
119 NFRule* rule1 = new NFRule(rbnf, description, status); in makeRules()
147 NFRule* rule2 = NULL; in makeRules()
163 rule2 = new NFRule(rbnf, UnicodeString(), status); in makeRules()
250 NFRule::parseRuleDescriptor(UnicodeString& description, UErrorCode& status) in parseRuleDescriptor()
413 NFRule::extractSubstitutions(const NFRuleSet* ruleSet, in extractSubstitutions()
415 const NFRule* predecessor, in extractSubstitutions()
[all …]
Dnfrs.h37 void setNonNumericalRule(NFRule *rule);
38 void setBestFractionRule(int32_t originalIndex, NFRule *newRule, UBool rememberRule);
66 const NFRule * findNormalRule(int64_t number) const;
67 const NFRule * findDoubleRule(double number) const;
68 const NFRule * findFractionRuleSetRule(double number) const;
75 NFRule *nonNumericalRules[6];
Dnfsubs.cpp79 const NFRule *rule, in MultiplierSubstitution()
130 const NFRule* ruleToUse;
133 const NFRule* rule,
134 const NFRule* rulePredecessor,
318 const NFRule* rule, in makeSubstitution()
319 const NFRule* predecessor, in makeSubstitution()
335 if (rule->getBaseValue() == NFRule::kNegativeNumberRule) { in makeSubstitution()
343 else if (rule->getBaseValue() == NFRule::kImproperFractionRule in makeSubstitution()
344 || rule->getBaseValue() == NFRule::kProperFractionRule in makeSubstitution()
345 || rule->getBaseValue() == NFRule::kMasterRule) { in makeSubstitution()
[all …]
Dnfsubs.h59 const NFRule* rule,
60 const NFRule* predecessor,
Drbnf.cpp1905 NFRule*
1914 LocalPointer<NFRule> temp(new NFRule(this, rule, status), status); in initializeDefaultInfinityRule()
1922 const NFRule*
1928 NFRule*
1937 LocalPointer<NFRule> temp(new NFRule(this, rule, status), status); in initializeDefaultNaNRule()
1945 const NFRule*
Dplurfmt.cpp499 void PluralFormat::parseType(const UnicodeString& source, const NFRule *rbnfLenientScanner, Formatt… in parseType()
/external/icu/icu4c/source/i18n/unicode/
Drbnf.h43 class NFRule; variable
1079 friend class NFRule; variable
1087 NFRule * initializeDefaultInfinityRule(UErrorCode &status);
1088 const NFRule * getDefaultInfinityRule() const;
1089 NFRule * initializeDefaultNaNRule(UErrorCode &status);
1090 const NFRule * getDefaultNaNRule() const;
1104 NFRule *defaultInfinityRule;
1105 NFRule *defaultNaNRule;
Dplurfmt.h33 class NFRule; variable
593 void parseType(const UnicodeString& source, const NFRule *rbnfLenientScanner,
597 friend class NFRule; variable
/external/icu/icu4j/
Dcoverage-exclusion.txt853 com/ibm/icu/text/NFRule#hashCode:()I