Home
last modified time | relevance | path

Searched refs:rules (Results 1 – 25 of 2206) sorted by relevance

12345678910>>...89

/external/iproute2/tc/
Dem_canid.c41 struct rules { struct
58 static int canid_parse_rule(struct rules *rules, struct bstr *a, int iseff) in canid_parse_rule() argument
72 if (rules->rules_cnt == rules->rules_capacity) { in canid_parse_rule()
73 if (rules->rules_capacity <= EM_CANID_RULES_MAX/2) { in canid_parse_rule()
74 rules->rules_capacity *= 2; in canid_parse_rule()
75 rules->rules_raw = realloc(rules->rules_raw, in canid_parse_rule()
76 sizeof(struct can_filter) * rules->rules_capacity); in canid_parse_rule()
82 rules->rules_raw[rules->rules_cnt].can_id = in canid_parse_rule()
84 rules->rules_raw[rules->rules_cnt].can_mask = in canid_parse_rule()
87 rules->rules_cnt++; in canid_parse_rule()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
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.charAt(j)) && c <= 0x33 && in parseResetAndPosition()
221 rules.charAt(j + 1) == 0x5d) { in parseResetAndPosition()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
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.charAt(j)) && c <= 0x33 && in parseResetAndPosition()
217 rules.charAt(j + 1) == 0x5d) { in parseResetAndPosition()
[all …]
/external/icu/icu4c/source/i18n/
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->length() && in parseResetAndPosition()
183 0x31 <= (c = rules->charAt(j)) && c <= 0x33 && in parseResetAndPosition()
[all …]
Dnfrs.cpp138 , rules(0) in NFRuleSet()
209 rules.deleteAll(); in parseRules()
222 NFRule::makeRules(currentDescription, this, rules.last(), owner, rules, status); in parseRules()
235 int32_t rulesSize = rules.size(); in parseRules()
237 NFRule* rule = rules[i]; in parseRules()
350 if (rules.size() == rhs.rules.size() && in operator ==()
362 for (uint32_t i = 0; i < rules.size(); ++i) { in operator ==()
363 if (*rules[i] != *rhs.rules[i]) { in operator ==()
374 for (uint32_t i = 0; i < rules.size(); ++i) { in setDecimalFormatSymbols()
375 rules[i]->setDecimalFormatSymbols(newSymbols, status); in setDecimalFormatSymbols()
[all …]
Drbt_set.cpp174 rules = NULL; in TransliterationRuleSet()
184 rules(0), in TransliterationRuleSet()
206 if (other.rules != 0 && U_SUCCESS(status)) { in TransliterationRuleSet()
217 uprv_free(rules); in ~TransliterationRuleSet()
226 rules[i]->setData(d); in setData()
261 uprv_free(rules); in addRule()
262 rules = 0; in addRule()
338 uprv_free(rules); // Contains alias pointers in freeze()
342 rules = NULL; in freeze()
345 rules = (TransliterationRule **)uprv_malloc(v.size() * sizeof(TransliterationRule *)); in freeze()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DPluralRulesTest.java91 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() local
93 assertEquals(locale + " NaN", "other", rules.select(Double.NaN)); in testOverUnderflow()
94 assertEquals(locale + " ∞", "other", rules.select(Double.POSITIVE_INFINITY)); in testOverUnderflow()
95 assertEquals(locale + " -∞", "other", rules.select(Double.NEGATIVE_INFINITY)); in testOverUnderflow()
158 String rules = (String) shouldFailTest[0]; in testSyntaxRestrictions() local
162 PluralRules.parseDescription(rules); in testSyntaxRestrictions()
166 assertEquals("Exception " + rules, exception, actualException); in testSyntaxRestrictions()
189 …public void checkOldSamples(String description, PluralRules rules, String keyword, SampleType samp…
191 Collection<Double> oldSamples = rules.getSamples(keyword, sampleType);
194 rules.getSamples(keyword, sampleType);
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRulesTest.java88 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() local
90 assertEquals(locale + " NaN", "other", rules.select(Double.NaN)); in testOverUnderflow()
91 assertEquals(locale + " ∞", "other", rules.select(Double.POSITIVE_INFINITY)); in testOverUnderflow()
92 assertEquals(locale + " -∞", "other", rules.select(Double.NEGATIVE_INFINITY)); in testOverUnderflow()
155 String rules = (String) shouldFailTest[0]; in testSyntaxRestrictions() local
159 PluralRules.parseDescription(rules); in testSyntaxRestrictions()
163 assertEquals("Exception " + rules, exception, actualException); in testSyntaxRestrictions()
186 …public void checkOldSamples(String description, PluralRules rules, String keyword, SampleType samp…
188 Collection<Double> oldSamples = rules.getSamples(keyword, sampleType);
191 rules.getSamples(keyword, sampleType);
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFRuleSet.java40 private NFRule[] rules; field in NFRuleSet
227 rules = new NFRule[tempRules.size()]; in parseRules()
228 tempRules.toArray(rules); in parseRules()
316 || rules.length != that2.rules.length in equals()
330 for (int i = 0; i < rules.length; i++) { in equals()
331 if (!rules[i].equals(that2.rules[i])) { in equals()
362 for (NFRule rule : rules) { in toString()
569 int hi = rules.length; in findNormalRule()
573 long ruleBaseValue = rules[mid].getBaseValue(); in findNormalRule()
575 return rules[mid]; in findNormalRule()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFRuleSet.java41 private NFRule[] rules; field in NFRuleSet
228 rules = new NFRule[tempRules.size()]; in parseRules()
229 tempRules.toArray(rules); in parseRules()
317 || rules.length != that2.rules.length in equals()
331 for (int i = 0; i < rules.length; i++) { in equals()
332 if (!rules[i].equals(that2.rules[i])) { in equals()
363 for (NFRule rule : rules) { in toString()
570 int hi = rules.length; in findNormalRule()
574 long ruleBaseValue = rules[mid].getBaseValue(); in findNormalRule()
576 return rules[mid]; in findNormalRule()
[all …]
DTransliterationRuleSet.java48 private TransliterationRule[] rules; field in TransliterationRuleSet
85 rules = null; in addRule()
144 rules = new TransliterationRule[v.size()]; in freeze()
145 v.toArray(rules); in freeze()
158 TransliterationRule r1 = rules[j]; in freeze()
160 TransliterationRule r2 = rules[k]; in freeze()
196 int m = rules[i].matchAndReplace(text, pos, incremental); in transliterate()
201 rules[i].toRule(true) + " => " + in transliterate()
208 rules[i].toRule(true) + " => " + in transliterate()
214 System.out.println("Rule: no match " + rules[i]); in transliterate()
/external/deqp/modules/egl/
DteglChooseConfigReference.cpp287 std::map<EGLenum, AttribRule> rules; in getDefaultRules() local
290rules[EGL_BUFFER_SIZE] = AttribRule(EGL_BUFFER_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SMA… in getDefaultRules()
291rules[EGL_RED_SIZE] = AttribRule(EGL_RED_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECIAL… in getDefaultRules()
292rules[EGL_GREEN_SIZE] = AttribRule(EGL_GREEN_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECI… in getDefaultRules()
293rules[EGL_BLUE_SIZE] = AttribRule(EGL_BLUE_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECIA… in getDefaultRules()
294rules[EGL_LUMINANCE_SIZE] = AttribRule(EGL_LUMINANCE_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER… in getDefaultRules()
295rules[EGL_ALPHA_SIZE] = AttribRule(EGL_ALPHA_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECI… in getDefaultRules()
296rules[EGL_ALPHA_MASK_SIZE] = AttribRule(EGL_ALPHA_MASK_SIZE, 0, CRITERIA_AT_LEAST, SORTORD… in getDefaultRules()
297rules[EGL_BIND_TO_TEXTURE_RGB] = AttribRule(EGL_BIND_TO_TEXTURE_RGB, EGL_DONT_CARE, CRITERIA_EX… in getDefaultRules()
298rules[EGL_BIND_TO_TEXTURE_RGBA] = AttribRule(EGL_BIND_TO_TEXTURE_RGBA, EGL_DONT_CARE, CRITERIA_… in getDefaultRules()
[all …]
/external/libtextclassifier/actions/
Dzlib-utils_test.cc34 model.rules.reset(new RulesModelT); in TEST()
35 model.rules->rule.emplace_back(new RulesModel_::RuleT); in TEST()
36 model.rules->rule.back()->pattern = kTestPattern1; in TEST()
37 model.rules->rule.emplace_back(new RulesModel_::RuleT); in TEST()
38 model.rules->rule.back()->pattern = kTestPattern2; in TEST()
44 EXPECT_TRUE(model.rules->rule[0]->pattern.empty()); in TEST()
45 EXPECT_TRUE(model.rules->rule[1]->pattern.empty()); in TEST()
58 compressed_model->rules()->rule()->Get(0)->compressed_pattern(), in TEST()
62 compressed_model->rules()->rule()->Get(1)->compressed_pattern(), in TEST()
66 EXPECT_EQ(model.rules->rule[0]->pattern, kTestPattern1); in TEST()
[all …]
/external/antlr/gunit/src/main/java/org/antlr/gunit/swingui/model/
DTestSuite.java36 protected List<Rule> rules ; field in TestSuite
44 rules = new ArrayList<Rule>(); in TestSuite()
54 rules.add(currentRule); in addRule()
59 for(Rule r: rules) { in hasRule()
68 return rules.size(); in getRuleCount()
72 rules.clear(); in setRules()
73 rules.addAll(newRules); in setRules()
82 public Rule getRule(int index) { return rules.get(index); } in getRule()
89 for(Rule rule: rules) { in getRule()
98 public List<Rule> getRulesForStringTemplate() {return rules;} in getRulesForStringTemplate()
/external/icu/icu4c/source/test/cintltst/
Dcg7coll.c202 static const char rules[] = "& Z < p, P"; in TestDemo1() local
203 int32_t len=(int32_t)strlen(rules); in TestDemo1()
204 UChar temp[sizeof(rules)]; in TestDemo1()
206 u_uastrcpy(temp, rules); in TestDemo1()
233 static const char rules[] = "& C < ch , cH, Ch, CH"; in TestDemo2() local
234 int32_t len=(int32_t)strlen(rules); in TestDemo2()
235 UChar temp[sizeof(rules)]; in TestDemo2()
237 u_uastrcpy(temp, rules); in TestDemo2()
262 static const char rules[] = "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'"; in TestDemo3() local
263 int32_t len=(int32_t)strlen(rules); in TestDemo3()
[all …]
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/
DTestPluralRuleGeneration.java28 PluralRules rules = PluralRules.createRules("one:i = 0 or n = 1"); in TestGeneration() local
29 boolean i = rules.computeLimited("one", SampleType.INTEGER); in TestGeneration()
30 boolean d = rules.computeLimited("one", SampleType.DECIMAL); in TestGeneration()
42 PluralRules rules = PluralRules in TestFilipino() local
61 PluralRules rules = info.getPluralRules(); in TestAtoms() local
62 if (seen.contains(rules)) { in TestAtoms()
65 seen.add(rules); in TestAtoms()
66 for (String keyword : rules.getKeywords()) { in TestAtoms()
67 String rulesString = rules.getRules(keyword); in TestAtoms()
76 boolean i = rules.computeLimited("one", in TestAtoms()
[all …]
/external/cldr/tools/java/org/unicode/cldr/util/
DExtractCollationRules.java29 StringBuffer rules = new StringBuffer(); field in ExtractCollationRules
34 rules.setLength(0); in set()
49 type_rules.put(lastType, rules.toString()); in set()
50 rules.setLength(0); in set()
56 writeSettings(parts.getAttributes(3), rules); in set()
99 type_rules.put(lastType, rules.toString()); in set()
110 rules.append(CldrUtility.LINE_SEPARATOR); in appendOrdering()
112 rules.append(' '); in appendOrdering()
113 rules.append(relation); in appendOrdering()
114 if (context != null) rules.append(' ').append(quote(context)); in appendOrdering()
[all …]
/external/autotest/client/site_tests/network_DhcpNak/
Dnetwork_DhcpNak.py59 rules = [
71 rules[-1].is_final_handler = True
73 rules, dhcp_test_base.DHCP_NEGOTIATION_TIMEOUT_SECONDS)
84 rules = [
94 rules[-1].is_final_handler = True
96 rules, dhcp_test_base.DHCP_NEGOTIATION_TIMEOUT_SECONDS)
111 rules = [
119 rules[-1].is_final_handler = True
121 rules, dhcp_test_base.DHCP_NEGOTIATION_TIMEOUT_SECONDS)
142 rules = [
[all …]
/external/icu/icu4c/source/test/testdata/
Dcollationtest.txt19 # A collator can be built with "@ rules".
20 # An "@ rules" line is followed by one or more lines with the tailoring rules.
34 @ rules
67 @ rules
414 ** test: empty rules
415 @ rules
422 ** test: very simple rules
423 @ rules
439 @ rules
449 @ rules
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/data/
Dcollationtest.txt21 # A collator can be built with "@ rules".
22 # An "@ rules" line is followed by one or more lines with the tailoring rules.
36 @ rules
69 @ rules
416 ** test: empty rules
417 @ rules
424 ** test: very simple rules
425 @ rules
441 @ rules
451 @ rules
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/data/
Dcollationtest.txt21 # A collator can be built with "@ rules".
22 # An "@ rules" line is followed by one or more lines with the tailoring rules.
36 @ rules
69 @ rules
416 ** test: empty rules
417 @ rules
424 ** test: very simple rules
425 @ rules
441 @ rules
451 @ rules
[all …]
/external/jacoco/org.jacoco.report.test/src/org/jacoco/report/check/
DBundleCheckerTest.java42 private List<Rule> rules; field in BundleCheckerTest
48 rules = new ArrayList<Rule>(); in setup()
56 final BundleChecker checker = new BundleChecker(rules, names, this); in testBundleLimit()
64 final BundleChecker checker = new BundleChecker(rules, names, this); in testPackageLimit()
72 final BundleChecker checker = new BundleChecker(rules, names, this); in testSourceFileLimit()
80 final BundleChecker checker = new BundleChecker(rules, names, this); in testClassLimit()
88 final BundleChecker checker = new BundleChecker(rules, names, this); in testMethodLimit()
96 final BundleChecker checker = new BundleChecker(rules, names, this); in testGroupLimitNotSupported()
107 rules.add(rule); in testLimitOk()
108 final BundleChecker checker = new BundleChecker(rules, names, this); in testLimitOk()
[all …]
/external/libxkbcommon/xkbcommon/test/
Drules-file.c30 const char *rules; member
53 data->rules, data->model, data->layout, data->variant, data->options in test_rules()
57 fprintf(stderr, "\n\nChecking : %s\t%s\t%s\t%s\t%s\n", data->rules, in test_rules()
96 .rules = "simple", in main()
108 .rules = "simple", in main()
118 .rules = "groups", in main()
128 .rules = "groups", in main()
138 .rules = "simple", in main()
148 .rules = "index", in main()
160 .rules = "multiple-options", in main()
/external/v8/tools/testrunner/local/
Dstatusfile_unittest.py90 rules, prefix_rules = statusfile.ReadStatusFile(
98 rules[''],
106 self.assertEquals({}, rules['default'])
110 rules, prefix_rules = statusfile.ReadStatusFile(
118 rules[''],
126 self.assertEquals({}, rules['default'])
130 rules, prefix_rules = statusfile.ReadStatusFile(
140 rules[''],
152 rules['default'],
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DTransliterationRuleSet.java47 private TransliterationRule[] rules; field in TransliterationRuleSet
84 rules = null; in addRule()
143 rules = new TransliterationRule[v.size()]; in freeze()
144 v.toArray(rules); in freeze()
157 TransliterationRule r1 = rules[j]; in freeze()
159 TransliterationRule r2 = rules[k]; in freeze()
195 int m = rules[i].matchAndReplace(text, pos, incremental); in transliterate()
200 rules[i].toRule(true) + " => " + in transliterate()
207 rules[i].toRule(true) + " => " + in transliterate()
213 System.out.println("Rule: no match " + rules[i]); in transliterate()

12345678910>>...89