/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/ |
H A D | RuleClosureTransition.java | 32 /** A transition used to reference another rule. It tracks two targets 34 * state that refers to the other rule. Conversion of an NFA that 35 * falls off the end of a rule will be able to figure out who invoked 36 * that rule because of these special transitions. 39 /** Ptr to the rule definition object for this rule ref */ 40 public Rule rule; field in class:RuleClosureTransition 42 /** What node to begin computations following ref to rule */ 45 public RuleClosureTransition(Rule rule, argument 50 this.rule [all...] |
/external/bison/src/ |
H A D | derives.h | 30 extern rule ***derives;
|
H A D | gram.h | 38 The rules receive rule numbers 1 to NRULES in the order they are 40 initial rule, `$accept: START-SYMBOL $end', which is numbered 1, 41 all the user rules are 2, 3 etc. Each time a rule number is 42 presented to the user, we subtract 1, so *displayed* rule numbers 45 Internally, we cannot use the number 0 for a rule because for 46 instance RITEM stores both symbol (the RHS) and rule numbers: the 47 symbols are shorts >= 0, and rule number are stored negative. 48 Therefore 0 cannot be used, since it would be both the rule number 51 Actions are accessed via the rule number. 58 RULES[R].lhs -- the symbol of the left hand side of rule 200 } rule; typedef in typeref:struct:__anon330 [all...] |
/external/webkit/Source/WebCore/bindings/js/ |
H A D | JSCSSRuleCustom.cpp | 61 JSValue toJS(ExecState* exec, JSDOMGlobalObject* globalObject, CSSRule* rule) argument 63 if (!rule) 66 JSDOMWrapper* wrapper = getCachedWrapper(currentWorld(exec), rule); 70 switch (rule->type()) { 72 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, CSSStyleRule, rule); 75 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, CSSMediaRule, rule); 78 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, CSSFontFaceRule, rule); 81 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, CSSPageRule, rule); 84 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, CSSImportRule, rule); 87 wrapper = CREATE_DOM_OBJECT_WRAPPER(exec, globalObject, CSSCharsetRule, rule); [all...] |
/external/chromium/net/base/ |
H A D | host_mapping_rules.cc | 36 const ExclusionRule& rule = *it; local 37 if (MatchPattern(host_port->host(), rule.hostname_pattern)) 44 const MapRule& rule = *it; local 46 // The rule's hostname_pattern will be something like: 53 if (!MatchPattern(host_port->host(), rule.hostname_pattern)) { 55 if (!MatchPattern(host_port_string, rule.hostname_pattern)) 56 continue; // This rule doesn't apply. 59 host_port->set_host(rule.replacement_hostname); 60 if (rule.replacement_port != -1) 61 host_port->set_port(rule 76 ExclusionRule rule; local 84 MapRule rule; local [all...] |
/external/icu4c/i18n/ |
H A D | zrule.cpp | 10 * \brief C API: Time zone rule classes 31 zrule_close(ZRule* rule) { argument 32 delete (TimeZoneRule*)rule; 41 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength) { argument 43 s = ((TimeZoneRule*)rule)->TimeZoneRule::getName(s); 50 zrule_getRawOffset(ZRule* rule) { argument 51 return ((TimeZoneRule*)rule)->TimeZoneRule::getRawOffset(); 55 zrule_getDSTSavings(ZRule* rule) { argument 56 return ((TimeZoneRule*)rule)->TimeZoneRule::getDSTSavings(); 75 izrule_close(IZRule* rule) { argument 80 izrule_clone(IZRule *rule) argument 90 izrule_getName(IZRule* rule, UChar* & name, int32_t & nameLength) argument 101 izrule_getRawOffset(IZRule* rule) argument 106 izrule_getDSTSavings(IZRule* rule) argument 116 izrule_getFirstStart(IZRule* rule, int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) argument 122 izrule_getFinalStart(IZRule* rule, int32_t prevRawOffset, int32_t prevDSTSavings, UDate& result) argument 128 izrule_getNextStart(IZRule* rule, UDate base, int32_t prevRawOffset, int32_t prevDSTSavings, UBool inclusive, UDate& result) argument 134 izrule_getPreviousStart(IZRule* rule, UDate base, int32_t prevRawOffset, int32_t prevDSTSavings, UBool inclusive, UDate& result) argument 140 izrule_getStaticClassID(IZRule* rule) argument 145 izrule_getDynamicClassID(IZRule* rule) argument [all...] |
H A D | zrule.h | 12 * \brief C API: Time zone rule classes 54 zrule_close(ZRule* rule); 68 * @param rule, the Zrule to use 73 zrule_getName(ZRule* rule, UChar* name, int32_t nameLength); 77 * @param rule, the Zrule to use 81 zrule_getRawOffset(ZRule* rule); 85 * @param rule, the Zrule to use 86 * @return The amount of daylight saving offset used by this rule 90 zrule_getDSTSavings(ZRule* rule); 93 * Returns if this rule represent [all...] |
H A D | funcrepl.cpp | 94 UnicodeString& FunctionReplacer::toReplacerPattern(UnicodeString& rule, argument 97 rule.truncate(0); 98 rule.append(AMPERSAND); 99 rule.append(translit->getID()); 100 rule.append(OPEN); 101 rule.append(replacer->toReplacer()->toReplacerPattern(str, escapeUnprintable)); 102 rule.append(CLOSE); 103 return rule;
|
H A D | rbt_pars.cpp | 252 * A class representing one side of a rule. This class knows how to 253 * parse half of a rule. It is tightly coupled to the method 298 int32_t parse(const UnicodeString& rule, int32_t pos, int32_t limit, UErrorCode& status); 300 int32_t parseSection(const UnicodeString& rule, int32_t pos, int32_t limit, 324 const UnicodeString& rule, 327 return parser.syntaxError(code, rule, start, status); 352 * Parse one side of a rule, stopping at either the limit, 357 int32_t RuleHalf::parse(const UnicodeString& rule, int32_t pos, int32_t limit, UErrorCode& status) { argument 360 pos = parseSection(rule, pos, limit, text, ILLEGAL_TOP, FALSE, status); 363 return syntaxError(U_MISPLACED_CURSOR_OFFSET, rule, star 323 syntaxError(UErrorCode code, const UnicodeString& rule, int32_t start, UErrorCode& status) argument 392 parseSection(const UnicodeString& rule, int32_t pos, int32_t limit, UnicodeString& buf, const UnicodeString& illegal, UBool isSegment, UErrorCode& status) argument 879 parseRules(const UnicodeString& rule, UTransDirection theDirection, UErrorCode& status) argument 1194 resemblesPragma(const UnicodeString& rule, int32_t pos, int32_t limit) argument 1208 parsePragma(const UnicodeString& rule, int32_t pos, int32_t limit, UErrorCode& status) argument 1262 parseRule(const UnicodeString& rule, int32_t pos, int32_t limit, UErrorCode& status) argument 1466 syntaxError(UErrorCode parseErrorCode, const UnicodeString& rule, int32_t pos, UErrorCode& status) argument 1500 parseSet(const UnicodeString& rule, ParsePosition& pos, UErrorCode& status) argument [all...] |
/external/dbus/bus/ |
H A D | signals.c | 34 DBusConnection *matches_go_to; /**< Owner of the rule */ 55 BusMatchRule *rule; local 57 rule = dbus_new0 (BusMatchRule, 1); 58 if (rule == NULL) 61 rule->refcount = 1; 62 rule->matches_go_to = matches_go_to; 65 _dbus_assert (rule->matches_go_to != NULL); 68 return rule; 72 bus_match_rule_ref (BusMatchRule *rule) argument 74 _dbus_assert (rule 82 bus_match_rule_unref(BusMatchRule *rule) argument 123 match_rule_to_string(BusMatchRule *rule) argument 253 bus_match_rule_set_message_type(BusMatchRule *rule, int type) argument 264 bus_match_rule_set_interface(BusMatchRule *rule, const char *interface) argument 283 bus_match_rule_set_member(BusMatchRule *rule, const char *member) argument 302 bus_match_rule_set_sender(BusMatchRule *rule, const char *sender) argument 321 bus_match_rule_set_destination(BusMatchRule *rule, const char *destination) argument 340 bus_match_rule_set_path(BusMatchRule *rule, const char *path) argument 359 bus_match_rule_set_arg(BusMatchRule *rule, int arg, const DBusString *value, dbus_bool_t is_path) argument 718 bus_match_rule_parse_arg_match(BusMatchRule *rule, const char *key, const DBusString *value, DBusError *error) argument 808 BusMatchRule *rule; local 1049 BusMatchRule *rule; local 1226 bus_matchmaker_add_rule(BusMatchmaker *matchmaker, BusMatchRule *rule) argument 1341 BusMatchRule *rule = link->data; local 1360 bus_matchmaker_remove_rule(BusMatchmaker *matchmaker, BusMatchRule *rule) argument 1420 BusMatchRule *rule; local 1458 BusMatchRule *rule; local 1553 match_rule_matches(BusMatchRule *rule, DBusConnection *sender, DBusConnection *addressed_recipient, DBusMessage *message, BusMatchFlags already_matched) argument 1748 BusMatchRule *rule; local 1858 BusMatchRule *rule; local 1894 assert_large_rule(BusMatchRule *rule) argument 1920 BusMatchRule *rule; local 2205 BusMatchRule *rule; local [all...] |
H A D | signals.h | 44 BusMatchRule* bus_match_rule_ref (BusMatchRule *rule); 45 void bus_match_rule_unref (BusMatchRule *rule); 47 dbus_bool_t bus_match_rule_set_message_type (BusMatchRule *rule, 49 dbus_bool_t bus_match_rule_set_interface (BusMatchRule *rule, 51 dbus_bool_t bus_match_rule_set_member (BusMatchRule *rule, 53 dbus_bool_t bus_match_rule_set_sender (BusMatchRule *rule, 55 dbus_bool_t bus_match_rule_set_destination (BusMatchRule *rule, 57 dbus_bool_t bus_match_rule_set_path (BusMatchRule *rule, 59 dbus_bool_t bus_match_rule_set_arg (BusMatchRule *rule, 73 BusMatchRule *rule); [all...] |
H A D | policy.c | 37 BusPolicyRule *rule; local 39 rule = dbus_new0 (BusPolicyRule, 1); 40 if (rule == NULL) 43 rule->type = type; 44 rule->refcount = 1; 45 rule->allow = allow; 47 switch (rule->type) 50 rule->d.user.uid = DBUS_UID_UNSET; 53 rule->d.group.gid = DBUS_GID_UNSET; 56 rule 78 bus_policy_rule_ref(BusPolicyRule *rule) argument 88 bus_policy_rule_unref(BusPolicyRule *rule) argument 141 BusPolicyRule *rule = data; local 247 BusPolicyRule *rule = link->data; local 391 BusPolicyRule *rule = link->data; local 490 bus_policy_append_default_rule(BusPolicy *policy, BusPolicyRule *rule) argument 502 bus_policy_append_mandatory_rule(BusPolicy *policy, BusPolicyRule *rule) argument 540 bus_policy_append_user_rule(BusPolicy *policy, dbus_uid_t uid, BusPolicyRule *rule) argument 560 bus_policy_append_group_rule(BusPolicy *policy, dbus_gid_t gid, BusPolicyRule *rule) argument 580 bus_policy_append_console_rule(BusPolicy *policy, dbus_bool_t at_console, BusPolicyRule *rule) argument 726 BusPolicyRule *rule = data; local 760 BusPolicyRule *rule = link->data; local 798 BusPolicyRule *rule; local 851 bus_client_policy_append_rule(BusClientPolicy *policy, BusPolicyRule *rule) argument 888 BusPolicyRule *rule = link->data; local 1075 BusPolicyRule *rule = link->data; local 1259 BusPolicyRule *rule = link->data; local [all...] |
H A D | policy.h | 42 /** determines whether the rule affects a connection, or some global item */ 43 #define BUS_POLICY_RULE_IS_PER_CLIENT(rule) (!((rule)->type == BUS_POLICY_RULE_USER || \ 44 (rule)->type == BUS_POLICY_RULE_GROUP)) 108 BusPolicyRule* bus_policy_rule_ref (BusPolicyRule *rule); 109 void bus_policy_rule_unref (BusPolicyRule *rule); 122 BusPolicyRule *rule); 124 BusPolicyRule *rule); 127 BusPolicyRule *rule); 130 BusPolicyRule *rule); [all...] |
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/ |
H A D | gUnitTestSuite.java | 30 /** A class which wraps all testsuites for an individual rule */ 35 protected String rule = null; // paeser rule name for unit testing field in class:gUnitTestSuite 36 protected String lexicalRule = null; // lexical rule name 37 protected String treeRule = null; // optional, required for testing tree grammar rule 49 public gUnitTestSuite(String rule) { argument 50 this.rule = rule; 53 public gUnitTestSuite(String treeRule, String rule) { argument 54 this.rule [all...] |
/external/webkit/Source/WebCore/css/ |
H A D | CSSRuleList.cpp | 62 StyleBase* rule = m_list->item(index); local 63 ASSERT(!rule || rule->isRule()); 64 return static_cast<CSSRule*>(rule); 90 void CSSRuleList::append(CSSRule* rule) argument 93 if (!rule) { 98 m_lstCSSRules.append(rule); 101 unsigned CSSRuleList::insertRule(CSSRule* rule, unsigned index) argument 104 if (!rule) { 114 m_lstCSSRules.insert(index, rule); [all...] |
H A D | WebKitCSSKeyframesRule.cpp | 80 CSSRule* rule = m_lstCSSRules.get()->item(index); local 81 return (rule && rule->isKeyframeRule()) ? static_cast<WebKitCSSKeyframeRule*>(rule) : 0; 86 CSSRule* rule = m_lstCSSRules.get()->item(index); local 87 return (rule && rule->isKeyframeRule()) ? static_cast<const WebKitCSSKeyframeRule*>(rule) : 0; 90 void WebKitCSSKeyframesRule::append(WebKitCSSKeyframeRule* rule) argument 92 if (!rule) 102 insertRule(const String& rule) argument [all...] |
/external/icu4c/test/intltest/ |
H A D | plurults.h | 32 void assertRuleValue(const UnicodeString& rule, double expected); 33 void assertRuleKeyValue(const UnicodeString& rule, const UnicodeString& key,
|
H A D | rndmcoll.cpp | 19 // each rule can be: 151 const char * rule = test_rule.next(); local 153 logln(UnicodeString(rule, strlen(rule))); 155 UnicodeString newRule(rule); // potential bug 158 fwrite(rule, strlen(rule),1,stdout); 164 errln( "Could not create Collator for the %d(th) generated rule.\n" 166 "The rule is ",
|
/external/antlr/antlr-3.4/runtime/Ruby/test/functional/ast-output/ |
H A D | construction.rb | 375 rule = opts[ :rule ] 379 message = opts[ :message ] || rule.to_s #"should parse %p with rule %s and make tree %s" % [input, rule, expected_tree] 385 result = parser.send( rule, *args ) 394 ast_test :input => "1 + 2", :rule => :r1, :ast => "(+ 1 2)" 396 ast_test :input => "assert 2+3", :rule => :r2, :ast => "(assert (+ 2 3))" 398 ast_test :input => "assert 2+3 : 5", :rule => :r2, :ast => "(assert (+ 2 3) 5)" 400 ast_test :input => "if 1 fooze", :rule [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
H A D | JavaTarget.java | 50 for (Rule rule : grammar.getRules()) { 51 rule.throwsSpec.add("RecognitionException"); 55 for (Rule rule : delegatedRules) { 56 rule.throwsSpec.add("RecognitionException");
|
/external/v8/test/cctest/ |
H A D | test-date.cc | 51 Rule* rule = FindRuleFor(year, month, day, time_in_day_sec); local 52 return rule == NULL ? 0 : rule->offset_sec * 1000; 71 bool Match(Rule* rule, int year, int month, int day, int time_in_day_sec) { argument 72 if (rule->year != 0 && rule->year != year) return false; 73 if (rule->start_month > month) return false; 74 if (rule->end_month < month) return false; 75 int start_day = ComputeRuleDay(year, rule->start_month, rule [all...] |
/external/icu4c/common/ |
H A D | util_props.cpp | 25 int32_t ICU_Utility::parseInteger(const UnicodeString& rule, int32_t& pos, int32_t limit) { argument 31 if (p < limit && rule.charAt(p) == 48 /*0*/) { 32 if (p+1 < limit && (rule.charAt(p+1) == 0x78 /*x*/ || rule.charAt(p+1) == 0x58 /*X*/)) { 44 int32_t d = u_digit(rule.charAt(p++), radix); 85 int32_t ICU_Utility::parsePattern(const UnicodeString& rule, int32_t pos, int32_t limit, argument 98 c = rule.charAt(pos++); 104 pos = skipWhitespace(rule, pos); 108 parsedInts[intCount++] = parseInteger(rule, p, limit); 119 c = (UChar) u_tolower(rule [all...] |
/external/webkit/Tools/Scripts/webkitpy/style/ |
H A D | filter.py | 36 ValueError: An error occurs if a filter rule does not begin 37 with "+" or "-" or if a filter rule does not match 42 for rule in filter_rules: 43 if not (rule.startswith('+') or rule.startswith('-')): 44 raise ValueError('Invalid filter rule "%s": every rule ' 45 "must start with + or -." % rule) 48 if category.startswith(rule[1:]): 51 raise ValueError('Suspected incorrect filter rule " [all...] |
/external/antlr/antlr-3.4/gunit/src/main/java/org/antlr/gunit/swingui/model/ |
H A D | TestSuite.java | 53 if(currentRule == null) throw new IllegalArgumentException("Null rule"); 57 // test rule name 58 public boolean hasRule(Rule rule) { argument 60 if(r.getName().equals(rule.getName())) { 89 for(Rule rule: rules) { 90 if(rule.getName().equals(name)) { 91 return rule;
|
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/ |
H A D | error_check.py | 75 def ShouldCheck(rule): 76 """Returns whether the optional rule should be checked. 79 this specific rule should be checked. 82 rule: Name of the rule (see Rule). 85 True if the rule should be checked according to the flags, otherwise False. 87 if rule in FLAGS.jslint_error or Rule.ALL in FLAGS.jslint_error: 90 return FLAGS.strict and rule in Rule.CLOSURE_RULES
|