Home
last modified time | relevance | path

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

/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 {
46 const NFRule* predecessor,
51 NFRule(const RuleBasedNumberFormat* rbnf);
52 ~NFRule();
54 UBool operator==(const NFRule& rhs) const;
55 UBool operator!=(const NFRule& rhs) const { return !operator==(rhs); }
83 …void extractSubstitutions(const NFRuleSet* ruleSet, const UnicodeString &ruleText, const NFRule* p…
84 …NFSubstitution* extractSubstitution(const NFRuleSet* ruleSet, const NFRule* predecessor, UErrorCod…
108 NFRule(const NFRule &other); // forbid copying of this class
109 NFRule &operator=(const NFRule &other); // forbid copying of this class
Dnfrule.cpp34 NFRule::NFRule(const RuleBasedNumberFormat* _rbnf) in NFRule() function in NFRule
46 NFRule::~NFRule() in ~NFRule()
98 NFRule::makeRules(UnicodeString& description, in makeRules()
100 const NFRule *predecessor, in makeRules()
109 NFRule* rule1 = new NFRule(rbnf); in makeRules()
134 NFRule* rule2 = NULL; in makeRules()
150 rule2 = new NFRule(rbnf); in makeRules()
227 NFRule::parseRuleDescriptor(UnicodeString& description, UErrorCode& status) in parseRuleDescriptor()
378 NFRule::extractSubstitutions(const NFRuleSet* ruleSet, in extractSubstitutions()
380 const NFRule* predecessor, in extractSubstitutions()
[all …]
Dnfrs.h59 NFRule * findNormalRule(int64_t number) const;
60 NFRule * findDoubleRule(double number) const;
61 NFRule * findFractionRuleSetRule(double number) const;
66 NFRule *negativeNumberRule;
67 NFRule *fractionRules[3];
Dnfrs.cpp207 NFRule::makeRules(currentDescription, this, rules.last(), owner, rules, status); in parseRules()
222 NFRule* rule = rules[i]; in parseRules()
230 case NFRule::kNoBase: in parseRules()
240 case NFRule::kNegativeNumberRule: in parseRules()
249 case NFRule::kImproperFractionRule: in parseRules()
258 case NFRule::kProperFractionRule: in parseRules()
267 case NFRule::kMasterRule: in parseRules()
302 util_equalRules(const NFRule* rule1, const NFRule* rule2) in util_equalRules()
340 NFRule *rule = findNormalRule(number); in format()
356 NFRule *rule = findDoubleRule(number); in format()
[all …]
Dnfsubs.cpp130 const NFRule* ruleToUse;
134 const NFRule* rulePredecessor,
355 const NFRule* rule, in makeSubstitution()
356 const NFRule* predecessor, in makeSubstitution()
372 if (rule->getBaseValue() == NFRule::kNegativeNumberRule) { in makeSubstitution()
380 else if (rule->getBaseValue() == NFRule::kImproperFractionRule in makeSubstitution()
381 || rule->getBaseValue() == NFRule::kProperFractionRule in makeSubstitution()
382 || rule->getBaseValue() == NFRule::kMasterRule) { in makeSubstitution()
403 if (rule->getBaseValue() == NFRule::kNegativeNumberRule) { in makeSubstitution()
409 else if (rule->getBaseValue() == NFRule::kImproperFractionRule in makeSubstitution()
[all …]
Dnfsubs.h58 const NFRule* rule,
59 const NFRule* predecessor,
Dplurfmt.cpp485 void PluralFormat::parseType(const UnicodeString& source, const NFRule *rbnfLenientScanner, Formatt… in parseType()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFRuleSet.java37 private NFRule[] rules;
42 private NFRule negativeNumberRule = null;
49 private NFRule[] fractionRules = new NFRule[3];
145 List<NFRule> tempRules = new ArrayList<NFRule>(); in parseRules()
149 NFRule predecessor = null; in parseRules()
166 NFRule.makeRules(description.substring(oldP, p), in parseRules()
185 NFRule rule = tempRules.get(i); in parseRules()
201 case NFRule.NEGATIVE_NUMBER_RULE: in parseRules()
208 case NFRule.IMPROPER_FRACTION_RULE: in parseRules()
215 case NFRule.PROPER_FRACTION_RULE: in parseRules()
[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.java20 final class NFRule { class
113 NFRule predecessor, in makeRules()
115 List<NFRule> returnList) { in makeRules()
120 NFRule rule1 = new NFRule(ownersOwner); in makeRules()
141 NFRule rule2 = null; in makeRules()
158 rule2 = new NFRule(ownersOwner); in makeRules()
220 public NFRule(RuleBasedNumberFormat formatter) { in NFRule() method in NFRule
372 NFRule predecessor) { in extractSubstitutions()
425 NFRule predecessor) { in extractSubstitution()
576 if (that instanceof NFRule) { in equals()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dplurfmt.h31 class NFRule; variable
603 void parseType(const UnicodeString& source, const NFRule *rbnfLenientScanner,
607 friend class NFRule; variable
Drbnf.h982 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 ...