/external/webkit/JavaScriptCore/tests/mozilla/ecma_2/String/ |
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/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);
|
15.10.2-1.js | 63 actualmatch = string.match(pattern); 70 actualmatch = string.match(pattern); 77 actualmatch = string.match(pattern); 84 actualmatch = string.match(pattern); 91 actualmatch = string.match(pattern); 98 actualmatch = string.match(pattern); 105 actualmatch = string.match(pattern); 112 actualmatch = string.match(pattern); 119 actualmatch = string.match(pattern); 126 actualmatch = string.match(pattern) [all...] |
/external/webkit/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/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...] |
backslash.js | 41 // 'abcde'.match(new RegExp('\e')) 42 testcases[count++] = new TestCase ( SECTION, "'abcde'.match(new RegExp('\e'))", 43 String(["e"]), String('abcde'.match(new RegExp('\e')))); 45 // 'ab\\cde'.match(new RegExp('\\\\')) 46 testcases[count++] = new TestCase ( SECTION, "'ab\\cde'.match(new RegExp('\\\\'))", 47 String(["\\"]), String('ab\\cde'.match(new RegExp('\\\\')))); 49 // 'ab\\cde'.match(/\\/) (using literal) 50 testcases[count++] = new TestCase ( SECTION, "'ab\\cde'.match(/\\\\/)", 51 String(["\\"]), String('ab\\cde'.match(/\\/))); 53 // 'before ^$*+?.()|{}[] after'.match(new RegExp('\^\$\*\+\?\.\(\)\|\{\}\[\]') [all...] |
/packages/apps/Gallery3D/src/com/cooliris/picasa/ |
TableContentProvider.java | 66 int match = mUriMatcher.match(uri); local 67 if (match == UriMatcher.NO_MATCH) { 72 Mapping mapping = mMappings.get(match); 80 int match = mUriMatcher.match(uri); local 81 if (match == UriMatcher.NO_MATCH) { 86 Mapping mapping = mMappings.get(match); 104 int match = mUriMatcher.match(uri) local 125 int match = mUriMatcher.match(uri); local 153 int match = mUriMatcher.match(uri); local 175 int match = mUriMatcher.match(uri); 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...] |
/external/webkit/WebKitTools/simplejson/ |
decoder.py | 46 def JSONConstant(match, context, c=_CONSTANTS): 47 return c[match.group(0)], None 50 def JSONNumber(match, context): 51 match = JSONNumber.regex.match(match.string, *match.span()) 52 integer, frac, exp = match.groups() 68 def scanstring(s, end, encoding=None, _b=BACKSLASH, _m=STRINGCHUNK.match): 111 def JSONString(match, context) [all...] |
/external/nist-sip/java/gov/nist/javax/sip/parser/ |
WarningParser.java | 87 this.lexer.match(TokenTypes.ID); 100 this.lexer.match(TokenTypes.ID); 104 this.lexer.match(':'); 105 this.lexer.match(TokenTypes.ID); 123 this.lexer.match(','); 129 this.lexer.match(TokenTypes.ID); 142 this.lexer.match(TokenTypes.ID); 148 this.lexer.match(':'); 149 this.lexer.match(TokenTypes.ID);
|
CallInfoParser.java | 77 this.lexer.match('<'); 81 this.lexer.match('>'); 88 this.lexer.match(','); 94 this.lexer.match('<'); 98 this.lexer.match('>');
|
ErrorInfoParser.java | 80 this.lexer.match('<'); 84 this.lexer.match('>'); 91 this.lexer.match(',');
|
/external/webkit/JavaScriptCore/tests/mozilla/js1_5/Regress/ |
regress-179524.js | 38 * SUMMARY: JS shouldn't crash on extraneous args to str.match(), etc. 43 * it is NOT converted to one, unlike the case for str.match(), str.search(). 52 var summary = "Don't crash on extraneous arguments to str.match(), etc."; 65 actual = str.match(re); 70 actual = str.match(re, 'i'); 75 actual = str.match(re, 'g', ''); 80 actual = str.match(re, 'z', new Object(), new Date()); 135 * Now test the case where str.match()'s first argument is not a regexp object. 143 actual = str.match('a').toString(); 144 expect = str.match(/a/).toString() [all...] |
/external/iptables/extensions/ |
libip6t_eui64.c | 35 struct ip6t_entry_match **match) 48 const struct ip6t_entry_match *match, 55 static void save(const struct ip6t_ip6 *ip, const struct ip6t_entry_match *match)
|