Home
last modified time | relevance | path

Searched refs:rule (Results 1 – 25 of 870) sorted by relevance

12345678910>>...35

/external/libnl/lib/route/
Drule.c47 struct rtnl_rule *rule = nl_object_priv(c); in rule_free_data() local
49 if (!rule) in rule_free_data()
52 nl_addr_put(rule->r_src); in rule_free_data()
53 nl_addr_put(rule->r_dst); in rule_free_data()
83 struct rtnl_rule *rule; in rule_msg_parser() local
88 rule = rtnl_rule_alloc(); in rule_msg_parser()
89 if (!rule) { in rule_msg_parser()
94 rule->ce_msgtype = n->nlmsg_type; in rule_msg_parser()
101 rule->r_family = family = r->rtm_family; in rule_msg_parser()
102 rule->r_type = r->rtm_type; in rule_msg_parser()
[all …]
/external/icu/icu4c/source/i18n/
Dzrule.cpp31 zrule_close(ZRule* rule) { in zrule_close() argument
32 delete (TimeZoneRule*)rule; in zrule_close()
41 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength) { in zrule_getName() argument
43 s = ((TimeZoneRule*)rule)->TimeZoneRule::getName(s); in zrule_getName()
50 zrule_getRawOffset(ZRule* rule) { in zrule_getRawOffset() argument
51 return ((TimeZoneRule*)rule)->TimeZoneRule::getRawOffset(); in zrule_getRawOffset()
55 zrule_getDSTSavings(ZRule* rule) { in zrule_getDSTSavings() argument
56 return ((TimeZoneRule*)rule)->TimeZoneRule::getDSTSavings(); in zrule_getDSTSavings()
75 izrule_close(IZRule* rule) { in izrule_close() argument
76 delete (InitialTimeZoneRule*)rule; in izrule_close()
[all …]
Drbt_pars.cpp303 int32_t parse(const UnicodeString& rule, int32_t pos, int32_t limit, UErrorCode& status);
305 int32_t parseSection(const UnicodeString& rule, int32_t pos, int32_t limit,
329 const UnicodeString& rule, in syntaxError() argument
332 return parser.syntaxError(code, rule, start, status); in syntaxError()
362 int32_t RuleHalf::parse(const UnicodeString& rule, int32_t pos, int32_t limit, UErrorCode& status) { in parse() argument
365 pos = parseSection(rule, pos, limit, text, UnicodeString(TRUE, ILLEGAL_TOP, -1), FALSE, status); in parse()
368 return syntaxError(U_MISPLACED_CURSOR_OFFSET, rule, start, status); in parse()
397 int32_t RuleHalf::parseSection(const UnicodeString& rule, int32_t pos, int32_t limit, in parseSection() argument
414 UChar c = rule.charAt(pos++); in parseSection()
424 return syntaxError(U_UNCLOSED_SEGMENT, rule, start, status); in parseSection()
[all …]
Dzrule.h54 zrule_close(ZRule* rule);
73 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength);
81 zrule_getRawOffset(ZRule* rule);
90 zrule_getDSTSavings(ZRule* rule);
125 izrule_close(IZRule* rule);
133 izrule_clone(IZRule *rule);
152 izrule_getName(IZRule* rule, UChar* & name, int32_t & nameLength);
160 izrule_getRawOffset(IZRule* rule);
169 izrule_getDSTSavings(IZRule* rule);
194 izrule_getFirstStart(IZRule* rule, int32_t prevRawOffset, int32_t prevDSTSavings,
[all …]
Dfuncrepl.cpp97 UnicodeString& FunctionReplacer::toReplacerPattern(UnicodeString& rule, in toReplacerPattern() argument
100 rule.truncate(0); in toReplacerPattern()
101 rule.append(AMPERSAND); in toReplacerPattern()
102 rule.append(translit->getID()); in toReplacerPattern()
103 rule.append(OPEN, 2); in toReplacerPattern()
104 rule.append(replacer->toReplacer()->toReplacerPattern(str, escapeUnprintable)); in toReplacerPattern()
105 rule.append(CLOSE, 2); in toReplacerPattern()
106 return rule; in toReplacerPattern()
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DTransliteratorParser.java402 public int parse(String rule, int pos, int limit, in parse() argument
406 pos = parseSection(rule, pos, limit, parser, buf, ILLEGAL_TOP, false); in parse()
410 syntaxError("Misplaced " + CURSOR_POS, rule, start); in parse()
439 private int parseSection(String rule, int pos, int limit, in parseSection() argument
457 char c = rule.charAt(pos++); in parseSection()
466 syntaxError("Unclosed segment", rule, start); in parseSection()
473 syntaxError("Malformed variable reference", rule, start); in parseSection()
475 if (UnicodeSet.resemblesPattern(rule, pos-1)) { in parseSection()
480 buf.append(parser.parseSet(rule, pp)); in parseSection()
487 syntaxError("Trailing backslash", rule, start); in parseSection()
[all …]
DFunctionReplacer.java66 StringBuilder rule = new StringBuilder("&"); in toReplacerPattern() local
67 rule.append(translit.getID()); in toReplacerPattern()
68 rule.append("( "); in toReplacerPattern()
69 rule.append(replacer.toReplacerPattern(escapeUnprintable)); in toReplacerPattern()
70 rule.append(" )"); in toReplacerPattern()
71 return rule.toString(); in toReplacerPattern()
/external/icu/icu4c/source/data/brkitr/
Dword_POSIX.txt95 # of a region of Text. The rule here comes into play when the start of text
105 $KatakanaEx {400}; # note: these status values override those from rule 5
110 # rule 5
115 # rule 6 and 7
118 # rule 7a
121 # rule 7b and 7c
124 # rule 8
128 # rule 9
132 # rule 10
136 # rule 11 and 12
[all …]
Dword.txt95 # of a region of Text. The rule here comes into play when the start of text
105 $KatakanaEx {400}; # note: these status values override those from rule 5
110 # rule 5
115 # rule 6 and 7
118 # rule 7a
121 # rule 7b and 7c
124 # rule 8
128 # rule 9
132 # rule 10
136 # rule 11 and 12
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DRangeDateRule.java42 public void add(DateRule rule) { in add() argument
43 add(new Date(Long.MIN_VALUE), rule); in add()
50 public void add(Date start, DateRule rule) { in add() argument
53 ranges.add(new Range(start, rule)); in add()
73 if (r != null && r.rule != null) in firstAfter()
76 result = r.rule.firstBetween(start, e.start); in firstAfter()
78 result = r.rule.firstAfter(start); in firstAfter()
104 if (r.rule != null) { in firstBetween()
107 result = r.rule.firstBetween(start, e); in firstBetween()
119 return r != null && r.rule != null && r.rule.isOn(date); in isOn()
[all …]
DHoliday.java76 return rule.firstAfter(start); in firstAfter()
94 return rule.firstBetween(start, end); in firstBetween()
109 return rule.isOn(date); in isOn()
119 return rule.isBetween(start, end); in isBetween()
136 protected Holiday(String name, DateRule rule) in Holiday() argument
139 this.rule = rule; in Holiday()
199 return rule; in getRule()
206 public void setRule(DateRule rule) { in setRule() argument
207 this.rule = rule; in setRule()
211 private DateRule rule; field in Holiday
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/
DgUnitTestSuite.java35 protected String rule = null; // paeser rule name for unit testing field in gUnitTestSuite
49 public gUnitTestSuite(String rule) { in gUnitTestSuite() argument
50 this.rule = rule; in gUnitTestSuite()
53 public gUnitTestSuite(String treeRule, String rule) { in gUnitTestSuite() argument
54 this.rule = rule; in gUnitTestSuite()
58 public void setRuleName(String ruleName) { this.rule = ruleName; } in setRuleName()
62 public String getRuleName() { return this.rule; } in getRuleName()
74 expect.setTestedRuleName(this.rule ==null ? this.lexicalRule : this.rule); in addTestCase()
/external/bison/src/
Dgram.h200 } rule; typedef
202 extern rule *rules;
205 typedef bool (*rule_filter) (rule *);
209 bool rule_useful_in_grammar_p (rule *r);
213 bool rule_useless_in_grammar_p (rule *r);
217 bool rule_useless_in_parser_p (rule *r);
222 void rule_lhs_print (rule *r, symbol *previous_lhs, FILE *out);
223 void rule_lhs_print_xml (rule *r, FILE *out, int level);
226 int rule_rhs_length (rule *r);
229 void rule_rhs_print (rule *r, FILE *out);
[all …]
Dscan-code.l52 static void handle_action_dollar (symbol_list *rule, char *cp,
54 static void handle_action_at (symbol_list *rule, char *cp, location at_loc);
202 handle_action_dollar (self->rule, yytext, *loc);
209 handle_action_at (self->rule, yytext, *loc);
500 parse_ref (char *cp, symbol_list *rule, int rule_length, in parse_ref() argument
558 for (symbol_index = 0, l = rule; !symbol_list_null (l); in parse_ref()
627 complain_at_indent (rule->location, &indent, format, in parse_ref()
634 complain_at_indent (rule->location, &indent, format, in parse_ref()
715 handle_action_dollar (symbol_list *rule, char *text, location dollar_loc) in handle_action_dollar() argument
723 if (rule->midrule_parent_rule) in handle_action_dollar()
[all …]
/external/bison/tests/
Dreduce.at175 input.y:6.11-13: warning: rule useless in grammar
178 input.y:7.11-13: warning: rule useless in grammar
181 input.y:8.11-13: warning: rule useless in grammar
184 input.y:9.11-13: warning: rule useless in grammar
187 input.y:10.11-13: warning: rule useless in grammar
190 input.y:11.11-13: warning: rule useless in grammar
193 input.y:12.11-13: warning: rule useless in grammar
196 input.y:13.11-13: warning: rule useless in grammar
199 input.y:14.11-13: warning: rule useless in grammar
216 input.y:6.11-13: warning: rule useless in grammar: useless1: '1'
[all …]
/external/selinux/sepolgen/tests/
Dtest_access.py141 rule = refpolicy.AVRule()
142 rule.src_types.add("foo")
143 rule.src_types.add("baz")
144 rule.tgt_types.add("bar")
145 rule.tgt_types.add("what")
146 rule.obj_classes.add("file")
147 rule.obj_classes.add("dir")
148 rule.perms.add("read")
149 rule.perms.add("write")
151 avs = access.avrule_to_access_vectors(rule)
[all …]
/external/icu/icu4c/source/common/
Dutil.cpp295 void ICU_Utility::appendToRule(UnicodeString& rule, in appendToRule() argument
316 rule.append(BACKSLASH).append(APOSTROPHE); in appendToRule()
329 rule.append(APOSTROPHE); in appendToRule()
330 rule.append(quoteBuf); in appendToRule()
331 rule.append(APOSTROPHE); in appendToRule()
335 rule.append(BACKSLASH).append(APOSTROPHE); in appendToRule()
345 int32_t len = rule.length(); in appendToRule()
346 if (len > 0 && rule.charAt(len-1) != c) { in appendToRule()
347 rule.append(c); in appendToRule()
349 } else if (!escapeUnprintable || !ICU_Utility::escapeUnprintable(rule, c)) { in appendToRule()
[all …]
Dutil_props.cpp26 int32_t ICU_Utility::parseInteger(const UnicodeString& rule, int32_t& pos, int32_t limit) { in parseInteger() argument
32 if (p < limit && rule.charAt(p) == 48 /*0*/) { in parseInteger()
33 if (p+1 < limit && (rule.charAt(p+1) == 0x78 /*x*/ || rule.charAt(p+1) == 0x58 /*X*/)) { in parseInteger()
45 int32_t d = u_digit(rule.charAt(p++), radix); in parseInteger()
86 int32_t ICU_Utility::parsePattern(const UnicodeString& rule, int32_t pos, int32_t limit, in parsePattern() argument
99 c = rule.charAt(pos++); in parsePattern()
105 pos = skipWhitespace(rule, pos); in parsePattern()
109 parsedInts[intCount++] = parseInteger(rule, p, limit); in parsePattern()
120 c = (UChar) u_tolower(rule.charAt(pos++)); in parsePattern()
/external/v8/test/cctest/
Dtest-date.cc51 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec); in GetDaylightSavingsOffsetFromOS() local
52 return rule == NULL ? 0 : rule->offset_sec * 1000; in GetDaylightSavingsOffsetFromOS()
71 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) { in Match() argument
72 if (rule->year != 0 && rule->year != year) return false; in Match()
73 if (rule->start_month > month) return false; in Match()
74 if (rule->end_month < month) return false; in Match()
75 int start_day = ComputeRuleDay(year, rule->start_month, rule->start_day); in Match()
76 if (rule->start_month == month && start_day > day) return false; in Match()
77 if (rule->start_month == month && start_day == day && in Match()
80 int end_day = ComputeRuleDay(year, rule->end_month, rule->end_day); in Match()
[all …]
/external/v8/tools/testrunner/local/
Dstatusfile.py99 def _ParseOutcomeList(rule, outcomes, target_dict, variables): argument
114 if rule in target_dict:
115 target_dict[rule] |= result
117 target_dict[rule] = result
134 for rule in section:
135 assert type(rule) == str
136 if rule[-1] == '*':
137 _ParseOutcomeList(rule, section[rule], wildcards, variables)
139 _ParseOutcomeList(rule, section[rule], rules, variables)
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/tool/templates/messages/languages/
Den.stg59 problems creating lexer rule listing all tokens: <exception>
98 "rule <arg> redefinition"
100 "lexer rule <arg> not allowed in parser"
102 "parser rule <arg> not allowed in lexer"
106 "no lexer rule corresponding to token: <arg>"
108 "reference to undefined rule: <arg>"
110 "literal has no associated lexer rule: <arg>"
114 "reference to attribute outside of a rule: <arg><if(arg2)>.<arg2><endif>"
118 "unknown attribute for rule <arg>: <arg2>"
122 "missing attribute access on rule scope: <arg>"
[all …]
/external/libnl/src/lib/
Drule.c24 struct rtnl_rule *rule; in nl_cli_rule_alloc() local
26 rule = rtnl_rule_alloc(); in nl_cli_rule_alloc()
27 if (!rule) in nl_cli_rule_alloc()
30 return rule; in nl_cli_rule_alloc()
47 void nl_cli_rule_parse_family(struct rtnl_rule *rule, char *arg) in nl_cli_rule_parse_family() argument
52 rtnl_rule_set_family(rule, family); in nl_cli_rule_parse_family()
/external/ltrace/
Dfilter.c49 filter_rule_init(struct filter_rule *rule, enum filter_rule_type type, in filter_rule_init() argument
53 rule->type = type; in filter_rule_init()
54 rule->lib_matcher = matcher; in filter_rule_init()
55 rule->symbol_re = symbol_re; in filter_rule_init()
56 rule->next = NULL; in filter_rule_init()
60 filter_rule_destroy(struct filter_rule *rule) in filter_rule_destroy() argument
62 filter_lib_matcher_destroy(rule->lib_matcher); in filter_rule_destroy()
63 regfree(&rule->symbol_re); in filter_rule_destroy()
67 filter_add_rule(struct filter *filt, struct filter_rule *rule) in filter_add_rule() argument
72 *rulep = rule; in filter_add_rule()
/external/freetype/src/truetype/
Dttsubpix.c823 const SPH_TweakRule* rule, in sph_test_tweak() argument
833 ( is_member_of_family_class ( family, rule[i].family ) ) ) in sph_test_tweak()
834 if ( rule[i].ppem == 0 || in sph_test_tweak()
835 rule[i].ppem == ppem ) in sph_test_tweak()
837 is_member_of_style_class ( style, rule[i].style ) ) in sph_test_tweak()
838 if ( rule[i].glyph == 0 || in sph_test_tweak()
840 rule[i].glyph ) == glyph_index ) in sph_test_tweak()
854 const SPH_ScaleRule* rule, in scale_test_tweak() argument
864 ( is_member_of_family_class ( family, rule[i].family ) ) ) in scale_test_tweak()
865 if ( rule[i].ppem == 0 || in scale_test_tweak()
[all …]
/external/pdfium/third_party/freetype/src/truetype/
Dttsubpix.c823 const SPH_TweakRule* rule, in sph_test_tweak() argument
833 ( is_member_of_family_class ( family, rule[i].family ) ) ) in sph_test_tweak()
834 if ( rule[i].ppem == 0 || in sph_test_tweak()
835 rule[i].ppem == ppem ) in sph_test_tweak()
837 is_member_of_style_class ( style, rule[i].style ) ) in sph_test_tweak()
838 if ( rule[i].glyph == 0 || in sph_test_tweak()
840 rule[i].glyph ) == glyph_index ) in sph_test_tweak()
854 const SPH_ScaleRule* rule, in scale_test_tweak() argument
864 ( is_member_of_family_class ( family, rule[i].family ) ) ) in scale_test_tweak()
865 if ( rule[i].ppem == 0 || in scale_test_tweak()
[all …]

12345678910>>...35