Home
last modified time | relevance | path

Searched refs:rules (Results 76 - 100 of 778) sorted by relevance

12345678910>>...32

/third_party/python/Lib/turtledemo/
H A Dlindenmayer.py38 def draw( commands, rules ):
41 rules[b]()
44 draw(rules[b], rules)
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/
H A DRBBITest.java14 // Much of the test data that was originally here was removed when the RBBI rules
359 fail("TestBug7547: RuleBasedBreakIterator constructor failed to throw an exception with empty rules."); in TestBug7547()
362 // expected exception with empty rules. in TestBug7547()
371 String rules = "!!chain; !!forward; $v=b c; a b; $v; !!reverse; .*;"; in TestBug12797()
372 RuleBasedBreakIterator bi = new RuleBasedBreakIterator(rules); in TestBug12797()
386 // The Line Break rules for Regional Indicators make use of look-ahead rules, and in TestBug12873()
562 // Check that stripping of comments from rules for getRules() is not confused by in TestBug12677()
563 // the presence of '#' characters in the rules that do not introduce comments. in TestBug12677()
564 String rules in TestBug12677()
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
H A DPluralFormat.java55 * rules define both what plural cases exist in a language, and to
57 * <li>It provides predefined plural rules for many languages. Thus, the programmer
62 * rules, see the CLDR <i>Language Plural Rules</i> page at
72 * a predefined set of plural rules. You can create one using one of
123 * <p>If you need to use <code>PluralFormat</code> with custom rules, you can
140 * plural rules (if they were not defined explicitely).
146 * The plural rules used for plural selection.
179 * The offset to subtract before invoking plural rules.
185 * This locale will be used to get the set of plural rules and for standard
197 * rules fo
225 PluralFormat(PluralRules rules) PluralFormat() argument
238 PluralFormat(ULocale ulocale, PluralRules rules) PluralFormat() argument
251 PluralFormat(Locale locale, PluralRules rules) PluralFormat() argument
322 PluralFormat(PluralRules rules, String pattern) PluralFormat() argument
339 PluralFormat(ULocale ulocale, PluralRules rules, String pattern) PluralFormat() argument
389 init(PluralRules rules, PluralType type, ULocale locale, NumberFormat numberFormat) init() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
H A DPluralFormat.java56 * rules define both what plural cases exist in a language, and to
58 * <li>It provides predefined plural rules for many languages. Thus, the programmer
63 * rules, see the CLDR <i>Language Plural Rules</i> page at
73 * a predefined set of plural rules. You can create one using one of
124 * <p>If you need to use <code>PluralFormat</code> with custom rules, you can
140 * plural rules (if they were not defined explicitely).
146 * The plural rules used for plural selection.
179 * The offset to subtract before invoking plural rules.
185 * This locale will be used to get the set of plural rules and for standard
196 * rules fo
221 PluralFormat(PluralRules rules) PluralFormat() argument
233 PluralFormat(ULocale ulocale, PluralRules rules) PluralFormat() argument
245 PluralFormat(Locale locale, PluralRules rules) PluralFormat() argument
311 PluralFormat(PluralRules rules, String pattern) PluralFormat() argument
327 PluralFormat(ULocale ulocale, PluralRules rules, String pattern) PluralFormat() argument
376 init(PluralRules rules, PluralType type, ULocale locale, NumberFormat numberFormat) init() argument
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dnft_set_pipapo.h52 /* Each n-bit range maps to up to n * 2 rules */
92 * @n: Number of rules (in next field) this rule maps to
114 * @rules: Number of inserted rules
123 unsigned long rules; member
187 int pipapo_refill(unsigned long *map, int len, int rules, unsigned long *dst,
245 * of rules (composing netmasks) the entries expand to. We compute the worst
262 unsigned long rules; in pipapo_estimate_size() local
268 * field can expand to up to n * 2 rules in each bucket, and in pipapo_estimate_size()
271 rules in pipapo_estimate_size()
[all...]
/kernel/linux/linux-6.6/net/netfilter/
H A Dnft_set_pipapo.h52 /* Each n-bit range maps to up to n * 2 rules */
92 * @n: Number of rules (in next field) this rule maps to
114 * @rules: Number of inserted rules
123 unsigned long rules; member
187 int pipapo_refill(unsigned long *map, int len, int rules, unsigned long *dst,
243 * of rules (composing netmasks) the entries expand to. We compute the worst
260 unsigned long rules; in pipapo_estimate_size() local
266 * field can expand to up to n * 2 rules in each bucket, and in pipapo_estimate_size()
269 rules in pipapo_estimate_size()
[all...]
/third_party/skia/buildtools/checkdeps/
H A Djava_checker.py14 from rules import Rule
24 that against the rules in the DEPS files.
138 def CheckLine(self, rules, line, filepath, fail_on_temp_allow=False):
159 rule = rules.RuleApplyingTo(import_path, filepath)
162 return True, results.DependencyViolation(import_path, rule, rules)
165 def CheckFile(self, rules, filepath):
172 is_import, violation = self.CheckLine(rules, line, filepath)
/kernel/linux/linux-5.10/tools/perf/util/
H A Dstrfilter.c160 struct strfilter *strfilter__new(const char *rules, const char **err) in strfilter__new() argument
166 filter->root = strfilter_node__new(rules, &ep); in strfilter__new()
179 const char *rules, const char **err) in strfilter__append()
184 if (!filter || !rules) in strfilter__append()
187 right = strfilter_node__new(rules, &ep); in strfilter__append()
207 int strfilter__or(struct strfilter *filter, const char *rules, const char **err) in strfilter__or() argument
209 return strfilter__append(filter, true, rules, err); in strfilter__or()
212 int strfilter__and(struct strfilter *filter, const char *rules, in strfilter__and() argument
215 return strfilter__append(filter, false, rules, err); in strfilter__and()
238 /* Return true if STR matches the filter rules */
178 strfilter__append(struct strfilter *filter, bool _or, const char *rules, const char **err) strfilter__append() argument
[all...]
H A Dstrfilter.h23 * @rules: Filter rule, which is a combination of glob expressions.
24 * @err: Pointer which points an error detected on @rules
26 * Parse @rules and return new strfilter. Return NULL if an error detected.
30 struct strfilter *strfilter__new(const char *rules, const char **err);
35 * @rules: Filter rule to be appended at left of the root of
37 * @err: Pointer which points an error detected on @rules
39 * Parse @rules and join it to the @filter by using logical-or.
43 const char *rules, const char **err);
48 * @rules: Filter rule to be appended at left of the root of
50 * @err: Pointer which points an error detected on @rules
[all...]
/kernel/linux/linux-6.6/tools/perf/util/
H A Dstrfilter.c160 struct strfilter *strfilter__new(const char *rules, const char **err) in strfilter__new() argument
166 filter->root = strfilter_node__new(rules, &ep); in strfilter__new()
179 const char *rules, const char **err) in strfilter__append()
184 if (!filter || !rules) in strfilter__append()
187 right = strfilter_node__new(rules, &ep); in strfilter__append()
207 int strfilter__or(struct strfilter *filter, const char *rules, const char **err) in strfilter__or() argument
209 return strfilter__append(filter, true, rules, err); in strfilter__or()
212 int strfilter__and(struct strfilter *filter, const char *rules, in strfilter__and() argument
215 return strfilter__append(filter, false, rules, err); in strfilter__and()
238 /* Return true if STR matches the filter rules */
178 strfilter__append(struct strfilter *filter, bool _or, const char *rules, const char **err) strfilter__append() argument
[all...]
H A Dstrfilter.h23 * @rules: Filter rule, which is a combination of glob expressions.
24 * @err: Pointer which points an error detected on @rules
26 * Parse @rules and return new strfilter. Return NULL if an error detected.
30 struct strfilter *strfilter__new(const char *rules, const char **err);
35 * @rules: Filter rule to be appended at left of the root of
37 * @err: Pointer which points an error detected on @rules
39 * Parse @rules and join it to the @filter by using logical-or.
43 const char *rules, const char **err);
48 * @rules: Filter rule to be appended at left of the root of
50 * @err: Pointer which points an error detected on @rules
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A Dnumber_patternmodifier.cpp43 const PluralRules* rules, in setSymbols()
45 U_ASSERT((rules != nullptr) == needsPlurals()); in setSymbols()
49 fRules = rules; in setSymbols()
128 ImmutablePatternModifier::ImmutablePatternModifier(AdoptingModifierStore* pm, const PluralRules* rules) in ImmutablePatternModifier() argument
129 : pm(pm), rules(rules), parent(nullptr) {} in ImmutablePatternModifier()
143 if (rules == nullptr) { in applyToMicros()
146 StandardPlural::Form pluralForm = utils::getPluralSafe(micros.rounder, rules, quantity, status); in applyToMicros()
152 if (rules == nullptr) { in getModifier()
40 setSymbols(const DecimalFormatSymbols* symbols, const CurrencyUnit& currency, const UNumberUnitWidth unitWidth, const PluralRules* rules, UErrorCode& status) setSymbols() argument
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
H A DMacroProps.java37 public PluralRules rules; // not in API; could be made public in the future field in MacroProps
82 if (rules == null) in fallback()
83 rules = fallback.rules; in fallback()
107 rules, in hashCode()
137 && Objects.equals(rules, other.rules) in equals()
/third_party/icu/icu4c/source/python/icutools/databuilder/renderers/
H A Dmakefile.py148 # Special case for multiple output files: Makefile rules should have only one
153 rules = [
172 rules += [
181 return rules
212 rules = []
218 rules += [
234 rules += [
243 return rules
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/number/
H A DCompactNotation.java68 PluralRules rules, in withLocaleData()
73 return new CompactHandler(this, locale, nsName, compactType, rules, buildReference, safe, parent); in withLocaleData()
78 final PluralRules rules; field in CompactNotation.CompactHandler
89 PluralRules rules, in CompactHandler()
93 this.rules = rules; in CompactHandler()
142 StandardPlural plural = quantity.getStandardPlural(rules); in processQuantity()
64 withLocaleData( ULocale locale, String nsName, CompactType compactType, PluralRules rules, MutablePatternModifier buildReference, boolean safe, MicroPropsGenerator parent) withLocaleData() argument
84 CompactHandler( CompactNotation notation, ULocale locale, String nsName, CompactType compactType, PluralRules rules, MutablePatternModifier buildReference, boolean safe, MicroPropsGenerator parent) CompactHandler() argument
H A DNumberFormatterImpl.java198 PluralRules rules = macros.rules; in macrosToMicroGenerator()
329 if (rules == null) { in macrosToMicroGenerator()
331 rules = PluralRules.forLocale(macros.loc); in macrosToMicroGenerator()
333 patternMod.setSymbols(micros.symbols, currency, unitWidth, rules); in macrosToMicroGenerator()
344 if (rules == null) { in macrosToMicroGenerator()
346 rules = PluralRules.forLocale(macros.loc); in macrosToMicroGenerator()
349 .forMeasureUnit(macros.loc, macros.unit, macros.perUnit, unitWidth, rules, chain); in macrosToMicroGenerator()
351 if (rules == null) { in macrosToMicroGenerator()
353 rules in macrosToMicroGenerator()
[all...]
/third_party/skia/third_party/externals/icu/source/python/icutools/databuilder/renderers/
H A Dmakefile.py148 # Special case for multiple output files: Makefile rules should have only one
153 rules = [
172 rules += [
181 return rules
212 rules = []
218 rules += [
234 rules += [
243 return rules
/third_party/python/Doc/tools/extensions/
H A Dsuspicious.py113 unused_rules = [rule for rule in self.rules if not rule.used]
116 'Found %s/%s unused rules: %s' % (
117 len(unused_rules), len(self.rules),
130 for rule in self.rules:
168 self.logger.info("loading ignore rules... ", nonl=1)
169 self.rules = rules = []
184 rules.append(rule)
186 self.logger.info('done, %d rules loaded' % len(self.rules))
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
H A DNumberFormatterImpl.java219 PluralRules rules = macros.rules; in macrosToMicroGenerator()
375 if (rules == null) { in macrosToMicroGenerator()
377 rules = PluralRules.forLocale(macros.loc); in macrosToMicroGenerator()
379 patternMod.setSymbols(micros.symbols, currency, unitWidth, rules); in macrosToMicroGenerator()
399 if (rules == null) { in macrosToMicroGenerator()
401 rules = PluralRules.forLocale(macros.loc); in macrosToMicroGenerator()
403 PluralRules pluralRules = macros.rules != null ? in macrosToMicroGenerator()
404 macros.rules : in macrosToMicroGenerator()
446 if (rules in macrosToMicroGenerator()
[all...]
/third_party/skia/third_party/externals/angle2/src/feature_support_util/
H A Dfeature_support_util.cpp7 // feature_support_util.cpp: Helps client APIs make decisions based on rules
60 // The JSON identifier for the top-level set of rules. This is an object, the value of which is an
61 // array of rules. The rules will be processed in order. If a rule matches, the rule's version of
62 // the answer (true or false) becomes the new answer. After all rules are processed, the
571 // This encapsulates a particular scenario to check against the rules. A Scenario is similar to a
585 VERBOSE(" Scenario to compare against the rules:\n"); in logScenario()
654 RuleList *rules = new RuleList; in ReadRulesFromJsonString() local
667 VERBOSE("Failed to parse rules from json file. Error: %s\n", errorMessage.c_str()); in ReadRulesFromJsonString()
700 rules in ReadRulesFromJsonString()
789 RuleList *rules = RuleList::ReadRulesFromJsonString(rulesFileContents); ANGLEAndroidParseRulesString() local
845 RuleList *rules = static_cast<RuleList *>(rulesHandle); ANGLEShouldBeUsedForApplication() local
872 RuleList *rules = static_cast<RuleList *>(rulesHandle); ANGLEFreeRulesHandle() local
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/number/
H A DLongNameHandler.java165 private final PluralRules rules; field in LongNameHandler
170 PluralRules rules, in LongNameHandler()
173 this.rules = rules; in LongNameHandler()
186 PluralRules rules, in forCurrencyLongNames()
193 LongNameHandler result = new LongNameHandler(modifiers, rules, parent); in forCurrencyLongNames()
203 PluralRules rules, in forMeasureUnit()
212 return forCompoundUnit(locale, unit, perUnit, width, rules, parent); in forMeasureUnit()
221 LongNameHandler result = new LongNameHandler(modifiers, rules, parent); in forMeasureUnit()
231 PluralRules rules, in forCompoundUnit()
168 LongNameHandler( Map<StandardPlural, SimpleModifier> modifiers, PluralRules rules, MicroPropsGenerator parent) LongNameHandler() argument
183 forCurrencyLongNames( ULocale locale, Currency currency, PluralRules rules, MicroPropsGenerator parent) forCurrencyLongNames() argument
198 forMeasureUnit( ULocale locale, MeasureUnit unit, MeasureUnit perUnit, UnitWidth width, PluralRules rules, MicroPropsGenerator parent) forMeasureUnit() argument
226 forCompoundUnit( ULocale locale, MeasureUnit unit, MeasureUnit perUnit, UnitWidth width, PluralRules rules, MicroPropsGenerator parent) forCompoundUnit() argument
[all...]
/kernel/linux/linux-6.6/drivers/media/i2c/ccs/
H A Dccs-data.c435 struct ccs_rule *rules_base = NULL, *rules = NULL, *next_rule = NULL; in ccs_data_parse_rules() local
442 bin_alloc(bin, sizeof(*rules) * *__num_rules); in ccs_data_parse_rules()
495 rules = next_rule; in ccs_data_parse_rules()
513 rules->if_rules = if_rule; in ccs_data_parse_rules()
514 rules->num_if_rules = __num_if_rules; in ccs_data_parse_rules()
517 /* Check there was an if rule before any other rules */ in ccs_data_parse_rules()
518 if (bin->base && !rules) in ccs_data_parse_rules()
524 rules ? in ccs_data_parse_rules()
525 &rules->read_only_regs : NULL, in ccs_data_parse_rules()
526 rules in ccs_data_parse_rules()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c33 struct mlx5_ttc_rule rules[MLX5_NUM_TT]; member
47 if (!IS_ERR_OR_NULL(ttc->rules[i].rule)) { in mlx5_cleanup_ttc_rules()
48 mlx5_del_flow_rules(ttc->rules[i].rule); in mlx5_cleanup_ttc_rules()
49 ttc->rules[i].rule = NULL; in mlx5_cleanup_ttc_rules()
240 struct mlx5_ttc_rule *rules; in mlx5_generate_ttc_table_rules() local
246 rules = ttc->rules; in mlx5_generate_ttc_table_rules()
248 struct mlx5_ttc_rule *rule = &rules[tt]; in mlx5_generate_ttc_table_rules()
400 struct mlx5_ttc_rule *rules; in mlx5_generate_inner_ttc_table_rules() local
406 rules in mlx5_generate_inner_ttc_table_rules()
[all...]
/kernel/linux/linux-6.6/security/apparmor/
H A Dfile.c233 struct aa_ruleset *rules = list_first_entry(&profile->rules, in __aa_path_perm() local
234 typeof(*rules), list); in __aa_path_perm()
239 aa_str_perms(&(rules->file), rules->file.start[AA_CLASS_FILE], in __aa_path_perm()
332 struct aa_ruleset *rules = list_first_entry(&profile->rules, in profile_path_link() local
333 typeof(*rules), list); in profile_path_link()
356 state = aa_str_perms(&(rules->file), in profile_path_link()
357 rules in profile_path_link()
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dregcoll.cpp84 // Collator -> rules -> Collator round-trip broken for expanding characters
88 UnicodeString rules; in Test4051866() local
91 rules += "&n < o "; in Test4051866()
92 rules += "& oe ,o"; in Test4051866()
93 rules += (UChar)0x3080; in Test4051866()
94 rules += "& oe ,"; in Test4051866()
95 rules += (UChar)0x1530; in Test4051866()
96 rules += " ,O"; in Test4051866()
97 rules += "& OE ,O"; in Test4051866()
98 rules in Test4051866()
273 UnicodeString rules = "&9 < a < b , c/a < d < z"; Test4059820() local
299 UnicodeString rules; Test4060154() local
711 UnicodeString rules = "&9 < a < b"; Test4101940() local
[all...]

Completed in 24 milliseconds

12345678910>>...32