Home
last modified time | relevance | path

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

12345678910>>...54

/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DCollationRuleParser.java129 rules = ruleString; in parse()
132 while(ruleIndex < rules.length()) { in parse()
133 char c = rules.charAt(ruleIndex); in parse()
170 if(ruleIndex < rules.length() && rules.charAt(ruleIndex) == 0x23) { in parseRuleChain()
210 if(rules.regionMatches(i, BEFORE, 0, BEFORE.length()) && in parseResetAndPosition()
211 (j = i + BEFORE.length()) < rules.length() && in parseResetAndPosition()
212 PatternProps.isWhiteSpace(rules.charAt(j)) && in parseResetAndPosition()
213 ((j = skipWhiteSpace(j + 1)) + 1) < rules.length() && in parseResetAndPosition()
214 0x31 <= (c = rules.charAt(j)) && c <= 0x33 && in parseResetAndPosition()
215 rules.charAt(j + 1) == 0x5d) { in parseResetAndPosition()
[all …]
/external/icu/icu4c/source/i18n/
Dcollationruleparser.cpp59 rules(NULL), baseData(base), settings(NULL), in CollationRuleParser()
89 rules = &ruleString; in parse()
92 while(ruleIndex < rules->length()) { in parse()
93 UChar c = rules->charAt(ruleIndex); in parse()
134 if(ruleIndex < rules->length() && rules->charAt(ruleIndex) == 0x23) { in parseRuleChain()
177 if(rules->compare(i, BEFORE_LENGTH, BEFORE, 0, BEFORE_LENGTH) == 0 && in parseResetAndPosition()
178 (j = i + BEFORE_LENGTH) < rules->length() && in parseResetAndPosition()
179 PatternProps::isWhiteSpace(rules->charAt(j)) && in parseResetAndPosition()
180 ((j = skipWhiteSpace(j + 1)) + 1) < rules->length() && in parseResetAndPosition()
181 0x31 <= (c = rules->charAt(j)) && c <= 0x33 && in parseResetAndPosition()
[all …]
Dnfrs.cpp123 , rules(0) in NFRuleSet()
194 rules.deleteAll(); in parseRules()
207 NFRule::makeRules(currentDescription, this, rules.last(), owner, rules, status); in parseRules()
221 while (i < rules.size()) { in parseRules()
222 NFRule* rule = rules[i]; in parseRules()
244 negativeNumberRule = rules.remove(i); in parseRules()
253 fractionRules[0] = rules.remove(i); in parseRules()
262 fractionRules[1] = rules.remove(i); in parseRules()
271 fractionRules[2] = rules.remove(i); in parseRules()
317 if (rules.size() == rhs.rules.size() && in operator ==()
[all …]
Drbt_set.cpp172 rules = NULL; in TransliterationRuleSet()
182 rules(0), in TransliterationRuleSet()
204 if (other.rules != 0 && U_SUCCESS(status)) { in TransliterationRuleSet()
215 uprv_free(rules); in ~TransliterationRuleSet()
224 rules[i]->setData(d); in setData()
259 uprv_free(rules); in addRule()
260 rules = 0; in addRule()
336 uprv_free(rules); // Contains alias pointers in freeze()
340 rules = NULL; in freeze()
343 rules = (TransliterationRule **)uprv_malloc(v.size() * sizeof(TransliterationRule *)); in freeze()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFRuleSet.java37 private NFRule[] rules; field in NFRuleSet
248 rules = new NFRule[tempRules.size()]; in parseRules()
249 tempRules.toArray(rules); in parseRules()
286 || rules.length != that2.rules.length in equals()
293 for (int i = 0; i < rules.length; i++) { in equals()
294 if (!rules[i].equals(that2.rules[i])) { in equals()
323 for (int i = 0; i < rules.length; i++) { in toString()
324 result.append(" ").append(rules[i].toString()).append("\n"); in toString()
516 int hi = rules.length; in findNormalRule()
520 long ruleBaseValue = rules[mid].getBaseValue(); in findNormalRule()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DPluralRulesTest.java84 PluralRules rules = factory.forLocale(locale); in testOverUnderflow() local
86 assertEquals(locale + " NaN", "other", rules.select(Double.NaN)); in testOverUnderflow()
87 assertEquals(locale + " ∞", "other", rules.select(Double.POSITIVE_INFINITY)); in testOverUnderflow()
88 assertEquals(locale + " -∞", "other", rules.select(Double.NEGATIVE_INFINITY)); in testOverUnderflow()
150 String rules = (String) shouldFailTest[0]; in testSyntaxRestrictions() local
154 PluralRules.parseDescription(rules); in testSyntaxRestrictions()
158 assertEquals("Exception " + rules, exception, actualException); in testSyntaxRestrictions()
180 …public void checkOldSamples(String description, PluralRules rules, String keyword, SampleType samp…
182 Collection<Double> oldSamples = rules.getSamples(keyword, sampleType);
185 rules.getSamples(keyword, sampleType);
[all …]
/external/bison/src/
Dgram.c37 rule *rules = NULL; variable
164 int length = rule_rhs_length (&rules[r]); in ritem_longest_rhs()
183 if (filter && !filter (&rules[r])) in grammar_rules_partial_print()
187 else if (previous_lhs && previous_lhs != rules[r].lhs) in grammar_rules_partial_print()
190 rule_lhs_print (&rules[r], previous_lhs, out); in grammar_rules_partial_print()
191 rule_rhs_print (&rules[r], out); in grammar_rules_partial_print()
192 previous_lhs = rules[r].lhs; in grammar_rules_partial_print()
217 if (rule_useless_in_grammar_p (&rules[r])) in grammar_rules_print_xml()
219 else if (rule_useless_in_parser_p (&rules[r])) in grammar_rules_print_xml()
225 rules[r].number, usefulness); in grammar_rules_print_xml()
[all …]
Dreduce.c74 for (rhsp = rules[r].rhs; *rhsp >= 0; ++rhsp) in useful_production()
120 bitset_set (Np, rules[r].lhs->number - ntokens); in useless_nonterminals()
178 && bitset_test (V, rules[r].lhs->number)) in inaccessable_symbols()
181 for (rhsp = rules[r].rhs; *rhsp >= 0; rhsp++) in inaccessable_symbols()
222 if (rules[r].precsym != 0) in inaccessable_symbols()
223 bitset_set (V1, rules[r].precsym->number); in inaccessable_symbols()
240 rules[r].useful = bitset_test (P, r); in reduce_grammar_tables()
252 rules_sorted[rules[r].useful ? useful++ : useless++] = rules[r]; in reduce_grammar_tables()
253 free (rules); in reduce_grammar_tables()
254 rules = rules_sorted; in reduce_grammar_tables()
[all …]
Dreader.c510 rules = xnmalloc (nrules, sizeof *rules); in packgram()
518 rules[ruleno].user_number = ruleno; in packgram()
519 rules[ruleno].number = ruleno; in packgram()
520 rules[ruleno].lhs = p->content.sym; in packgram()
521 rules[ruleno].rhs = ritem + itemno; in packgram()
522 rules[ruleno].prec = NULL; in packgram()
523 rules[ruleno].dprec = p->dprec; in packgram()
524 rules[ruleno].merger = p->merger; in packgram()
525 rules[ruleno].precsym = NULL; in packgram()
526 rules[ruleno].location = p->location; in packgram()
[all …]
Dprint.c103 rule_lhs_print (&rules[r], previous_lhs, out); in print_core()
104 previous_lhs = rules[r].lhs; in print_core()
106 for (sp = rules[r].rhs; sp < sp1; sp++) in print_core()
115 state_rule_lookahead_tokens_print (s, &rules[r], out); in print_core()
253 default_reduction = &rules[yydefact[s->number] - 1]; in print_reductions()
276 if (reds->rules[j] != default_reduction) in print_reductions()
308 if (reds->rules[j] != default_reduction) in print_reductions()
313 reds->rules[j], true); in print_reductions()
329 reds->rules[j], false); in print_reductions()
342 || (reds->num == 1 && reds->rules[0]->number == 0)); in print_reductions()
[all …]
/external/antlr/antlr-3.4/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 getRulesForStringTemplate() {return rules;} in getRulesForStringTemplate()
/external/deqp/modules/egl/
DteglChooseConfigReference.cpp234 std::map<EGLenum, AttribRule> rules; in initAttribRules() local
237rules[EGL_BUFFER_SIZE] = AttribRule(EGL_BUFFER_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SMA… in initAttribRules()
238rules[EGL_RED_SIZE] = AttribRule(EGL_RED_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECIAL… in initAttribRules()
239rules[EGL_GREEN_SIZE] = AttribRule(EGL_GREEN_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECI… in initAttribRules()
240rules[EGL_BLUE_SIZE] = AttribRule(EGL_BLUE_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECIA… in initAttribRules()
241rules[EGL_LUMINANCE_SIZE] = AttribRule(EGL_LUMINANCE_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER… in initAttribRules()
242rules[EGL_ALPHA_SIZE] = AttribRule(EGL_ALPHA_SIZE, 0, CRITERIA_AT_LEAST, SORTORDER_SPECI… in initAttribRules()
243rules[EGL_ALPHA_MASK_SIZE] = AttribRule(EGL_ALPHA_MASK_SIZE, 0, CRITERIA_AT_LEAST, SORTORD… in initAttribRules()
244rules[EGL_BIND_TO_TEXTURE_RGB] = AttribRule(EGL_BIND_TO_TEXTURE_RGB, EGL_DONT_CARE, CRITERIA_EX… in initAttribRules()
245rules[EGL_BIND_TO_TEXTURE_RGBA] = AttribRule(EGL_BIND_TO_TEXTURE_RGBA, EGL_DONT_CARE, CRITERIA_… in initAttribRules()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dcg7coll.c200 static const char rules[] = "& Z < p, P"; in TestDemo1() local
201 int32_t len=(int32_t)strlen(rules); in TestDemo1()
202 UChar temp[sizeof(rules)]; in TestDemo1()
204 u_uastrcpy(temp, rules); in TestDemo1()
231 static const char rules[] = "& C < ch , cH, Ch, CH"; in TestDemo2() local
232 int32_t len=(int32_t)strlen(rules); in TestDemo2()
233 UChar temp[sizeof(rules)]; in TestDemo2()
235 u_uastrcpy(temp, rules); in TestDemo2()
260 static const char rules[] = "& Question'-'mark ; '?' & Hash'-'mark ; '#' & Ampersand ; '&'"; in TestDemo3() local
261 int32_t len=(int32_t)strlen(rules); in TestDemo3()
[all …]
Dcallcoll.c664 void genericRulesStarterWithOptionsAndResult(const char *rules, const char * const s[], uint32_t si… in genericRulesStarterWithOptionsAndResult() argument
667 uint32_t rlen = u_unescape(rules, rlz, RULE_BUFFER_LEN); in genericRulesStarterWithOptionsAndResult()
672 log_verbose("Rules starter for %s\n", rules); in genericRulesStarterWithOptionsAndResult()
682 log_err_status(status, "Unable to open collator with rules %s\n", rules); in genericRulesStarterWithOptionsAndResult()
713 void genericRulesStarterWithResult(const char *rules, const char * const s[], uint32_t size, UColla… in genericRulesStarterWithResult() argument
716 uint32_t rlen = u_unescape(rules, rlz, RULE_BUFFER_LEN); in genericRulesStarterWithResult()
720 log_verbose("Rules starter for %s\n", rules); in genericRulesStarterWithResult()
728 log_err("Unable to open collator with rules %s\n", rules); in genericRulesStarterWithResult()
732 void genericRulesStarter(const char *rules, const char * const s[], uint32_t size) { in genericRulesStarter() argument
733 genericRulesStarterWithResult(rules, s, size, UCOL_LESS); in genericRulesStarter()
[all …]
/external/chromium-trace/trace-viewer/tracing/third_party/css-element-queries/src/
DElementQueries.js200 function readRules(rules) { argument
202 if (!rules) {
205 if ('string' === typeof rules) {
206 rules = rules.toLowerCase();
207 if (-1 !== rules.indexOf('min-width') || -1 !== rules.indexOf('max-width')) {
208 extractQuery(rules);
211 for (var i = 0, j = rules.length; i < j; i++) {
212 if (1 === rules[i].type) {
213 selector = rules[i].selectorText || rules[i].cssText;
219 } else if (4 === rules[i].type) {
[all …]
/external/icu/icu4c/source/test/testdata/
Dcollationtest.txt17 # A collator can be built with "@ rules".
18 # An "@ rules" line is followed by one or more lines with the tailoring rules.
32 @ rules
65 @ rules
412 ** test: empty rules
413 @ rules
420 ** test: very simple rules
421 @ rules
437 @ rules
447 @ rules
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/data/
Dcollationtest.txt17 # A collator can be built with "@ rules".
18 # An "@ rules" line is followed by one or more lines with the tailoring rules.
32 @ rules
65 @ rules
412 ** test: empty rules
413 @ rules
420 ** test: very simple rules
421 @ rules
437 @ rules
447 @ rules
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationMiscTest.java169 String[] rules = { in TestRuleOptions() local
239 for (int i = 0; i< rules.length; i++) { in TestRuleOptions()
240 logln(String.format("rules[%d] = \"%s\"", i, rules[i])); in TestRuleOptions()
241 genericRulesStarter(rules[i], data[i]); in TestRuleOptions()
245 void genericRulesStarter(String rules, String[] s) { in genericRulesStarter() argument
246 genericRulesStarterWithResult(rules, s, -1); in genericRulesStarter()
249 void genericRulesStarterWithResult(String rules, String[] s, int result) { in genericRulesStarterWithResult() argument
253 coll = new RuleBasedCollator(rules); in genericRulesStarterWithResult()
257 warnln("Unable to open collator with rules " + rules + ": " + e); in genericRulesStarterWithResult()
261 …void genericRulesStarterWithOptionsAndResult(String rules, String[] s, String[] atts, Object[] att… in genericRulesStarterWithOptionsAndResult() argument
[all …]
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DTransliterationRuleSet.java45 private TransliterationRule[] rules; field in TransliterationRuleSet
82 rules = null; in addRule()
141 rules = new TransliterationRule[v.size()]; in freeze()
142 v.toArray(rules); in freeze()
155 TransliterationRule r1 = rules[j]; in freeze()
157 TransliterationRule r2 = rules[k]; in freeze()
193 int m = rules[i].matchAndReplace(text, pos, incremental); in transliterate()
198 rules[i].toRule(true) + " => " + in transliterate()
205 rules[i].toRule(true) + " => " + in transliterate()
211 System.out.println("Rule: no match " + rules[i]); in transliterate()
/external/messageformat/java/com/ibm/icu/simple/
DPluralRulesLoader.java116 PluralRules rules = null; in getRulesForRulesId() local
121 rules = rulesIdToRules.get(rulesId); // can be null in getRulesForRulesId()
145 rules = PluralRules.parseDescription(sb.toString()); in getRulesForRulesId()
151 rules = rulesIdToRules.get(rulesId); in getRulesForRulesId()
153 rulesIdToRules.put(rulesId, rules); // can be null in getRulesForRulesId()
157 return rules; in getRulesForRulesId()
169 PluralRules rules = getRulesForRulesId(rulesId); in forLocale() local
170 if (rules == null) { in forLocale()
171 rules = PluralRules.DEFAULT; in forLocale()
173 return rules; in forLocale()
/external/junit/src/org/junit/rules/
DRunRules.java1 package org.junit.rules;
12 public RunRules(Statement base, Iterable<TestRule> rules, Description description) { in RunRules() argument
13 statement= applyAll(base, rules, description); in RunRules()
21 private static Statement applyAll(Statement result, Iterable<TestRule> rules, in applyAll() argument
23 for (TestRule each : rules) in applyAll()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/res/
DPluralResourceLoader.java26 PluralRules rules = plurals.get(name); in getValue() local
27 if (rules != null) { in getValue()
28 Plural p = rules.find(quantity); in getValue()
39 PluralRules rules = new PluralRules(); in processNode() local
46 rules.add(new Plural(quantity, stringResourceLoader.getValue(value, isSystem))); in processNode()
48 rules.add(new Plural(quantity, value)); in processNode()
51 plurals.put("plurals/" + name, rules); in processNode()
/external/sepolicy/tools/sepolicy-analyze/
DREADME10 identical with respect to allow rules, including indirect allow
11 rules via attributes and default-enabled conditional rules
18 conditional rules, audit-related rules (auditallow or dontaudit),
37 Displays duplicate allow rules, i.e. pairs of allow rules that
44 -foo -bar is expanded to individual allow rules by the policy
46 duplicate rules as a natural side effect and can be ignored.
72 Check whether the sepolicy file violates any of the neverallow rules
75 m4 macro expansion of the rules from a .te file. You can use an entire
79 quickly checking an individual expanded rule or group of rules. If there are
87 the policy from which the neverallow rules were taken and the policy
[all …]
/external/libmtp/
DMakefile.am7 noinst_DATA=libmtp.usermap libmtp.rules libmtp.fdi
10 libmtp.rules: examples/hotplug
11 examples/hotplug -u > libmtp.rules
15 CLEANFILES = libmtp.usermap libmtp.rules libmtp.fdi
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DPluralRulesLoader.java183 PluralRules rules = null; in getRulesForRulesId() local
188 rules = rulesIdToRules.get(rulesId); // can be null in getRulesForRulesId()
207 rules = PluralRules.parseDescription(sb.toString()); in getRulesForRulesId()
213 rules = rulesIdToRules.get(rulesId); in getRulesForRulesId()
215 rulesIdToRules.put(rulesId, rules); // can be null in getRulesForRulesId()
219 return rules; in getRulesForRulesId()
241 PluralRules rules = getRulesForRulesId(rulesId); in forLocale() local
242 if (rules == null) { in forLocale()
243 rules = PluralRules.DEFAULT; in forLocale()
245 return rules; in forLocale()

12345678910>>...54