/external/apache-http/src/org/apache/http/impl/cookie/ |
BasicPathHandler.java | 58 if (!match(cookie, origin)) { 65 public boolean match(final Cookie cookie, final CookieOrigin origin) { method in class:BasicPathHandler 80 boolean match = targetpath.startsWith (topmostPath); 81 // if there is a match and these values are not exactly the same we have 83 if (match && targetpath.length() != topmostPath.length()) { 85 match = (targetpath.charAt(topmostPath.length()) == '/'); 88 return match;
|
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
AcceptEncodingParser.java | 102 lexer.match(TokenTypes.ID); 108 this.lexer.match(';'); 110 this.lexer.match('q'); 112 this.lexer.match('='); 114 lexer.match(TokenTypes.ID); 129 this.lexer.match(',');
|
AcceptLanguageParser.java | 96 lexer.match(TokenTypes.ID); 102 this.lexer.match(';'); 104 this.lexer.match('q'); 106 this.lexer.match('='); 108 lexer.match(TokenTypes.ID); 123 this.lexer.match(',');
|
/external/v8/tools/ |
disasm.py | 47 # Keys must match constants in Logger::LogCodeInfo. 81 if _DISASM_HEADER_RE.match(line): 88 match = _DISASM_LINE_RE.match(line) 89 if match: 90 line_address = int(match.group(1), 16) 91 split_lines.append((line_address, match.group(2)))
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/String/ |
match-001.js | 2 * File Name: String/match-001.js 11 * String.match( regexp ) 20 * RegExp.prototype.exec repeatedly until there is no match. If there is a 21 * match with an empty string (in other words, if the value of 27 * Note that the match function is intentionally generic; it does not 32 var SECTION = "String/match-001.js"; 34 var TITLE = "String.prototype.match( regexp )"; 64 "( " + string + " ).match(" + str_regexp +").length", 66 string.match(regexp).length ); 69 "( " + string + " ).match(" + str_regexp +").index" [all...] |
match-003.js | 2 * File Name: String/match-003.js 11 * String.match( regexp ) 20 * RegExp.prototype.exec repeatedly until there is no match. If there is a 21 * match with an empty string (in other words, if the value of 27 * Note that the match function is intentionally generic; it does not 32 var SECTION = "String/match-003.js"; 34 var TITLE = "String.prototype.match( regexp )"; 43 // invoke RegExp.prototype.exec repeatedly until there is no match. If 44 // there is a match with an empty string (in other words, if the value of 102 if ( string.match(regexp) == null || matches_array == null ) [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/RegExp/ |
regress-187133.js | 52 * the parens are non-capturing. A non-null match array in the example above 75 actualmatch = string.match(pattern); 81 actualmatch = string.match(pattern); 87 actualmatch = string.match(pattern); 95 actualmatch = string.match(pattern); 101 actualmatch = string.match(pattern); 107 actualmatch = string.match(pattern);
|
regress-191479.js | 62 actualmatch = string.match(pattern); 69 actualmatch = string.match(pattern); 76 actualmatch = string.match(pattern); 83 actualmatch = string.match(pattern); 93 actualmatch = string.match(pattern); 100 actualmatch = string.match(pattern); 107 actualmatch = string.match(pattern); 121 actualmatch = string.match(pattern); 128 actualmatch = string.match(pattern); 135 actualmatch = string.match(pattern) [all...] |
regress-209919.js | 62 * been satisfied, an atom being repeated must not match the empty string." 73 actualmatch = string.match(pattern); 86 actualmatch = string.match(pattern); 95 * The global match is the '' at the ^ position of 'a', but the parens 101 actualmatch = string.match(pattern); 114 actualmatch = string.match(pattern); 126 actualmatch = string.match(pattern); 132 actualmatch = string.match(pattern); 138 actualmatch = string.match(pattern);
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/Statements/ |
switch-001.js | 30 var cnMatch = 'Match'; 41 actual = match(17, f(fInverse(17)), f, fInverse); 46 actual = match(17, 18, f, fInverse); 51 actual = match(1, 1, Math.exp, Math.log); 56 actual = match(1, 2, Math.exp, Math.log); 61 actual = match(1, 1, Math.sin, Math.cos); 76 function match(x, y, F, G) function
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_2/regexp/ |
RegExp_lastMatch.js | 41 // 'foo'.match(/foo/); RegExp.lastMatch 42 'foo'.match(/foo/); 43 testcases[count++] = new TestCase ( SECTION, "'foo'.match(/foo/); RegExp.lastMatch", 46 // 'foo'.match(new RegExp('foo')); RegExp.lastMatch 47 'foo'.match(new RegExp('foo')); 48 testcases[count++] = new TestCase ( SECTION, "'foo'.match(new RegExp('foo')); RegExp.lastMatch", 51 // 'xxx'.match(/bar/); RegExp.lastMatch 52 'xxx'.match(/bar/); 53 testcases[count++] = new TestCase ( SECTION, "'xxx'.match(/bar/); RegExp.lastMatch", 56 // 'xxx'.match(/$/); RegExp.lastMatc [all...] |
RegExp_lastMatch_as_array.js | 41 // 'foo'.match(/foo/); RegExp['$&'] 42 'foo'.match(/foo/); 43 testcases[count++] = new TestCase ( SECTION, "'foo'.match(/foo/); RegExp['$&']", 46 // 'foo'.match(new RegExp('foo')); RegExp['$&'] 47 'foo'.match(new RegExp('foo')); 48 testcases[count++] = new TestCase ( SECTION, "'foo'.match(new RegExp('foo')); RegExp['$&']", 51 // 'xxx'.match(/bar/); RegExp['$&'] 52 'xxx'.match(/bar/); 53 testcases[count++] = new TestCase ( SECTION, "'xxx'.match(/bar/); RegExp['$&']", 56 // 'xxx'.match(/$/); RegExp['$&' [all...] |
backspace.js | 41 // 'abc\bdef'.match(new RegExp('.[\b].')) 42 testcases[count++] = new TestCase ( SECTION, "'abc\bdef'.match(new RegExp('.[\\b].'))", 43 String(["c\bd"]), String('abc\bdef'.match(new RegExp('.[\\b].')))); 45 // 'abc\\bdef'.match(new RegExp('.[\b].')) 46 testcases[count++] = new TestCase ( SECTION, "'abc\\bdef'.match(new RegExp('.[\\b].'))", 47 null, 'abc\\bdef'.match(new RegExp('.[\\b].'))); 49 // 'abc\b\b\bdef'.match(new RegExp('c[\b]{3}d')) 50 testcases[count++] = new TestCase ( SECTION, "'abc\b\b\bdef'.match(new RegExp('c[\\b]{3}d'))", 51 String(["c\b\b\bd"]), String('abc\b\b\bdef'.match(new RegExp('c[\\b]{3}d')))); 53 // 'abc\bdef'.match(new RegExp('[^\\[\b\\]]+') [all...] |
beginLine.js | 41 // 'abcde'.match(new RegExp('^ab')) 42 testcases[count++] = new TestCase ( SECTION, "'abcde'.match(new RegExp('^ab'))", 43 String(["ab"]), String('abcde'.match(new RegExp('^ab')))); 45 // 'ab\ncde'.match(new RegExp('^..^e')) 46 testcases[count++] = new TestCase ( SECTION, "'ab\ncde'.match(new RegExp('^..^e'))", 47 null, 'ab\ncde'.match(new RegExp('^..^e'))); 49 // 'yyyyy'.match(new RegExp('^xxx')) 50 testcases[count++] = new TestCase ( SECTION, "'yyyyy'.match(new RegExp('^xxx'))", 51 null, 'yyyyy'.match(new RegExp('^xxx'))); 53 // '^^^x'.match(new RegExp('^\\^+') [all...] |
endLine.js | 41 // 'abcde'.match(new RegExp('de$')) 42 testcases[count++] = new TestCase ( SECTION, "'abcde'.match(new RegExp('de$'))", 43 String(["de"]), String('abcde'.match(new RegExp('de$')))); 45 // 'ab\ncde'.match(new RegExp('..$e$')) 46 testcases[count++] = new TestCase ( SECTION, "'ab\ncde'.match(new RegExp('..$e$'))", 47 null, 'ab\ncde'.match(new RegExp('..$e$'))); 49 // 'yyyyy'.match(new RegExp('xxx$')) 50 testcases[count++] = new TestCase ( SECTION, "'yyyyy'.match(new RegExp('xxx$'))", 51 null, 'yyyyy'.match(new RegExp('xxx$'))); 53 // 'a$$$'.match(new RegExp('\\$+$') [all...] |
global.js | 49 // '123 456 789'.match(/\d+/g) 50 testcases[count++] = new TestCase ( SECTION, "'123 456 789'.match(/\\d+/g)", 51 String(["123","456","789"]), String('123 456 789'.match(/\d+/g))); 53 // '123 456 789'.match(/(\d+)/g) 54 testcases[count++] = new TestCase ( SECTION, "'123 456 789'.match(/(\\d+)/g)", 55 String(["123","456","789"]), String('123 456 789'.match(/(\d+)/g))); 57 // '123 456 789'.match(/\d+/) 58 testcases[count++] = new TestCase ( SECTION, "'123 456 789'.match(/\\d+/)", 59 String(["123"]), String('123 456 789'.match(/\d+/))); 69 // '123 456 789'.match(new RegExp('\\d+','g') [all...] |
digit.js | 47 "'" + digits + "'.match(new RegExp('\\d+'))", 48 String([digits]), String(digits.match(new RegExp('\\d+')))); 52 "'" + non_digits + "'.match(new RegExp('\\D+'))", 53 String([non_digits]), String(non_digits.match(new RegExp('\\D+')))); 57 "'" + non_digits + "'.match(new RegExp('\\d'))", 58 null, non_digits.match(new RegExp('\\d'))); 62 "'" + digits + "'.match(new RegExp('\\D'))", 63 null, digits.match(new RegExp('\\D'))); 69 "'" + s + "'.match(new RegExp('\\d+'))", 70 String([digits]), String(s.match(new RegExp('\\d+')))) [all...] |
/external/webkit/Source/WebCore/inspector/front-end/ |
InspectorFrontendHostStub.js | 43 var match = navigator.userAgent.match(/Windows NT/); 44 if (match) 46 match = navigator.userAgent.match(/Mac OS X/); 47 if (match)
|
/external/chromium/chrome/browser/autocomplete/ |
autocomplete_result_unittest.cc | 28 // Configures |match| from |data|. 30 AutocompleteMatch* match); 55 AutocompleteMatch* match) { 56 match->provider = reinterpret_cast<AutocompleteProvider*>(data.provider_id); 57 match->fill_into_edit = base::IntToString16(data.url_id); 59 match->destination_url = GURL("http://" + url_id); 60 match->relevance = data.relevance; 69 AutocompleteMatch match; local 70 PopulateAutocompleteMatch(data[i], &match); 71 matches->push_back(match); 83 const AutocompleteMatch& match = *(result.begin() + i); local 126 AutocompleteMatch match; local [all...] |
history_url_provider.cc | 79 // Given the user's |input| and a |match| created from it, reduce the 80 // match's URL to just a host. If this host still matches the user input, 82 GURL ConvertToHostOnly(const HistoryMatch& match, const string16& input) { 87 const GURL& url = match.url_info.url(); 91 // Transform to a host-only match. Bail if the host no longer matches the 94 if ((host.spec().length() < (match.input_location + input.length()))) 98 if (spec.compare(match.input_location, input.length(), input)) 179 // Create a What You Typed match, which we'll need below. 231 // Try to promote a match as an exact/inline autocomplete match. This als 267 const HistoryMatch& match = history_matches[i]; local 486 const HistoryMatch& match = matches->front(); local [all...] |
autocomplete_popup_model.cc | 73 const AutocompleteMatch& match = result.match_at(line); local 78 manually_selected_match_.destination_url = match.destination_url; 79 manually_selected_match_.provider_affinity = match.provider; 81 match.is_history_what_you_typed_match; 100 // Update the edit with the new data for this match. 104 const bool is_keyword_hint = GetKeywordForMatch(match, &keyword); 107 if ((match.inline_autocomplete_offset != string16::npos) && 108 (match.inline_autocomplete_offset < match.fill_into_edit.length())) { 110 match.fill_into_edit.substr(match.inline_autocomplete_offset) 203 const AutocompleteMatch& match = result().match_at(selected_line_); local [all...] |
/frameworks/base/core/java/android/os/ |
PatternMatcher.java | 26 * Pattern type: the given pattern must exactly match the string it is 32 * Pattern type: the given pattern must match the 40 * In this syntax, you can use the '*' character to match against zero or 42 * character before it is '.' it will match any character. The character 64 public boolean match(String str) { method in class:PatternMatcher 109 static boolean matchPattern(String pattern, String match, int type) { 110 if (match == null) return false; 112 return pattern.equals(match); 114 return match.startsWith(pattern); 121 return match.length() <= 0 [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
UriMatcherTest.java | 66 notes = "Test match(Uri uri).", 67 method = "match", 76 assertEquals(sCode1, mUriMatcher.match(uri1)); 77 assertEquals(sCode2, mUriMatcher.match(uri2)); 78 assertEquals(sCode3, mUriMatcher.match(uri3)); 79 assertEquals(sCode4, mUriMatcher.match(uri4)); 83 assertEquals(-1, mUriMatcher.match(unknown)); 88 notes = "Test match(Uri uri).", 89 method = "match", 95 mUriMatcher.match(null) [all...] |
/external/icu4c/tools/genprops/misc/ |
ucdcopy.py | 37 match = _strip_re.match(line) 38 if match: 39 line = match.group(1) 43 match = _code_point_re.match(line) 44 if match: 45 c = int(match.group(1), 16) 46 data = line[match.end() - 1:] 155 match = _file_version_re.match(basename [all...] |
/external/icu4c/tools/genprops/ |
ucdcopy.py | 37 match = _strip_re.match(line) 38 if match: 39 line = match.group(1) 43 match = _code_point_re.match(line) 44 if match: 45 c = int(match.group(1), 16) 46 data = line[match.end() - 1:] 155 match = _file_version_re.match(basename [all...] |