Home
last modified time | relevance | path

Searched refs:ruleSize (Results 1 – 9 of 9) sorted by relevance

/base/global/i18n_lite/frameworks/i18n/src/
Dplural_format_impl.cpp163 bool PluralFormatImpl::ParseDecimalRule(const std::string &rule, const int ruleSize, const int *num… in ParseDecimalRule() argument
167 for (int i = 0; i < ruleSize; i++) { in ParseDecimalRule()
168 bool curResult = ParseDecimalFormula(rule, ruleSize, i, numberInfo, numberInfoSize); in ParseDecimalRule()
172 if ((nextSymbolIndex < ruleSize) && (rule[nextSymbolIndex] == OR)) { in ParseDecimalRule()
176 } else if ((nextSymbolIndex < ruleSize) && (rule[nextSymbolIndex] == AND)) { in ParseDecimalRule()
181 } else if (nextSymbolIndex >= ruleSize) { in ParseDecimalRule()
186 if ((nextSymbolIndex < ruleSize) && (rule[nextSymbolIndex] == OR)) { in ParseDecimalRule()
191 } else if ((nextSymbolIndex < ruleSize) && (rule[nextSymbolIndex] == AND)) { in ParseDecimalRule()
194 } else if ((nextSymbolIndex >= ruleSize) && in ParseDecimalRule()
195 !ParseDecimalFormula(rule, ruleSize, i, numberInfo, numberInfoSize)) { in ParseDecimalRule()
[all …]
Dplural_rules.cpp20 PluralRules::PluralRules(std::string *rules, const int rulesLength, const int *ruleSize, const int … in PluralRules() argument
22 if ((rules != nullptr) && (ruleSize != nullptr) && in PluralRules()
25 mZeroRuleSize = ruleSize[PluralRuleType::ZERO]; in PluralRules()
27 mOneRuleSize = ruleSize[PluralRuleType::ONE]; in PluralRules()
29 mTwoRuleSize = ruleSize[PluralRuleType::TWO]; in PluralRules()
31 mFewRuleSize = ruleSize[PluralRuleType::FEW]; in PluralRules()
33 mManyRuleSize = ruleSize[PluralRuleType::MANY]; in PluralRules()
35 mOtherRuleSize = ruleSize[PluralRuleType::OTHER]; in PluralRules()
/base/global/i18n_lite/frameworks/i18n/include/
Dplural_format_impl.h39 bool ParseRule(const std::string &rule, const int ruleSize, const int number) const;
40 …bool ParseFormula(const std::string &rule, const int ruleSize, int &index, const int number) const;
41 …bool CompareResult(const std::string &rule, const int ruleSize, int &index, const int number) cons…
42 …bool CompareNotEqualResult(const std::string &rule, const int ruleSize, int &index, const int numb…
43 int ParseNumber(const std::string &rule, const int ruleSize, int &index) const;
44 bool ParseDecimalRule(const std::string &rule, const int ruleSize, const int *numberInfo,
46 …bool ParseDecimalFormula(const std::string &rule, const int ruleSize, int &index, const int *numbe…
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/
Dhisysevent_manager_c.cpp41 int HiSysEventQuery(const HiSysEventQueryArg& arg, HiSysEventQueryRule rules[], size_t ruleSize, in HiSysEventQuery() argument
45 for (size_t i = 0; i < ruleSize; ++i) { in HiSysEventQuery()
61 int HiSysEventAddWatcher(HiSysEventWatcher& watcher, HiSysEventWatchRule rules[], size_t ruleSize) in HiSysEventAddWatcher() argument
64 for (size_t i = 0; i < ruleSize; ++i) { in HiSysEventAddWatcher()
97 int OH_HiSysEvent_Query(const HiSysEventQueryArg* arg, HiSysEventQueryRule rules[], size_t ruleSize, in OH_HiSysEvent_Query() argument
106 return HiSysEventQuery(*arg, rules, ruleSize, *callback); in OH_HiSysEvent_Query()
109 …OH_HiSysEvent_Add_Watcher(HiSysEventWatcher* watcher, HiSysEventWatchRule rules[], size_t ruleSize) in OH_HiSysEvent_Add_Watcher() argument
114 return HiSysEventAddWatcher(*watcher, rules, ruleSize); in OH_HiSysEvent_Add_Watcher()
/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/include/
Dhisysevent_rust_manager.h26 const size_t ruleSize, HiSysEventRustQuerierC* querier);
29 const size_t ruleSize);
Dhisysevent_c_wrapper.h80 const size_t ruleSize);
87 const size_t ruleSize, HiSysEventRustQuerierC* querier);
/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/source/
Dhisysevent_rust_manager.cpp47 … HiSysEventQuery(HiSysEventQueryArg* arg, const HiSysEventQueryRule rules[], const size_t ruleSize, in HiSysEventQuery() argument
54 for (size_t i = 0; i < ruleSize; ++i) { in HiSysEventQuery()
85 const size_t ruleSize) in HiSysEventAddWatcher() argument
91 for (size_t i = 0; i < ruleSize; ++i) { in HiSysEventAddWatcher()
179 const size_t ruleSize) in OhHiSysEventAddRustWatcher() argument
181 return HiSysEventAddWatcher(watcher, watchRules, ruleSize); in OhHiSysEventAddRustWatcher()
190 const size_t ruleSize, HiSysEventRustQuerierC* querier) in OhHiSysEventRustQuery() argument
192 return HiSysEventQuery(queryArg, queryRules, ruleSize, querier); in OhHiSysEventRustQuery()
Dhisysevent_c_wrapper.cpp102 const size_t ruleSize) in HiSysEventAddWatcherWrapper() argument
104 return OhHiSysEventAddRustWatcher(watcher, rules, ruleSize); in HiSysEventAddWatcherWrapper()
113 const size_t ruleSize, HiSysEventRustQuerierC* querier) in HiSysEventQueryWrapper() argument
115 HiSysEventQueryRule rules[ruleSize]; in HiSysEventQueryWrapper()
116 ConvertQueryRuleWrapper(queryRules, rules, ruleSize); in HiSysEventQueryWrapper()
117 return OhHiSysEventRustQuery(arg, rules, ruleSize, querier); in HiSysEventQueryWrapper()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/
Dhisysevent_manager_c.h66 int OH_HiSysEvent_Query(const HiSysEventQueryArg* arg, HiSysEventQueryRule rules[], size_t ruleSize,
94 …H_HiSysEvent_Add_Watcher(HiSysEventWatcher* watcher, HiSysEventWatchRule rules[], size_t ruleSize);