Home
last modified time | relevance | path

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

/base/global/i18n_lite/frameworks/i18n/src/
H A Dplural_rules.cpp20 PluralRules::PluralRules(std::string *rules, const int rulesLength, const int *ruleSize, const int sizesLength) 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()
H A Dplural_format_impl.cpp163 bool PluralFormatImpl::ParseDecimalRule(const std::string &rule, const int ruleSize, const int *numberInfo, 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, in ParseDecimalRule()
203 ParseDecimalFormula(const std::string &rule, const int ruleSize, int &index, const int *numberInfo, const int numberInfoSize) const ParseDecimalFormula() argument
246 ParseRule(const std::string &rule, const int ruleSize, const int number) const ParseRule() argument
284 ParseFormula(const std::string &rule, const int ruleSize, int &index, const int number) const ParseFormula() argument
304 CompareResult(const std::string &rule, const int ruleSize, int &index, const int number) const CompareResult() argument
339 CompareNotEqualResult(const std::string &rule, const int ruleSize, int &index, const int number) const CompareNotEqualResult() argument
375 ParseNumber(const std::string &rule, const int ruleSize, int &index) const ParseNumber() argument
[all...]
/base/global/i18n_lite/frameworks/i18n/include/
H A 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) const;
42 bool CompareNotEqualResult(const std::string &rule, const int ruleSize, int &index, const int number) const;
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 *numberInfo,
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/
H A Dhisysevent_manager_c.cpp43 int HiSysEventQuery(const HiSysEventQueryArg& arg, HiSysEventQueryRule rules[], size_t ruleSize, in HiSysEventQuery() argument
47 for (size_t i = 0; i < ruleSize; ++i) { in HiSysEventQuery()
63 int HiSysEventAddWatcher(HiSysEventWatcher& watcher, HiSysEventWatchRule rules[], size_t ruleSize) in HiSysEventAddWatcher() argument
66 for (size_t i = 0; i < ruleSize; ++i) { in HiSysEventAddWatcher()
100 int OH_HiSysEvent_Query(const HiSysEventQueryArg* arg, HiSysEventQueryRule rules[], size_t ruleSize, in OH_HiSysEvent_Query() argument
109 return HiSysEventQuery(*arg, rules, ruleSize, *callback); in OH_HiSysEvent_Query()
112 int OH_HiSysEvent_Add_Watcher(HiSysEventWatcher* watcher, HiSysEventWatchRule rules[], size_t ruleSize) in OH_HiSysEvent_Add_Watcher() argument
117 return HiSysEventAddWatcher(*watcher, rules, ruleSize); in OH_HiSysEvent_Add_Watcher()
/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/source/
H A Dhisysevent_rust_manager.cpp47 int 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()
91 for (size_t i = 0; i < ruleSize; ++i) { in HiSysEventAddWatcher()
179 const size_t ruleSize) in OhHiSysEventAddRustWatcher()
181 return HiSysEventAddWatcher(watcher, watchRules, ruleSize); in OhHiSysEventAddRustWatcher()
190 const size_t ruleSize, HiSysEventRustQuerierC* querier) in OhHiSysEventRustQuery()
192 return HiSysEventQuery(queryArg, queryRules, ruleSize, querier); in OhHiSysEventRustQuery()
84 HiSysEventAddWatcher(HiSysEventRustWatcherC* watcher, const HiSysEventWatchRule rules[], const size_t ruleSize) HiSysEventAddWatcher() argument
178 OhHiSysEventAddRustWatcher(HiSysEventRustWatcherC* watcher, const HiSysEventWatchRule watchRules[], const size_t ruleSize) OhHiSysEventAddRustWatcher() argument
189 OhHiSysEventRustQuery(HiSysEventQueryArg* queryArg, const HiSysEventQueryRule queryRules[], const size_t ruleSize, HiSysEventRustQuerierC* querier) OhHiSysEventRustQuery() argument
H A Dhisysevent_c_wrapper.cpp108 unsigned int ruleSize) in HiSysEventAddWatcherWrapper()
110 return OhHiSysEventAddRustWatcher(watcher, rules, ruleSize); in HiSysEventAddWatcherWrapper()
119 unsigned int ruleSize, HiSysEventRustQuerierC* querier) in HiSysEventQueryWrapper()
121 HiSysEventQueryRule rules[ruleSize]; in HiSysEventQueryWrapper()
122 ConvertQueryRuleWrapper(queryRules, rules, ruleSize); in HiSysEventQueryWrapper()
123 return OhHiSysEventRustQuery(arg, rules, ruleSize, querier); in HiSysEventQueryWrapper()
107 HiSysEventAddWatcherWrapper(HiSysEventRustWatcherC* watcher, const HiSysEventWatchRule rules[], unsigned int ruleSize) HiSysEventAddWatcherWrapper() argument
118 HiSysEventQueryWrapper(HiSysEventQueryArg* arg, const HiSysEventQueryRuleWrapper queryRules[], unsigned int ruleSize, HiSysEventRustQuerierC* querier) HiSysEventQueryWrapper() argument
/base/hiviewdfx/hisysevent/frameworks/native/c_wrapper/include/
H A Dhisysevent_rust_manager.h26 const size_t ruleSize, HiSysEventRustQuerierC* querier);
29 const size_t ruleSize);
H A Dhisysevent_c_wrapper.h80 unsigned int ruleSize);
87 unsigned int ruleSize, HiSysEventRustQuerierC* querier);
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/
H A Dhisysevent_manager_c.h62 * @param ruleSize rules size of query.
66 int OH_HiSysEvent_Query(const HiSysEventQueryArg* arg, HiSysEventQueryRule rules[], size_t ruleSize,
91 * @param ruleSize size of watch rules.
94 int OH_HiSysEvent_Add_Watcher(HiSysEventWatcher* watcher, HiSysEventWatchRule rules[], size_t ruleSize);

Completed in 4 milliseconds