Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFRuleSet.java39 private NFRule[] rules;
44 final NFRule[] nonNumericalRules = new NFRule[6];
50 LinkedList<NFRule> fractionRules;
162 List<NFRule> tempRules = new ArrayList<NFRule>(); in parseRules()
166 NFRule predecessor = null; in parseRules()
183 NFRule.makeRules(description.substring(oldP, p), in parseRules()
199 for (NFRule rule : tempRules) { in parseRules()
226 rules = new NFRule[tempRules.size()]; in parseRules()
234 void setNonNumericalRule(NFRule rule) { in setNonNumericalRule()
236 if (baseValue == NFRule.NEGATIVE_NUMBER_RULE) { in setNonNumericalRule()
[all …]
DNFSubstitution.java67 NFRule rule, in makeSubstitution()
68 NFRule rulePredecessor, in makeSubstitution()
79 if (rule.getBaseValue() == NFRule.NEGATIVE_NUMBER_RULE) { in makeSubstitution()
88 else if (rule.getBaseValue() == NFRule.IMPROPER_FRACTION_RULE in makeSubstitution()
89 || rule.getBaseValue() == NFRule.PROPER_FRACTION_RULE in makeSubstitution()
90 || rule.getBaseValue() == NFRule.MASTER_RULE) in makeSubstitution()
108 if (rule.getBaseValue() == NFRule.NEGATIVE_NUMBER_RULE) { in makeSubstitution()
113 else if (rule.getBaseValue() == NFRule.IMPROPER_FRACTION_RULE in makeSubstitution()
114 || rule.getBaseValue() == NFRule.PROPER_FRACTION_RULE in makeSubstitution()
115 || rule.getBaseValue() == NFRule.MASTER_RULE) in makeSubstitution()
[all …]
DNFRule.java22 final class NFRule { class
132 NFRule predecessor, in makeRules()
134 List<NFRule> returnList) { in makeRules()
139 NFRule rule1 = new NFRule(ownersOwner, description); in makeRules()
162 NFRule rule2 = null; in makeRules()
179 rule2 = new NFRule(ownersOwner, null); in makeRules()
251 public NFRule(RuleBasedNumberFormat formatter, String ruleText) { in NFRule() method
415 NFRule predecessor) { in extractSubstitutions()
461 NFRule predecessor) { in extractSubstitution()
613 if (that instanceof NFRule) { in equals()
[all …]
DRuleBasedNumberFormat.java628 private transient NFRule defaultInfinityRule = null;
634 private transient NFRule defaultNaNRule = null;
1259 Number result = NFRule.ZERO; in parse()
1571 NFRule getDefaultInfinityRule() { in getDefaultInfinityRule()
1573 … defaultInfinityRule = new NFRule(this, "Inf: " + getDecimalFormatSymbols().getInfinity()); in getDefaultInfinityRule()
1582 NFRule getDefaultNaNRule() { in getDefaultNaNRule()
1584 defaultNaNRule = new NFRule(this, "NaN: " + getDecimalFormatSymbols().getNaN()); in getDefaultNaNRule()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFRuleSet.java38 private NFRule[] rules;
43 final NFRule[] nonNumericalRules = new NFRule[6];
49 LinkedList<NFRule> fractionRules;
161 List<NFRule> tempRules = new ArrayList<NFRule>(); in parseRules()
165 NFRule predecessor = null; in parseRules()
182 NFRule.makeRules(description.substring(oldP, p), in parseRules()
198 for (NFRule rule : tempRules) { in parseRules()
225 rules = new NFRule[tempRules.size()]; in parseRules()
233 void setNonNumericalRule(NFRule rule) { in setNonNumericalRule()
235 if (baseValue == NFRule.NEGATIVE_NUMBER_RULE) { in setNonNumericalRule()
[all …]
DNFSubstitution.java66 NFRule rule, in makeSubstitution()
67 NFRule rulePredecessor, in makeSubstitution()
78 if (rule.getBaseValue() == NFRule.NEGATIVE_NUMBER_RULE) { in makeSubstitution()
87 else if (rule.getBaseValue() == NFRule.IMPROPER_FRACTION_RULE in makeSubstitution()
88 || rule.getBaseValue() == NFRule.PROPER_FRACTION_RULE in makeSubstitution()
89 || rule.getBaseValue() == NFRule.MASTER_RULE) in makeSubstitution()
107 if (rule.getBaseValue() == NFRule.NEGATIVE_NUMBER_RULE) { in makeSubstitution()
112 else if (rule.getBaseValue() == NFRule.IMPROPER_FRACTION_RULE in makeSubstitution()
113 || rule.getBaseValue() == NFRule.PROPER_FRACTION_RULE in makeSubstitution()
114 || rule.getBaseValue() == NFRule.MASTER_RULE) in makeSubstitution()
[all …]
DNFRule.java21 final class NFRule { class
131 NFRule predecessor, in makeRules()
133 List<NFRule> returnList) { in makeRules()
138 NFRule rule1 = new NFRule(ownersOwner, description); in makeRules()
161 NFRule rule2 = null; in makeRules()
178 rule2 = new NFRule(ownersOwner, null); in makeRules()
250 public NFRule(RuleBasedNumberFormat formatter, String ruleText) { in NFRule() method
414 NFRule predecessor) { in extractSubstitutions()
460 NFRule predecessor) { in extractSubstitution()
612 if (that instanceof NFRule) { in equals()
[all …]
DRuleBasedNumberFormat.java631 private transient NFRule defaultInfinityRule = null;
637 private transient NFRule defaultNaNRule = null;
1287 Number result = NFRule.ZERO; in parse()
1607 NFRule getDefaultInfinityRule() { in getDefaultInfinityRule()
1609 … defaultInfinityRule = new NFRule(this, "Inf: " + getDecimalFormatSymbols().getInfinity()); in getDefaultInfinityRule()
1618 NFRule getDefaultNaNRule() { in getDefaultNaNRule()
1620 defaultNaNRule = new NFRule(this, "NaN: " + getDecimalFormatSymbols().getNaN()); in getDefaultNaNRule()
/external/icu/icu4c/source/i18n/
Dnfrlist.h35 NFRule** fStuff;
40 : fStuff(capacity ? (NFRule**)uprv_malloc(capacity * sizeof(NFRule*)) : NULL)
51 NFRule* operator[](uint32_t index) const { return fStuff != NULL ? fStuff[index] : NULL; }
52 NFRule* remove(uint32_t index) { in remove()
56 NFRule* result = fStuff[index]; in remove()
63 void add(NFRule* thing) { in add()
66 fStuff = (NFRule**)uprv_realloc(fStuff, fCapacity * sizeof(NFRule*)); // assume success in add()
76 NFRule* last() const { return (fCount > 0 && fStuff != NULL) ? fStuff[fCount-1] : NULL; } in last()
77 NFRule** release() { in release()
79 NFRule** result = fStuff; in release()
[all …]
Dnfrule.h32 class NFRule : public UMemory {
48 const NFRule* predecessor,
53 NFRule(const RuleBasedNumberFormat* rbnf, const UnicodeString &ruleText, UErrorCode &status);
54 ~NFRule();
56 UBool operator==(const NFRule& rhs) const;
57 UBool operator!=(const NFRule& rhs) const { return !operator==(rhs); }
89 …void extractSubstitutions(const NFRuleSet* ruleSet, const UnicodeString &ruleText, const NFRule* p…
90 …NFSubstitution* extractSubstitution(const NFRuleSet* ruleSet, const NFRule* predecessor, UErrorCod…
115 NFRule(const NFRule &other); // forbid copying of this class
116 NFRule &operator=(const NFRule &other); // forbid copying of this class
Dnfrs.cpp219 NFRule::makeRules(currentDescription, this, rules.last(), owner, rules, status); in parseRules()
234 NFRule* rule = rules[i]; in parseRules()
266 void NFRuleSet::setNonNumericalRule(NFRule *rule) { in setNonNumericalRule()
268 if (baseValue == NFRule::kNegativeNumberRule) { in setNonNumericalRule()
272 else if (baseValue == NFRule::kImproperFractionRule) { in setNonNumericalRule()
275 else if (baseValue == NFRule::kProperFractionRule) { in setNonNumericalRule()
278 else if (baseValue == NFRule::kMasterRule) { in setNonNumericalRule()
281 else if (baseValue == NFRule::kInfinityRule) { in setNonNumericalRule()
285 else if (baseValue == NFRule::kNaNRule) { in setNonNumericalRule()
298 void NFRuleSet::setBestFractionRule(int32_t originalIndex, NFRule *newRule, UBool rememberRule) { in setBestFractionRule()
[all …]
Dnfrule.cpp34 NFRule::NFRule(const RuleBasedNumberFormat* _rbnf, const UnicodeString &_ruleText, UErrorCode &stat… in NFRule() function in NFRule
50 NFRule::~NFRule() in ~NFRule()
105 NFRule::makeRules(UnicodeString& description, in makeRules()
107 const NFRule *predecessor, in makeRules()
116 NFRule* rule1 = new NFRule(rbnf, description, status); in makeRules()
144 NFRule* rule2 = NULL; in makeRules()
160 rule2 = new NFRule(rbnf, UnicodeString(), status); in makeRules()
247 NFRule::parseRuleDescriptor(UnicodeString& description, UErrorCode& status) in parseRuleDescriptor()
410 NFRule::extractSubstitutions(const NFRuleSet* ruleSet, in extractSubstitutions()
412 const NFRule* predecessor, in extractSubstitutions()
[all …]
Dnfrs.h35 void setNonNumericalRule(NFRule *rule);
36 void setBestFractionRule(int32_t originalIndex, NFRule *newRule, UBool rememberRule);
64 const NFRule * findNormalRule(int64_t number) const;
65 const NFRule * findDoubleRule(double number) const;
66 const NFRule * findFractionRuleSetRule(double number) const;
73 NFRule *nonNumericalRules[6];
Dnfsubs.cpp128 const NFRule* ruleToUse;
132 const NFRule* rulePredecessor,
314 const NFRule* rule, in makeSubstitution()
315 const NFRule* predecessor, in makeSubstitution()
331 if (rule->getBaseValue() == NFRule::kNegativeNumberRule) { in makeSubstitution()
339 else if (rule->getBaseValue() == NFRule::kImproperFractionRule in makeSubstitution()
340 || rule->getBaseValue() == NFRule::kProperFractionRule in makeSubstitution()
341 || rule->getBaseValue() == NFRule::kMasterRule) { in makeSubstitution()
362 if (rule->getBaseValue() == NFRule::kNegativeNumberRule) { in makeSubstitution()
368 else if (rule->getBaseValue() == NFRule::kImproperFractionRule in makeSubstitution()
[all …]
Dnfsubs.h57 const NFRule* rule,
58 const NFRule* predecessor,
Drbnf.cpp1748 NFRule*
1757 NFRule* temp = new NFRule(this, rule, status); in initializeDefaultInfinityRule()
1768 const NFRule*
1774 NFRule*
1783 NFRule* temp = new NFRule(this, rule, status); in initializeDefaultNaNRule()
1794 const NFRule*
Dplurfmt.cpp506 void PluralFormat::parseType(const UnicodeString& source, const NFRule *rbnfLenientScanner, Formatt… in parseType()
/external/icu/icu4c/source/i18n/unicode/
Drbnf.h41 class NFRule; variable
1013 friend class NFRule; variable
1021 NFRule * initializeDefaultInfinityRule(UErrorCode &status);
1022 const NFRule * getDefaultInfinityRule() const;
1023 NFRule * initializeDefaultNaNRule(UErrorCode &status);
1024 const NFRule * getDefaultNaNRule() const;
1036 NFRule *defaultInfinityRule;
1037 NFRule *defaultNaNRule;
Dplurfmt.h31 class NFRule; variable
603 void parseType(const UnicodeString& source, const NFRule *rbnfLenientScanner,
607 friend class NFRule; variable
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dcom.ibm.icu_4.2.1.v20100412.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...