Home
last modified time | relevance | path

Searched refs:rules (Results 1 - 25 of 851) sorted by relevance

12345678910>>...35

/third_party/eudev/test/
H A Dudev-test.pl12 # udev parses the rules, looks at the provided sysfs and
28 my $udev_rules_dir = "$udev_run/udev/rules.d";
29 my $udev_rules = "$udev_rules_dir/udev-test.rules";
33 desc => "no rules",
37 rules => <<EOF
45 rules => <<EOF
54 rules => <<EOF
63 rules => <<EOF
72 rules => <<EOF
80 rules
[all...]
/third_party/eudev/src/udev/
H A Dudev-rules.c52 UDEV_CONF_DIR "/rules.d",
54 UDEV_ROOT_RUN "/udev/rules.d",
55 UDEV_LIBEXEC_DIR "/rules.d",
57 "/lib/udev/rules.d",
58 "/usr/lib/udev/rules.d",
67 /* every key in the rules file becomes a token */
84 static char *rules_str(struct udev_rules *rules, unsigned int off) { in rules_str() argument
85 return rules->strbuf->buf + off; in rules_str()
88 static unsigned int rules_add_string(struct udev_rules *rules, const char *s) { in rules_add_string() argument
89 return strbuf_add_string(rules in rules_add_string()
222 struct udev_rules *rules; global() member
324 dump_token(struct udev_rules *rules, struct token *token) dump_token() argument
435 dump_rules(struct udev_rules *rules) dump_rules() argument
447 dump_token(struct udev_rules *rules, struct token *token) dump_token() argument
448 dump_rules(struct udev_rules *rules) dump_rules() argument
451 add_token(struct udev_rules *rules, struct token *token) add_token() argument
473 add_uid(struct udev_rules *rules, const char *owner) add_uid() argument
520 add_gid(struct udev_rules *rules, const char *group) add_gid() argument
1013 sort_token(struct udev_rules *rules, struct rule_tmp *rule_tmp) sort_token() argument
1047 add_rule(struct udev_rules *rules, char *line, const char *filename, unsigned int filename_off, unsigned int lineno) add_rule() argument
1599 parse_file(struct udev_rules *rules, const char *filename) parse_file() argument
1683 struct udev_rules *rules; udev_rules_new() local
1752 udev_rules_unref(struct udev_rules *rules) udev_rules_unref() argument
1763 udev_rules_check_timestamp(struct udev_rules *rules) udev_rules_check_timestamp() argument
1770 match_key(struct udev_rules *rules, struct token *token, const char *val) match_key() argument
1843 match_attr(struct udev_rules *rules, struct udev_device *dev, struct udev_event *event, struct token *cur) match_attr() argument
1897 udev_rules_apply_to_event(struct udev_rules *rules, struct udev_event *event, usec_t timeout_usec, usec_t timeout_warn_usec, struct udev_list *properties_list, const sigset_t *sigmask) udev_rules_apply_to_event() argument
2626 udev_rules_apply_static_dev_perms(struct udev_rules *rules) udev_rules_apply_static_dev_perms() argument
2773 udev_rules_assigning_name_to(struct udev_rules *rules, const char *match_name) udev_rules_assigning_name_to() argument
[all...]
/base/hiviewdfx/hiview/base/test/unittest/common/
H A Ddispatch_rule_parser_test.cpp104 auto rules = ruleParser.GetRule(); in HWTEST_F() local
105 ASSERT_NE(rules, nullptr); in HWTEST_F()
106 ASSERT_EQ(rules->typeList.size(), TYPE_SIZE); in HWTEST_F()
107 ASSERT_EQ(rules->tagList.size(), TAG_SIZE); in HWTEST_F()
108 ASSERT_EQ(rules->eventList.size(), EVENT_SIZE); in HWTEST_F()
109 ASSERT_EQ(rules->FindEvent("WINDOWMANAGER", "ANIMATION_CALLBACK_TIMEOUT"), true); in HWTEST_F()
110 ASSERT_EQ(rules->FindEvent("COMMON", "COMMON1"), false); in HWTEST_F()
122 auto rules = ruleParser.GetRule(); in HWTEST_F() local
123 ASSERT_NE(rules, nullptr); in HWTEST_F()
124 ASSERT_EQ(rules in HWTEST_F()
139 auto rules = ruleParser.GetRule(); HWTEST_F() local
152 auto rules = ruleParser.GetRule(); HWTEST_F() local
169 auto rules = ruleParser.GetRule(); HWTEST_F() local
[all...]
/third_party/gn/src/gn/
H A Dxcode_object.cc174 void PrintValue(std::ostream& out, IndentRules rules, unsigned value) { in PrintValue() argument
178 void PrintValue(std::ostream& out, IndentRules rules, const char* value) { in PrintValue() argument
183 IndentRules rules, in PrintValue()
188 void PrintValue(std::ostream& out, IndentRules rules, const NoReference& obj) { in PrintValue() argument
192 void PrintValue(std::ostream& out, IndentRules rules, const PBXObject* value) { in PrintValue() argument
198 IndentRules rules, in PrintValue()
200 PrintValue(out, rules, value.get()); in PrintValue()
205 IndentRules rules, in PrintValue()
207 IndentRules sub_rule{rules.one_line, rules in PrintValue()
182 PrintValue(std::ostream& out, IndentRules rules, const std::string& value) PrintValue() argument
197 PrintValue(std::ostream& out, IndentRules rules, const std::unique_ptr<ObjectClass>& value) PrintValue() argument
204 PrintValue(std::ostream& out, IndentRules rules, const std::vector<ValueType>& values) PrintValue() argument
223 PrintValue(std::ostream& out, IndentRules rules, const std::map<std::string, ValueType>& values) PrintValue() argument
243 PrintProperty(std::ostream& out, IndentRules rules, const char* name, ValueType&& value) PrintProperty() argument
448 const IndentRules rules = {false, indent + 1}; Print() local
480 const IndentRules rules = {true, 0}; Print() local
504 const IndentRules rules = {false, indent + 1}; Print() local
537 const IndentRules rules = {true, 0}; Print() local
577 const IndentRules rules = {false, indent + 1}; Print() local
668 const IndentRules rules = {false, indent + 1}; Print() local
760 const IndentRules rules = {false, indent + 1}; Print() local
929 const IndentRules rules = {false, indent + 1}; Print() local
963 const IndentRules rules = {false, indent + 1}; Print() local
992 const IndentRules rules = {false, indent + 1}; Print() local
1024 const IndentRules rules = {false, indent + 1}; Print() local
1060 const IndentRules rules = {false, indent + 1}; Print() local
1086 const IndentRules rules = {false, indent + 1}; Print() local
1138 const IndentRules rules = {false, indent + 1}; Print() local
[all...]
/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
48 if (strlen(rules[i].domain) == 0 || rules[i].eventListSize == 0) { in HiSysEventQuery()
52 for (size_t j = 0; j < rules[i].eventListSize; ++j) { in HiSysEventQuery()
53 eventList.emplace_back(rules[i].eventList[j]); in HiSysEventQuery()
55 std::string cond = rules[i].condition == nullptr ? "" : rules[i].condition; in HiSysEventQuery()
56 queryRules.emplace_back(rules[i].domain, eventList, WHOLE_WORD, 0, cond); in HiSysEventQuery()
63 int HiSysEventAddWatcher(HiSysEventWatcher& watcher, HiSysEventWatchRule rules[], size_t ruleSize) in HiSysEventAddWatcher() argument
67 listenerRules.emplace_back(rules[ in HiSysEventAddWatcher()
100 OH_HiSysEvent_Query(const HiSysEventQueryArg* arg, HiSysEventQueryRule rules[], size_t ruleSize, HiSysEventQueryCallback* callback) OH_HiSysEvent_Query() argument
112 OH_HiSysEvent_Add_Watcher(HiSysEventWatcher* watcher, HiSysEventWatchRule rules[], size_t ruleSize) OH_HiSysEvent_Add_Watcher() argument
[all...]
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
H A DCollationRuleParser.java131 rules = ruleString; in parse()
134 while(ruleIndex < rules.length()) { in parse()
135 char c = rules.charAt(ruleIndex); in parse()
172 if(ruleIndex < rules.length() && rules.charAt(ruleIndex) == 0x23) { in parseRuleChain()
212 if(rules.regionMatches(i, BEFORE, 0, BEFORE.length()) && in parseResetAndPosition()
213 (j = i + BEFORE.length()) < rules.length() && in parseResetAndPosition()
214 PatternProps.isWhiteSpace(rules.charAt(j)) && in parseResetAndPosition()
215 ((j = skipWhiteSpace(j + 1)) + 1) < rules.length() && in parseResetAndPosition()
216 0x31 <= (c = rules in parseResetAndPosition()
908 private String rules; global() field in CollationRuleParser
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/coll/
H A DCollationRuleParser.java135 rules = ruleString; in parse()
138 while(ruleIndex < rules.length()) { in parse()
139 char c = rules.charAt(ruleIndex); in parse()
176 if(ruleIndex < rules.length() && rules.charAt(ruleIndex) == 0x23) { in parseRuleChain()
216 if(rules.regionMatches(i, BEFORE, 0, BEFORE.length()) && in parseResetAndPosition()
217 (j = i + BEFORE.length()) < rules.length() && in parseResetAndPosition()
218 PatternProps.isWhiteSpace(rules.charAt(j)) && in parseResetAndPosition()
219 ((j = skipWhiteSpace(j + 1)) + 1) < rules.length() && in parseResetAndPosition()
220 0x31 <= (c = rules in parseResetAndPosition()
912 private String rules; global() field in CollationRuleParser
[all...]
/third_party/icu/icu4c/source/i18n/
H A Dcollationruleparser.cpp61 rules(NULL), baseData(base), settings(NULL), in CollationRuleParser()
91 rules = &ruleString; in parse()
94 while(ruleIndex < rules->length()) { in parse()
95 UChar c = rules->charAt(ruleIndex); in parse()
136 if(ruleIndex < rules->length() && rules->charAt(ruleIndex) == 0x23) { in parseRuleChain()
179 if(rules->compare(i, BEFORE_LENGTH, BEFORE, 0, BEFORE_LENGTH) == 0 && in parseResetAndPosition()
180 (j = i + BEFORE_LENGTH) < rules->length() && in parseResetAndPosition()
181 PatternProps::isWhiteSpace(rules->charAt(j)) && in parseResetAndPosition()
182 ((j = skipWhiteSpace(j + 1)) + 1) < rules in parseResetAndPosition()
[all...]
H A Dnumber_longnames.h39 forCurrencyLongNames(const Locale &loc, const CurrencyUnit &currency, const PluralRules *rules,
56 * @param rules Does not take ownership.
64 const PluralRules *rules,
82 const PluralRules *rules; member in number::impl::LongNameHandler
89 LongNameHandler(const PluralRules *rules, const MicroPropsGenerator *parent) in LongNameHandler() argument
90 : rules(rules), parent(parent) { in LongNameHandler()
93 LongNameHandler() : rules(nullptr), parent(nullptr) { in LongNameHandler()
152 * @param rules Does not take ownership.
160 const PluralRules *rules,
180 const PluralRules *rules; global() member in number::impl::MixedUnitLongNameHandler
201 MixedUnitLongNameHandler(const PluralRules *rules, const MicroPropsGenerator *parent) MixedUnitLongNameHandler() argument
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A Dcollationruleparser.cpp63 rules(nullptr), baseData(base), settings(nullptr), in CollationRuleParser()
93 rules = &ruleString; in parse()
96 while(ruleIndex < rules->length()) { in parse()
97 char16_t c = rules->charAt(ruleIndex); in parse()
138 if(ruleIndex < rules->length() && rules->charAt(ruleIndex) == 0x23) { in parseRuleChain()
181 if(rules->compare(i, BEFORE_LENGTH, BEFORE, 0, BEFORE_LENGTH) == 0 && in parseResetAndPosition()
182 (j = i + BEFORE_LENGTH) < rules->length() && in parseResetAndPosition()
183 PatternProps::isWhiteSpace(rules->charAt(j)) && in parseResetAndPosition()
184 ((j = skipWhiteSpace(j + 1)) + 1) < rules in parseResetAndPosition()
[all...]
H A Dnumber_longnames.h39 forCurrencyLongNames(const Locale &loc, const CurrencyUnit &currency, const PluralRules *rules,
56 * @param rules Does not take ownership.
64 const PluralRules *rules,
82 const PluralRules *rules; member in number::impl::LongNameHandler
89 LongNameHandler(const PluralRules *rules, const MicroPropsGenerator *parent) in LongNameHandler() argument
90 : rules(rules), parent(parent) { in LongNameHandler()
93 LongNameHandler() : rules(nullptr), parent(nullptr) { in LongNameHandler()
152 * @param rules Does not take ownership.
160 const PluralRules *rules,
180 const PluralRules *rules; global() member in number::impl::MixedUnitLongNameHandler
201 MixedUnitLongNameHandler(const PluralRules *rules, const MicroPropsGenerator *parent) MixedUnitLongNameHandler() argument
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dcollationruleparser.cpp61 rules(NULL), baseData(base), settings(NULL), in CollationRuleParser()
91 rules = &ruleString; in parse()
94 while(ruleIndex < rules->length()) { in parse()
95 UChar c = rules->charAt(ruleIndex); in parse()
136 if(ruleIndex < rules->length() && rules->charAt(ruleIndex) == 0x23) { in parseRuleChain()
179 if(rules->compare(i, BEFORE_LENGTH, BEFORE, 0, BEFORE_LENGTH) == 0 && in parseResetAndPosition()
180 (j = i + BEFORE_LENGTH) < rules->length() && in parseResetAndPosition()
181 PatternProps::isWhiteSpace(rules->charAt(j)) && in parseResetAndPosition()
182 ((j = skipWhiteSpace(j + 1)) + 1) < rules in parseResetAndPosition()
[all...]
H A Dnumber_longnames.h39 forCurrencyLongNames(const Locale &loc, const CurrencyUnit &currency, const PluralRules *rules,
56 * @param rules Does not take ownership.
64 const PluralRules *rules,
82 const PluralRules *rules; member in number::impl::LongNameHandler
89 LongNameHandler(const PluralRules *rules, const MicroPropsGenerator *parent) in LongNameHandler() argument
90 : rules(rules), parent(parent) { in LongNameHandler()
93 LongNameHandler() : rules(nullptr), parent(nullptr) { in LongNameHandler()
152 * @param rules Does not take ownership.
160 const PluralRules *rules,
180 const PluralRules *rules; global() member in number::impl::MixedUnitLongNameHandler
201 MixedUnitLongNameHandler(const PluralRules *rules, const MicroPropsGenerator *parent) MixedUnitLongNameHandler() argument
[all...]
/third_party/python/Tools/peg_generator/pegen/
H A Dparser_generator.py46 def __init__(self, rules: Dict[str, Rule], callmakervisitor: GrammarVisitor) -> None:
47 self.rulses = rules
75 def __init__(self, rules: Dict[str, Rule], tokens: Set[str]):
76 self.rules = rules
80 if node.value not in self.rules and node.value not in self.tokens:
98 self.rules = grammar.rules
100 if "trailer" not in grammar.metas and "start" not in self.rules:
102 checker = RuleCheckingVisitor(self.rules, sel
[all...]
/third_party/python/Lib/test/test_peg_generator/
H A Dtest_pegen.py35 rules = grammar.rules
37 # Check the str() and repr() of a few rules; AST nodes don't support ==.
38 self.assertEqual(str(rules["start"]), "start: sum NEWLINE")
39 self.assertEqual(str(rules["sum"]), "sum: term '+' term | term")
43 self.assertEqual(repr(rules["term"]), expected_repr)
61 self.assertEqual(str(grammar.rules["start"]), textwrap.dedent(expected).strip())
69 rules = parse_string(grammar, GrammarParser).rules
70 # Check the str() and repr() of a few rules; AS
[all...]
/kernel/linux/linux-6.6/security/apparmor/
H A Dresource.c92 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_setrlimit() local
93 typeof(*rules), list); in profile_setrlimit()
96 if (rules->rlimits.mask & (1 << resource) && new_rlim->rlim_max > in profile_setrlimit()
97 rules->rlimits.limits[resource].rlim_max) in profile_setrlimit()
128 * profiles. AppArmor rules currently have the implicit assumption in aa_task_setrlimit()
168 struct aa_ruleset *rules = list_first_entry(&old->rules, in __aa_transition_rlimits() local
169 typeof(*rules), in __aa_transition_rlimits()
171 if (rules in __aa_transition_rlimits()
188 struct aa_ruleset *rules = list_first_entry(&new->rules, __aa_transition_rlimits() local
[all...]
H A Dpolicy_unpack.c565 static bool unpack_secmark(struct aa_ext *e, struct aa_ruleset *rules) in unpack_secmark() argument
575 rules->secmark = kcalloc(size, sizeof(struct aa_secmark), in unpack_secmark()
577 if (!rules->secmark) in unpack_secmark()
580 rules->secmark_count = size; in unpack_secmark()
583 if (!unpack_u8(e, &rules->secmark[i].audit, NULL)) in unpack_secmark()
585 if (!unpack_u8(e, &rules->secmark[i].deny, NULL)) in unpack_secmark()
587 if (!aa_unpack_strdup(e, &rules->secmark[i].label, NULL)) in unpack_secmark()
599 if (rules->secmark) { in unpack_secmark()
601 kfree(rules->secmark[i].label); in unpack_secmark()
602 kfree(rules in unpack_secmark()
611 unpack_rlimits(struct aa_ext *e, struct aa_ruleset *rules) unpack_rlimits() argument
804 struct aa_ruleset *rules; unpack_profile() local
1244 struct aa_ruleset *rules = list_first_entry(&profile->rules, verify_profile() local
[all...]
H A Dnet.c113 struct aa_ruleset *rules = list_first_entry(&profile->rules, in aa_profile_af_perm() local
114 typeof(*rules), list); in aa_profile_af_perm()
124 state = RULE_MEDIATES(rules, AA_CLASS_NET); in aa_profile_af_perm()
130 state = aa_dfa_match_len(rules->policy.dfa, state, (char *) &buffer, in aa_profile_af_perm()
132 perms = *aa_lookup_perms(&rules->policy, state); in aa_profile_af_perm()
226 struct aa_ruleset *rules = list_first_entry(&profile->rules, in aa_secmark_perm() local
227 typeof(*rules), list); in aa_secmark_perm()
229 if (rules in aa_secmark_perm()
[all...]
H A Dcapability.c67 struct aa_ruleset *rules = list_first_entry(&profile->rules, in audit_caps() local
68 typeof(*rules), list); in audit_caps()
77 !cap_raised(rules->caps.audit, cap))) in audit_caps()
81 cap_raised(rules->caps.kill, cap)) { in audit_caps()
83 } else if (cap_raised(rules->caps.quiet, cap) && in audit_caps()
119 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_capable() local
120 typeof(*rules), list); in profile_capable()
123 if (cap_raised(rules in profile_capable()
[all...]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DPluralRulesTest.java96 PluralRules rules = factory.forLocale(locale); in testOverUnderflow()
98 assertEquals(locale + " NaN", "other", rules.select(Double.NaN)); in testOverUnderflow()
99 assertEquals(locale + " ∞", "other", rules.select(Double.POSITIVE_INFINITY)); in testOverUnderflow()
100 assertEquals(locale + " -∞", "other", rules.select(Double.NEGATIVE_INFINITY)); in testOverUnderflow()
163 String rules = (String) shouldFailTest[0]; in testSyntaxRestrictions()
167 PluralRules.parseDescription(rules); in testSyntaxRestrictions()
171 assertEquals("Exception " + rules, exception, actualException); in testSyntaxRestrictions()
194 public void checkOldSamples(String description, PluralRules rules, String keyword, SampleType sampleType, in checkOldSamples() argument
196 Collection<Double> oldSamples = rules.getSamples(keyword, sampleType); in checkOldSamples()
199 rules in checkOldSamples()
260 checkTargets(PluralRules rules, String[] targets) checkTargets() argument
386 checkCategoriesAndExpected(String title1, String categoriesAndExpected, PluralRules rules) checkCategoriesAndExpected() argument
403 checkValue(String title1, PluralRules rules, String expected, String value) checkValue() argument
721 getAssertMessage(String message, ULocale locale, PluralRules rules, String keyword) getAssertMessage() argument
987 getPluralKeyword(PluralRules rules, ULocale locale, double number, String skeleton) getPluralKeyword() argument
[all...]
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DPluralRulesTest.java103 PluralRules rules = factory.forLocale(locale); in testOverUnderflow()
105 assertEquals(locale + " NaN", "other", rules.select(Double.NaN)); in testOverUnderflow()
106 assertEquals(locale + " ∞", "other", rules.select(Double.POSITIVE_INFINITY)); in testOverUnderflow()
107 assertEquals(locale + " -∞", "other", rules.select(Double.NEGATIVE_INFINITY)); in testOverUnderflow()
170 String rules = (String) shouldFailTest[0]; in testSyntaxRestrictions()
174 PluralRules.parseDescription(rules); in testSyntaxRestrictions()
178 assertEquals("Exception " + rules, exception, actualException); in testSyntaxRestrictions()
276 public void checkOldSamples(String description, PluralRules rules, String keyword, SampleType sampleType, in checkOldSamples() argument
278 Collection<DecimalQuantity> oldSamples = rules.getDecimalQuantitySamples(keyword, sampleType); in checkOldSamples()
287 rules in checkOldSamples()
360 checkTargets(PluralRules rules, String[] targets) checkTargets() argument
495 checkCategoriesAndExpected(String title1, String categoriesAndExpected, PluralRules rules) checkCategoriesAndExpected() argument
512 checkValue(String title1, PluralRules rules, String expected, String value) checkValue() argument
1007 getAssertMessage(String message, ULocale locale, PluralRules rules, String keyword) getAssertMessage() argument
1347 getPluralKeyword(PluralRules rules, ULocale locale, double number, String skeleton) getPluralKeyword() argument
[all...]
/third_party/vk-gl-cts/modules/egl/
H A DteglChooseConfigReference.cpp287 std::map<EGLenum, AttribRule> rules; in getDefaultRules() local
290 rules[EGL_BUFFER_SIZE] = AttribRule(EGL_BUFFER_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SMALLER); // 4 in getDefaultRules()
291 rules[EGL_RED_SIZE] = AttribRule(EGL_RED_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECIAL); // 3 in getDefaultRules()
292 rules[EGL_GREEN_SIZE] = AttribRule(EGL_GREEN_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECIAL); // 3 in getDefaultRules()
293 rules[EGL_BLUE_SIZE] = AttribRule(EGL_BLUE_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECIAL); // 3 in getDefaultRules()
294 rules[EGL_LUMINANCE_SIZE] = AttribRule(EGL_LUMINANCE_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECIAL); // 3 in getDefaultRules()
295 rules[EGL_ALPHA_SIZE] = AttribRule(EGL_ALPHA_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECIAL); // 3 in getDefaultRules()
296 rules[EGL_ALPHA_MASK_SIZE] = AttribRule(EGL_ALPHA_MASK_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SMALLER); // 9 in getDefaultRules()
297 rules[EGL_BIND_TO_TEXTURE_RGB] = AttribRule(EGL_BIND_TO_TEXTURE_RGB, EGL_DONT_CARE, CRITERIA_EXACT, SORTORDER_NONE); in getDefaultRules()
298 rules[EGL_BIND_TO_TEXTURE_RGB in getDefaultRules()
[all...]
/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()
24 mZeroRule = rules[PluralRuleType::ZERO]; in PluralRules()
26 mOneRule = rules[PluralRuleType::ONE]; in PluralRules()
28 mTwoRule = rules[PluralRuleType::TWO]; in PluralRules()
30 mFewRule = rules[PluralRuleType::FEW]; in PluralRules()
32 mManyRule = rules[PluralRuleType::MANY]; in PluralRules()
34 mOtherRule = rules[PluralRuleType::OTHER]; in PluralRules()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DNFRuleSet.java20 * A collection of rules used by a RuleBasedNumberFormat to format and
23 * control to it, and to arbitrate between different rules when parsing
38 * The rule set's regular rules
40 private NFRule[] rules; field in NFRuleSet
43 * The rule set's non-numerical rules like negative, fractions, infinity and NaN
48 * These are a pile of fraction rules in declared order. They may have alternate
155 * the description and build rules from it. Since any rule set
162 // the number of rules-- some descriptions may expend into two rules) in parseRules()
169 // Iterate through the rules in parseRules()
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DNFRuleSet.java21 * A collection of rules used by a RuleBasedNumberFormat to format and
24 * control to it, and to arbitrate between different rules when parsing
39 * The rule set's regular rules
41 private NFRule[] rules; field in NFRuleSet
44 * The rule set's non-numerical rules like negative, fractions, infinity and NaN
49 * These are a pile of fraction rules in declared order. They may have alternate
156 * the description and build rules from it. Since any rule set
163 // the number of rules-- some descriptions may expend into two rules) in parseRules()
170 // Iterate through the rules in parseRules()
[all...]

Completed in 16 milliseconds

12345678910>>...35