Home
last modified time | relevance | path

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

123

/third_party/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.DEFAULT_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.DEFAULT_RULE) in makeSubstitution()
[all …]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/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 …]
/third_party/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::kDefaultRule) { 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];
/third_party/node/deps/icu-small/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 bool operator==(const NFRule& rhs) const;
58 bool 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::kDefaultRule) { 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];
/third_party/skia/third_party/externals/icu/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::kDefaultRule) { 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];
/third_party/flutter/skia/third_party/externals/icu/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];
/third_party/icu/icu4c/source/i18n/unicode/
Drbnf.h45 class NFRule; variable
1059 friend class NFRule; variable
1067 NFRule * initializeDefaultInfinityRule(UErrorCode &status);
1068 const NFRule * getDefaultInfinityRule() const;
1069 NFRule * initializeDefaultNaNRule(UErrorCode &status);
1070 const NFRule * getDefaultNaNRule() const;
1084 NFRule *defaultInfinityRule;
1085 NFRule *defaultNaNRule;

123