/external/v8/test/mjsunit/regress/ |
H A D | regress-crbug-181422.js | 28 assertArrayEquals(["\u00a0"], "ab\u00a0cd".match(/\s/)); 29 assertArrayEquals(["a", "b", "c", "d"], "ab\u00a0cd".match(/\S/g)); 31 assertArrayEquals(["\u00a0"], "\u2604b\u00a0cd".match(/\s/)); 32 assertArrayEquals(["\u2604", "b", "c", "d"], "\u2604b\u00a0cd".match(/\S/g));
|
H A D | regress-regexp-nocase.js | 30 assertEquals(s.match(/\((').*\1\)/i), ["('')", "'"]);
|
H A D | regress-126412.js | 28 "".match(/(A{9999999999}B|C*)*D/); 29 "C".match(/(A{9999999999}B|C*)*D/); 30 "".match(/(A{9999999999}B|C*)*/ ); 31 "C".match(/(A{9999999999}B|C*)*/ ); 32 "".match(/(9u|(2\`shj{2147483649,}\r|3|f|y|3*)+8\B)\W93+/); 33 "9u8 ".match(/(9u|(2\`shj{2147483649,}\r|3|f|y|3*)+8\B)\W93+/);
|
H A D | regress-187.js | 30 assertEquals(["f", undefined], "foo".match(/(?:(?=(f)o)fx|)./));
|
H A D | regress-176.js | 31 "foo".match(/(?:(?=(f)o))?f/), 32 "zero length match in (?:) with capture in lookahead"); 34 "foo".match(/(?=(f)o)?f/), 35 "zero length match in (?=) with capture in lookahead"); 37 "foo".match(/(?:(?=(f)o)f)?o/), 38 "non-zero length match with capture in lookahead"); 40 "foo".match(/(?:(?=(f)o)f?)?o/), 41 "non-zero length match with greedy ? in (?:)"); 43 "foo".match(/(?:(?=(f)o)f??)?o/), 44 "non-zero length match wit [all...] |
H A D | regress-2058.js | 31 // A match after a replace with a function argument needs to reset 33 // to indicate the last match. 35 "foo bar".match(/( )/);
|
H A D | regress-399.js | 31 var year = Number(String(date).match(/.*(200\d)/)[1]);
|
H A D | regress-851.js | 31 assertNull(JSON.stringify({x: null}).match(/\0/));
|
H A D | regress-crbug-178790.js | 35 "test".match(RegExp(r1)); 41 "test".match(RegExp(r2)); 51 "test".match(RegExp(r3));
|
/external/v8/test/mjsunit/harmony/ |
H A D | string-match.js | 8 pattern[Symbol.match] = function(string) { 12 assertThrows(() => String.prototype.match.call(null, pattern), 15 assertEquals(5, "abcde".match(pattern)); 17 pattern[Symbol.match] = "dumdidum"; 18 assertThrows(() => "abcde".match(pattern), TypeError); 20 assertEquals("[Symbol.match]", RegExp.prototype[Symbol.match].name);
|
H A D | regexp-lookbehind.js | 8 assertEquals(["a"], "a".match(/^.(?<=a)/)); 9 assertNull("b".match(/^.(?<=a)/)); 10 assertEquals(["foo"], "foo1".match(/^f..(?<=.oo)/)); 11 assertEquals(["foo"], "foo2".match(/^f\w\w(?<=\woo)/)); 12 assertNull("boo".match(/^f\w\w(?<=\woo)/)); 13 assertNull("fao".match(/^f\w\w(?<=\woo)/)); 14 assertNull("foa".match(/^f\w\w(?<=\woo)/)); 15 assertEquals(["def"], "abcdef".match(/(?<=abc)\w\w\w/)); 16 assertEquals(["def"], "abcdef".match(/(?<=a.c)\w\w\w/)); 17 assertEquals(["def"], "abcdef".match(/( [all...] |
/external/curl/packages/NetWare/ |
H A D | get_ver.awk | 29 if (match ($0, /^#define LIBCURL_COPYRIGHT "([^"]+)"$/)) 31 else if (match ($0, /^#define LIBCURL_VERSION "[^"]+"$/)) 33 else if (match ($0, /^#define LIBCURL_VERSION_MAJOR [0-9]+$/)) 35 else if (match ($0, /^#define LIBCURL_VERSION_MINOR [0-9]+$/)) 37 else if (match ($0, /^#define LIBCURL_VERSION_PATCH [0-9]+$/))
|
/external/autotest/tko/ |
H A D | query_lib.py | 29 #match = re.match(r'^[(](.+)[)]$', condition) 30 #if match: 33 # for c in match.group(1): 40 # return me(match.group(1), valid_field_dict) 43 match = re.match(r'^(.+)[|](.+)$', condition) 44 if match: 46 (a_sql, a_values) = me(match.group(1), valid_field_dict) 47 (b_sql, b_values) = me(match [all...] |
/external/c-ares/ |
H A D | get_ver.awk | 10 if (match (ARGV[1], /ares_version.h/)) { 12 if (match ($0, /^#define ARES_COPYRIGHT "[^"]+"$/)) { 15 else if (match ($0, /^#define ARES_VERSION_STR "[^"]+"$/)) { 18 else if (match ($0, /^#define ARES_VERSION_MAJOR [0-9]+$/)) { 21 else if (match ($0, /^#define ARES_VERSION_MINOR [0-9]+$/)) { 24 else if (match ($0, /^#define ARES_VERSION_PATCH [0-9]+$/)) {
|
/external/libunwind/tests/ |
H A D | check-namespace.sh.in | 46 match () { 91 match _UL${plat}_create_addr_space 92 match _UL${plat}_destroy_addr_space 93 match _UL${plat}_get_fpreg 94 match _UL${plat}_get_proc_info 95 match _UL${plat}_get_proc_info_by_ip 96 match _UL${plat}_get_proc_name 97 match _UL${plat}_get_reg 98 match _UL${plat}_get_save_loc 99 match _U [all...] |
/external/skia/tools/ |
H A D | misc_utils.py | 20 Opens a file for reading and searches line by line for a match to 22 first match. Does not search across newlines. 33 default: what to return if no match 40 match = pattern_object.search(line) 41 if match: 42 return match.group('return') 52 default: what to return if no match 57 match = re.search(pattern, input_string) 58 return match.group('return') if match els [all...] |
H A D | nanobench_flags.py | 69 match = [] 72 match.append('~blurroundrect') 73 match.append('~patch_grid') # skia:2847 74 match.append('~desk_carsvg') 76 match.extend(['~gradient', '~etc1bitmap']) # skia:2895 78 match.append('~desk_unicodetable') 80 match.append('~GLInstancedArraysBench') # skia:4371 83 match.append('~blurroundrect') 84 match.append('~patch_grid') # skia:2847 85 match [all...] |
/external/nist-sip/java/gov/nist/core/ |
H A D | Match.java | 39 /** Return true if a match occurs for searchString. 40 * This is used for pattern matching in the find and replace and match 45 public boolean match(String searchString); method in interface:Match
|
/external/v8/test/mjsunit/ |
H A D | function-caller.js | 28 function f(match) { 29 g(match); 32 function g(match) { 34 assertEquals(match, f.caller);
|
H A D | with-function-expression.js | 36 var res = assertTrue(eval(source).match(regexp) == 'function');
|
/external/llvm/utils/ |
H A D | schedcover.py | 64 match = re_sched_default.match(line) 65 if match: add(match.group(1), None, match.group(2)) 66 match = re_sched_no_default.match(line) 67 if match: add(match.group(1), None) 68 match [all...] |
/external/autotest/client/site_tests/hardware_GobiGPS/ |
H A D | hardware_GobiGPS.py | 57 match = re.search( 62 if match and match.group(2) == 'A' and not got_fix: 64 logging.debug('Time = %s', match.group(1)) 65 logging.debug('Status = %s', match.group(2)) 66 logging.debug('Latitude = %s %s', match.group(3), 67 match.group(4)) 68 logging.debug('Longitude = %s %s', match.group(5), 69 match.group(6)) 70 logging.debug('Speed = %s', match [all...] |
/external/chromium-trace/catapult/third_party/webapp2/tests/ |
H A D | extras_routes_test.py | 31 route_match, args, kwargs = router.match(webapp2.Request.blank('/foo')) 111 match = ((), {}) 112 self.assertEqual(router.match(webapp2.Request.blank(path))[1:], match) 113 self.assertEqual(router.build(webapp2.Request.blank('/'), 'name-a', match[0], match[1]), path) 116 match = ((), {}) 117 self.assertEqual(router.match(webapp2.Request.blank(path))[1:], match) 118 self.assertEqual(router.build(webapp2.Request.blank('/'), 'name-a/b', match[ [all...] |
/external/v8/test/webkit/fast/js/ |
H A D | regexp-lastindex.js | 30 var match; variable 31 shouldBe('while (match = re.exec(" abcdefg")) accumulate += match + "; "; accumulate', '"abcdefg; "'); 35 shouldBe('while (match = re.exec("123456789")) accumulate += match + "; "; accumulate', '"1; 2; 3; 4; 5; 6; 7; 8; 9; "');
|
/external/strace/tests/ |
H A D | unix-yy-accept.awk | 39 if (match($0, r_socket, a)) { 49 NR == 2 {if (r_bind != "" && match($0, r_bind)) next} 51 NR == 3 {if (r_listen != "" && match($0, r_listen)) next} 53 NR == 4 {if (r_getsockname != "" && match($0, r_getsockname)) next} 56 if (r_accept != "" && match($0, r_accept, a)) { 65 NR == 6 {if (r_close_listen != "" && match($0, r_close_listen)) next} 66 NR == 7 {if (r_close_accepted != "" && match($0, r_close_accepted)) next} 71 print "Line " NR " does not match: " $0
|