/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/icu4c/test/intltest/ |
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 ",
|
H A D | itrbnfp.cpp | 54 // Try various rule parsing errors. Shouldn't crash. 105 "11: << x", // formating a multiple of 10 causes rollback rule to fail 121 const char* rule = rules[i]; local 122 logln("rule[%d] \"%s\"", i, rule); 125 RuleBasedNumberFormat* formatter = new RuleBasedNumberFormat(rule, Locale::getUS(), perr, status);
|
/external/nist-sip/java/gov/nist/core/ |
H A D | ParserCore.java | 100 protected void dbg_enter(String rule) { argument 107 stringBuffer + rule + 114 protected void dbg_leave(String rule) { argument 122 rule + 135 protected void peekLine(String rule) { argument 137 Debug.println(rule +" " + lexer.peekLine());
|
/external/srec/srec/crec/ |
H A D | c47mulsp.c | 91 int activate_grammar_for_recognition(multi_srec* recm, srec_context* grammar, const char* rule) argument
|
/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 | CSSMediaRule.cpp | 51 unsigned CSSMediaRule::append(CSSRule* rule) argument 53 if (!rule) 56 rule->setParent(this); 57 return m_lstCSSRules->insertRule(rule, m_lstCSSRules->length()); 60 unsigned CSSMediaRule::insertRule(const String& rule, unsigned index, ExceptionCode& ec) argument 69 RefPtr<CSSRule> newRule = p.parseRule(parentStyleSheet(), rule); 71 // SYNTAX_ERR: Raised if the specified rule has a syntax error and is unparsable. 78 // @media rule. They are currently not getting parsed, resulting in a SYNTAX_ERR 81 // HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at the specified 82 // index, e.g., if an @import rule i [all...] |
H A D | WebKitCSSKeyframesRule.cpp | 79 CSSRule* rule = m_lstCSSRules.get()->item(index); local 80 return (rule && rule->isKeyframeRule()) ? static_cast<WebKitCSSKeyframeRule*>(rule) : 0; 85 CSSRule* rule = m_lstCSSRules.get()->item(index); local 86 return (rule && rule->isKeyframeRule()) ? static_cast<const WebKitCSSKeyframeRule*>(rule) : 0; 89 void WebKitCSSKeyframesRule::append(WebKitCSSKeyframeRule* rule) argument 91 if (!rule) 101 insertRule(const String& rule) argument [all...] |
/external/antlr/src/org/antlr/runtime/tree/ |
H A D | TreeFilter.java | 41 rule application strategy and a ``down then up'' tree traversal 42 strategy. Let's look at rule application first. 46 to the next node. In other words, we only look for a single rule 48 repeatedly apply rules). The following method applies a rule in a @cl 53 It uses reflection to lookup the appropriate rule within the generated 55 rule will not match the tree. To avoid issuing syntax errors and 57 failure, the invoked rule immediately returns. If you don't plan on 59 the details. This method boils down to ``call a rule to match a tree, 80 public void rule() throws RecognitionException; method in interface:TreeFilter.fptr 103 whichRule.rule(); [all...] |
H A D | TreeRewriter.java | 36 public Object rule() throws RecognitionException; method in interface:TreeRewriter.fptr 61 TreeRuleReturnScope r = (TreeRuleReturnScope)whichRule.rule(); 108 public Object rule() throws RecognitionException { return topdown(); } 112 public Object rule() throws RecognitionException { return bottomup(); } 116 // to override, just define tree grammar rule topdown and turn on
|
/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...] |
H A D | registry_controlled_domain.cc | 246 const DomainRule* rule = find_domain_function_(domain_str, domain_length); local 251 if (rule && 252 base::strncasecmp(domain_str, rule->name, domain_length) == 0) { 255 if (rule->type == kWildcardRule && (prev_start != std::string::npos)) { 262 if (rule->type == kExceptionRule) { 264 // If we get here, we had an exception rule with no dots (e.g. 266 // wildcard rule, which would have to be "*". But we explicitly 267 // disallow that case, so this kind of rule is invalid. 268 NOTREACHED() << "Invalid exception rule"; 288 // No rule foun [all...] |
/external/bison/src/ |
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:__anon20 [all...] |
/external/icu4c/common/ |
H A D | util_props.cpp | 24 int32_t ICU_Utility::parseInteger(const UnicodeString& rule, int32_t& pos, int32_t limit) { argument 30 if (p < limit && rule.charAt(p) == 48 /*0*/) { 31 if (p+1 < limit && (rule.charAt(p+1) == 0x78 /*x*/ || rule.charAt(p+1) == 0x58 /*X*/)) { 43 int32_t d = u_digit(rule.charAt(p++), radix); 84 int32_t ICU_Utility::parsePattern(const UnicodeString& rule, int32_t pos, int32_t limit, argument 97 c = rule.charAt(pos++); 103 pos = skipWhitespace(rule, pos); 107 parsedInts[intCount++] = parseInteger(rule, p, limit); 118 c = (UChar) u_tolower(rule [all...] |
H A D | util.cpp | 282 * Append a character to a rule that is being built up. To flush 283 * the quoteBuf to rule, make one final call with isLiteral == TRUE. 285 * @param rule the string to append the character to 299 void ICU_Utility::appendToRule(UnicodeString& rule, argument 320 rule.append(BACKSLASH).append(APOSTROPHE); 333 rule.append(APOSTROPHE); 334 rule.append(quoteBuf); 335 rule.append(APOSTROPHE); 339 rule.append(BACKSLASH).append(APOSTROPHE); 346 * rule 388 appendToRule(UnicodeString& rule, const UnicodeString& text, UBool isLiteral, UBool escapeUnprintable, UnicodeString& quoteBuf) argument 402 appendToRule(UnicodeString& rule, const UnicodeMatcher* matcher, UBool escapeUnprintable, UnicodeString& quoteBuf) argument [all...] |
/external/icu4c/i18n/ |
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 | strrepl.cpp | 241 UnicodeString& StringReplacer::toReplacerPattern(UnicodeString& rule, argument 243 rule.truncate(0); 251 ICU_Utility::appendToRule(rule, (UChar)0x0040 /*@*/, TRUE, escapeUnprintable, quoteBuf); 258 ICU_Utility::appendToRule(rule, (UChar)0x007C /*|*/, TRUE, escapeUnprintable, quoteBuf); 264 ICU_Utility::appendToRule(rule, c, FALSE, escapeUnprintable, quoteBuf); 270 ICU_Utility::appendToRule(rule, buf, 281 ICU_Utility::appendToRule(rule, (UChar)0x0040 /*@*/, TRUE, escapeUnprintable, quoteBuf); 283 ICU_Utility::appendToRule(rule, (UChar)0x007C /*|*/, TRUE, escapeUnprintable, quoteBuf); 286 ICU_Utility::appendToRule(rule, -1, 289 return rule; [all...] |
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 | cpdtrans.cpp | 397 // general. If we have several rule-based transliterators, this 410 UnicodeString rule; local 417 trans[i]->toRules(rule, escapeUnprintable); 419 rule = UNICODE_STRING_SIMPLE("::Null;") + rule; 426 trans[i]->toRules(rule, escapeUnprintable); 430 trans[i]->Transliterator::toRules(rule, escapeUnprintable); 433 rulesSource.append(rule);
|
H A D | rbt_rule.cpp | 31 * Construct a new rule with the given input, output text, and other 50 * @param anchorStart TRUE if the the rule is anchored on the left to 52 * @param anchorEnd TRUE if the rule is anchored on the right to the 213 * Internal method. Returns 8-bit index value for this rule. 229 * Internal method. Returns true if this rule matches the given 232 * It matches this rule if it matches the first character of the 235 * value. If the rule contains only ante context, as in foo)>bar, 246 * Return true if this rule masks another rule. If r1 masks r2 then 252 /* Rule r1 masks rule r 466 toRule(UnicodeString& rule, UBool escapeUnprintable) const argument [all...] |
/external/webkit/Source/WebCore/rendering/style/ |
H A D | NinePieceImage.h | 64 void setHorizontalRule(ENinePieceImageRule rule) { m_horizontalRule = rule; } argument 67 void setVerticalRule(ENinePieceImageRule rule) { m_verticalRule = rule; } argument
|
/external/webkit/Tools/android/flex-2.5.4a/ |
H A D | parse.y | 87 int previous_continued_action; /* whether the previous rule's action was '|' */ 113 { /* add default rule */ 121 /* Remember the number of the default rule so we 208 /* Initialize for a parse of one rule. */ 219 flexrule : '^' rule 255 | rule 303 { synerr( "unrecognized rule" ); } 365 rule : re2 re label 398 { /* variable trailing context rule */ 399 /* Mark the first part of the rule a [all...] |
/external/chromium/net/proxy/ |
H A D | init_proxy_resolver_unittest.cc | 52 Rule rule(GURL(url), OK /*fetch_error*/, OK /*set_pac_error*/); 53 rules_.push_back(rule); 54 return rule; 100 const Rules::Rule& rule = rules_->GetRuleByUrl(url); local 101 int rv = rule.fetch_error; 104 *text = rule.text(); 147 const Rules::Rule& rule = expects_pac_bytes() ? local 151 int rv = rule.set_pac_error; 155 EXPECT_EQ(rule.text(), script_data->utf16()); 157 EXPECT_EQ(rule 181 Rules::Rule rule = rules.AddSuccessRule("http://custom/proxy.pac"); local 283 Rules::Rule rule = rules.AddSuccessRule("http://wpad/wpad.dat"); local 302 Rules::Rule rule = rules.AddSuccessRule("http://custom/proxy.pac"); local 322 Rules::Rule rule = rules.AddSuccessRule("http://custom/proxy.pac"); local 424 Rules::Rule rule = rules.AddSuccessRule("http://custom/proxy.pac"); local [all...] |
/external/chromium/net/tools/tld_cleanup/ |
H A D | tld_cleanup.cc | 18 // * Strips a single leading and/or trailing dot from each rule, if present. 19 // * Logs a warning if a rule contains '!' or '*.' other than at the beginning 20 // of the rule. (This also catches multiple ! or *. at the start of a rule.) 21 // * Logs a warning if GURL reports a rule as invalid, but keeps the rule. 22 // * Canonicalizes each rule's domain by converting it to a GURL and back. 23 // * Adds explicit rules for true TLDs found in any rule. 53 // 'outfile', with each rule terminated by a LF. The file must already have 99 // Adjusts the rule t 103 NormalizeRule(std::string* domain, Rule* rule) argument 195 Rule rule; local 230 Rule rule; local [all...] |
/external/dbus/dbus/ |
H A D | dbus-bus.c | 638 * The rule in a multithreaded app, then, is that dbus_bus_register() 1429 * Adds a match rule to match messages going through the message bus. 1430 * The "rule" argument is the string form of a match rule. 1460 * Omitting a key from the rule indicates 1462 * the member from a match rule but adding a sender would 1467 * rule matches the message will get through. It is important 1489 * if the rule specifies an interface name. This means match 1494 * in the match rule. 1507 * @param rule textua 1511 dbus_bus_add_match(DBusConnection *connection, const char *rule, DBusError *error) argument 1561 dbus_bus_remove_match(DBusConnection *connection, const char *rule, DBusError *error) argument [all...] |