Home
last modified time | relevance | path

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

/external/icu4c/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.h31 class NFRule : public UMemory {
45 const NFRule* predecessor,
50 NFRule(const RuleBasedNumberFormat* rbnf);
51 ~NFRule();
53 UBool operator==(const NFRule& rhs) const;
54 UBool operator!=(const NFRule& rhs) const { return !operator==(rhs); }
79 …void extractSubstitutions(const NFRuleSet* ruleSet, const NFRule* predecessor, const RuleBasedNumb…
80 …NFSubstitution* extractSubstitution(const NFRuleSet* ruleSet, const NFRule* predecessor, const Rul…
103 NFRule(const NFRule &other); // forbid copying of this class
104 NFRule &operator=(const NFRule &other); // forbid copying of this class
Dnfrule.cpp31 NFRule::NFRule(const RuleBasedNumberFormat* _rbnf) in NFRule() function in NFRule
42 NFRule::~NFRule() in ~NFRule()
88 NFRule::makeRules(UnicodeString& description, in makeRules()
90 const NFRule *predecessor, in makeRules()
99 NFRule* rule1 = new NFRule(rbnf); in makeRules()
125 NFRule* rule2 = NULL; in makeRules()
141 rule2 = new NFRule(rbnf); in makeRules()
220 NFRule::parseRuleDescriptor(UnicodeString& description, UErrorCode& status) in parseRuleDescriptor()
371 NFRule::extractSubstitutions(const NFRuleSet* ruleSet, in extractSubstitutions()
372 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,
/external/chromium_org/third_party/icu/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()
Dnfrule.h31 class NFRule : public UMemory {
45 const NFRule* predecessor,
50 NFRule(const RuleBasedNumberFormat* rbnf);
51 ~NFRule();
53 UBool operator==(const NFRule& rhs) const;
54 UBool operator!=(const NFRule& rhs) const { return !operator==(rhs); }
79 …void extractSubstitutions(const NFRuleSet* ruleSet, const NFRule* predecessor, const RuleBasedNumb…
80 …NFSubstitution* extractSubstitution(const NFRuleSet* ruleSet, const NFRule* predecessor, const Rul…
103 NFRule(const NFRule &other); // forbid copying of this class
104 NFRule &operator=(const NFRule &other); // forbid copying of this class
Dnfrule.cpp32 NFRule::NFRule(const RuleBasedNumberFormat* _rbnf) in NFRule() function in NFRule
43 NFRule::~NFRule() in ~NFRule()
90 NFRule::makeRules(UnicodeString& description, in makeRules()
92 const NFRule *predecessor, in makeRules()
101 NFRule* rule1 = new NFRule(rbnf); in makeRules()
127 NFRule* rule2 = NULL; in makeRules()
143 rule2 = new NFRule(rbnf); in makeRules()
222 NFRule::parseRuleDescriptor(UnicodeString& description, UErrorCode& status) in parseRuleDescriptor()
373 NFRule::extractSubstitutions(const NFRuleSet* ruleSet, in extractSubstitutions()
374 const NFRule* predecessor, in extractSubstitutions()
[all …]
Dnfrs.h65 NFRule * findNormalRule(int64_t number) const;
66 NFRule * findDoubleRule(double number) const;
67 NFRule * findFractionRuleSetRule(double number) const;
72 NFRule *negativeNumberRule;
73 NFRule *fractionRules[3];
Dnfrs.cpp194 NFRule::makeRules(currentDescription, this, rules.last(), owner, rules, status); in parseRules()
209 NFRule* rule = rules[i]; in parseRules()
217 case NFRule::kNoBase: in parseRules()
227 case NFRule::kNegativeNumberRule: in parseRules()
233 case NFRule::kImproperFractionRule: in parseRules()
239 case NFRule::kProperFractionRule: in parseRules()
245 case NFRule::kMasterRule: in parseRules()
277 util_equalRules(const NFRule* rule1, const NFRule* rule2) in util_equalRules()
315 NFRule *rule = findNormalRule(number); in format()
331 NFRule *rule = findDoubleRule(number); in format()
[all …]
Dnfsubs.cpp124 const NFRule* ruleToUse;
128 const NFRule* rulePredecessor,
329 const NFRule* rule, in makeSubstitution()
330 const NFRule* predecessor, in makeSubstitution()
346 if (rule->getBaseValue() == NFRule::kNegativeNumberRule) { in makeSubstitution()
354 else if (rule->getBaseValue() == NFRule::kImproperFractionRule in makeSubstitution()
355 || rule->getBaseValue() == NFRule::kProperFractionRule in makeSubstitution()
356 || rule->getBaseValue() == NFRule::kMasterRule) { in makeSubstitution()
377 if (rule->getBaseValue() == NFRule::kNegativeNumberRule) { in makeSubstitution()
383 else if (rule->getBaseValue() == NFRule::kImproperFractionRule in makeSubstitution()
[all …]
Dnfsubs.h58 const NFRule* rule,
59 const NFRule* predecessor,
/external/icu4c/i18n/unicode/
Drbnf.h1005 friend class NFRule; variable
/external/chromium_org/third_party/icu/source/i18n/unicode/
Drbnf.h984 friend class NFRule; variable
/external/chromium_org/third_party/icu/source/common/unicode/
Durename.h2035 #define NFRule U_ICU_ENTRY_POINT_RENAME(NFRule) macro