/external/v8/test/mjsunit/regress/ |
D | regress-219.js | 35 function assertFlags(re, global, multiline, ignoreCase) { argument 36 var name = re + " flag: "; 37 (global ? assertTrue : assertFalse)(re.global, name + "g"); 38 (multiline ? assertTrue : assertFalse)(re.multiline, name + "m"); 39 (ignoreCase ? assertTrue : assertFalse)(re.ignoreCase, name + "i"); 42 var re = /a/; variable 43 assertFlags(re, false, false, false) 45 re = /a/gim; 46 assertFlags(re, true, true, true) 48 re = RegExp("a",""); [all …]
|
D | regress-52801.js | 39 var re = /a/g; variable 45 re.test(str); 46 assertEquals(5, re.lastIndex); 48 re.lastIndex = 0; 49 re.test(str); 50 assertEquals(5, re.lastIndex); // Fails if caching. 52 re.lastIndex = 0; 53 re.test(str); 54 assertEquals(5, re.lastIndex); // Fails if caching. 58 re = /a/g; [all …]
|
D | regress-254.js | 31 var re = /x/g; variable 33 assertEquals(0, re.lastIndex, "Global, initial lastIndex"); 35 assertTrue(re.test("x"), "Global, test 1"); 36 assertEquals(1, re.lastIndex, "Global, lastIndex after test 1"); 37 assertFalse(re.test("x"), "Global, test 2"); 38 assertEquals(0, re.lastIndex, "Global, lastIndex after test 2"); 40 assertEquals(["x"], re.exec("x"), "Global, exec 1"); 41 assertEquals(1, re.lastIndex, "Global, lastIndex after exec 1"); 42 assertEquals(null, re.exec("x"), "Global, exec 2"); 43 assertEquals(0, re.lastIndex, "Global, lastIndex after exec 2");
|
/external/v8/test/mjsunit/ |
D | regexp-lookahead.js | 35 function testRE(re, input, expected_result) { argument 36 var testName = re + ".test(" + stringEscape(input) +")"; 38 assertTrue(re.test(input), testName); 40 assertFalse(re.test(input), testName); 44 function execRE(re, input, expected_result) { argument 45 var testName = re + ".exec('" + stringEscape(input) +"')"; 46 assertEquals(expected_result, re.exec(input), testName); 51 var re = /^(?=a)/; variable 52 testRE(re, "a", true); 53 testRE(re, "b", false); [all …]
|
D | regexp.js | 39 var re = new RegExp(s); variable 40 assertEquals(s.match(re).length, 1); 41 assertEquals(s.match(re)[0], String.fromCharCode(0)); 45 re = /^./gm; // any non-newline character at the beginning of a line 46 var result = s.match(re); 55 re = /.$/gm; // any non-newline character at the end of a line 56 result = s.match(re); 65 re = /^[^]/gm; // *any* character at the beginning of a line 66 result = s.match(re); 76 re = /[^]$/gm; // *any* character at the end of a line [all …]
|
D | regexp-compile.js | 30 var re = /x/; variable 31 assertEquals("a.yb", "axyb".replace(re, ".")); 33 re.compile("y") 34 assertEquals("ax.b", "axyb".replace(re, ".")); 36 re.compile("(x)"); 38 assertEquals("x,x", re.exec("axyb")); 40 re.compile("(y)"); 42 assertEquals("y,y", re.exec("axyb"));
|
/external/icu4c/test/cintltst/ |
D | reapits.c | 52 re = uregex_openC(pattern, flags, NULL, &status); \ 56 uregex_setText(re, srcString, -1, &status); \ 63 uregex_close(re); \ 170 URegularExpression *re; in TestRegexCAPI() local 178 re = uregex_open(pat, -1, 0, 0, &status); in TestRegexCAPI() 183 uregex_close(re); in TestRegexCAPI() 187 re = uregex_open(pat, -1, in TestRegexCAPI() 191 uregex_close(re); in TestRegexCAPI() 195 re = uregex_open(pat, -1, 0x40000000, 0, &status); in TestRegexCAPI() 197 uregex_close(re); in TestRegexCAPI() [all …]
|
/external/opencv/cxcore/src/ |
D | _cxcore.h | 102 float re, im; member 105 CvComplex32f( float _re, float _im=0 ) : re(_re), im(_im) {} in re() function 114 double re, im; member 117 CvComplex64f( double _re, double _im=0 ) : re(_re), im(_im) {} in re() function 124 inline CvComplex32f::CvComplex32f( const CvComplex64f& v ) : re((float)v.re), im((float)v.im) {} in CvComplex32f() 125 inline CvComplex64f::CvComplex64f( const CvComplex32f& v ) : re(v.re), im(v.im) {} in CvComplex64f() 129 return CvComplex32f( a.re + b.re, a.im + b.im ); 134 a.re += b.re; 141 return CvComplex32f( a.re - b.re, a.im - b.im ); 146 a.re -= b.re; [all …]
|
D | cxdxt.cpp | 357 w.re = w1.re = icvDxtTab[m][0]; in icvDFTInit() 364 w.re = w1.re = sqrt(1. - w1.im*w1.im); in icvDFTInit() 372 wave[0].re = 1.; in icvDFTInit() 377 wave[n].re = -1.; in icvDFTInit() 384 wave[n0-i].re = w.re; in icvDFTInit() 387 t = w.re*w1.re - w.im*w1.im; in icvDFTInit() 388 w.im = w.re*w1.im + w.im*w1.re; in icvDFTInit() 389 w.re = t; in icvDFTInit() 397 wave[0].re = 1.f; in icvDFTInit() 402 wave[n].re = -1.f; in icvDFTInit() [all …]
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/RegExp/ |
D | properties-001.js | 31 function AddRegExpCases( re, s, g, i, m, l ) { argument 33 AddTestCase( re + ".test == RegExp.prototype.test", 35 re.test == RegExp.prototype.test ); 37 AddTestCase( re + ".toString == RegExp.prototype.toString", 39 re.toString == RegExp.prototype.toString ); 41 AddTestCase( re + ".contructor == RegExp.prototype.constructor", 43 re.constructor == RegExp.prototype.constructor ); 45 AddTestCase( re + ".compile == RegExp.prototype.compile", 47 re.compile == RegExp.prototype.compile ); 49 AddTestCase( re + ".exec == RegExp.prototype.exec", [all …]
|
D | properties-002.js | 78 function AddRegExpCases( re, s, g, i, m, l ){ argument 80 AddTestCase( re + ".test == RegExp.prototype.test", 82 re.test == RegExp.prototype.test ); 84 AddTestCase( re + ".toString == RegExp.prototype.toString", 86 re.toString == RegExp.prototype.toString ); 88 AddTestCase( re + ".contructor == RegExp.prototype.constructor", 90 re.constructor == RegExp.prototype.constructor ); 92 AddTestCase( re + ".compile == RegExp.prototype.compile", 94 re.compile == RegExp.prototype.compile ); 96 AddTestCase( re + ".exec == RegExp.prototype.exec", [all …]
|
D | function-001.js | 27 var re = new RegExp(); variable 32 re.__proto__ 39 re.getClassProperty() ); 44 re.source ); 49 re.global ); 54 re.ignoreCase ); 59 re.multiline ); 64 re.lastIndex );
|
D | constructor-001.js | 27 var re = new RegExp(); variable 32 re.__proto__ 39 re.getClassProperty() ); 44 re.source ); 49 re.global ); 54 re.ignoreCase ); 59 re.multiline ); 64 re.lastIndex );
|
/external/pcre/ |
D | pcre_try_flipped.c | 102 _pcre_try_flipped(const real_pcre *re, real_pcre *internal_re, in _pcre_try_flipped() argument 105 if (byteflip(re->magic_number, sizeof(re->magic_number)) != MAGIC_NUMBER) in _pcre_try_flipped() 108 *internal_re = *re; /* To copy other fields */ in _pcre_try_flipped() 109 internal_re->size = byteflip(re->size, sizeof(re->size)); in _pcre_try_flipped() 110 internal_re->options = byteflip(re->options, sizeof(re->options)); in _pcre_try_flipped() 111 internal_re->flags = (pcre_uint16)byteflip(re->flags, sizeof(re->flags)); in _pcre_try_flipped() 113 (pcre_uint16)byteflip(re->top_bracket, sizeof(re->top_bracket)); in _pcre_try_flipped() 115 (pcre_uint16)byteflip(re->top_backref, sizeof(re->top_backref)); in _pcre_try_flipped() 117 (pcre_uint16)byteflip(re->first_byte, sizeof(re->first_byte)); in _pcre_try_flipped() 119 (pcre_uint16)byteflip(re->req_byte, sizeof(re->req_byte)); in _pcre_try_flipped() [all …]
|
D | pcre_fullinfo.c | 74 const real_pcre *re = (const real_pcre *)argument_re; in pcre_fullinfo() local 77 if (re == NULL || where == NULL) return PCRE_ERROR_NULL; in pcre_fullinfo() 82 if (re->magic_number != MAGIC_NUMBER) in pcre_fullinfo() 84 re = _pcre_try_flipped(re, &internal_re, study, &internal_study); in pcre_fullinfo() 85 if (re == NULL) return PCRE_ERROR_BADMAGIC; in pcre_fullinfo() 92 *((unsigned long int *)where) = re->options & PUBLIC_COMPILE_OPTIONS; in pcre_fullinfo() 96 *((size_t *)where) = re->size; in pcre_fullinfo() 104 *((int *)where) = re->top_bracket; in pcre_fullinfo() 108 *((int *)where) = re->top_backref; in pcre_fullinfo() 113 ((re->flags & PCRE_FIRSTSET) != 0)? re->first_byte : in pcre_fullinfo() [all …]
|
D | pcre_info.c | 79 const real_pcre *re = (const real_pcre *)argument_re; in pcre_info() local 80 if (re == NULL) return PCRE_ERROR_NULL; in pcre_info() 81 if (re->magic_number != MAGIC_NUMBER) in pcre_info() 83 re = _pcre_try_flipped(re, &internal_re, NULL, NULL); in pcre_info() 84 if (re == NULL) return PCRE_ERROR_BADMAGIC; in pcre_info() 86 if (optptr != NULL) *optptr = (int)(re->options & PUBLIC_COMPILE_OPTIONS); in pcre_info() 88 *first_byte = ((re->flags & PCRE_FIRSTSET) != 0)? re->first_byte : in pcre_info() 89 ((re->flags & PCRE_STARTLINE) != 0)? -1 : -2; in pcre_info() 90 return re->top_bracket; in pcre_info()
|
D | pcre_refcount.c | 74 real_pcre *re = (real_pcre *)argument_re; in pcre_refcount() local 75 if (re == NULL) return PCRE_ERROR_NULL; in pcre_refcount() 76 re->ref_count = (-adjust > re->ref_count)? 0 : in pcre_refcount() 77 (adjust + re->ref_count > 65535)? 65535 : in pcre_refcount() 78 re->ref_count + adjust; in pcre_refcount() 79 return re->ref_count; in pcre_refcount()
|
/external/icu4c/data/curr/ |
D | sn.txt | 16 "Diramu re United Arab Emirates", 24 "Dora re Australia", 28 "Dhinari re Bhahareni", 32 "Furenki re Bhurundi", 36 "Pura re Botswana", 40 "Dora re Kanada", 44 "Furenki re Kongo", 48 "Furenki re Swisi", 56 "Dhora re Escudo", 60 "Furenki re Jibhuti", [all …]
|
/external/llvm/test/MC/MachO/ |
D | x86_32-optimal_nop.s | 21 # nopl (%[re]ax) 31 # nopl 0(%[re]ax) 40 # nopl 0(%[re]ax,%[re]ax,1) 48 # nopw 0(%[re]ax,%[re]ax,1) 55 # nopl 0L(%[re]ax) 69 # nopl 0L(%[re]ax,%[re]ax,1) 82 # nopw 0L(%[re]ax,%[re]ax,1) 95 # nopw %cs:0L(%[re]ax,%[re]ax,1) 106 # nopw %cs:0L(%[re]ax,%[re]ax,1) 116 # nopw 0(%[re]ax,%[re]ax,1) [all …]
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/String/ |
D | match-003.js | 52 re = /([\d]{5})([-\ ]?[\d]{4})?$/g; 57 AddGlobalRegExpCases( re, 58 "re = " + re, 62 re.lastIndex = 0; 65 re, 66 "re = " + re + "; re.lastIndex = 0 ", 71 re.lastIndex = s.length; 74 re, 75 "re = " + re + "; re.lastIndex = " + s.length, 79 re.lastIndex = s.lastIndexOf("0"); [all …]
|
/external/v8/tools/ |
D | jsmin.py | 47 import re 109 if re.match("[\"'/]", matched_text): 111 m = re.match(r"var ", matched_text) 114 var_names = re.split(r",", var_names) 116 m = re.match(r"(function\b[^(]*)\((.*)\)\{$", matched_text) 120 args = re.split(r",", args) 183 if re.match(r"'.*'$", entire_match): 185 if re.match(r'".*"$', entire_match): 187 if re.match(r"/.+/$", entire_match): 204 for line in re.split(r"\n", text): [all …]
|
/external/chromium/testing/gtest/test/ |
D | gtest_output_test.py | 44 import re 101 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\: ', r'\1:#: ', test_output) 108 return re.sub(r'Stack trace:(.|\n)*?\n\n', 116 return re.sub(r'Stack trace:(.|\n)*?\n\n', '', output) 122 return re.sub(r'\(\d+ ms', '(? ms', output) 136 return re.sub(r'unsigned int', 'unsigned', test_output) 144 test_output = re.sub('\x1b\\[(0;3\d)?m', '', test_output) 146 test_output = re.sub(r': Failure\n', r': error: ', test_output) 148 test_output = re.sub(r'((\w|\.)+)\((\d+)\):', r'\1:\3:', test_output) 156 output = re.sub(r'\d+ tests?, listed below', [all …]
|
/external/webkit/Source/JavaScriptCore/tests/mozilla/js1_2/regexp/ |
D | RegExp_lastIndex.js | 43 re=/x./g; 44 re.lastIndex=4; 46 '["xa"]', String(re.exec('xyabcdxa'))); 50 8, re.lastIndex); 54 null, re.exec('xyabcdef')); 58 0, re.lastIndex); 62 '["xy"]', String(re.exec('xyabcdef'))); 65 re.lastIndex=30; 67 null, re.exec('123xaxbxc456'));
|
D | toString.js | 42 var re = new RegExp(); variable 44 '/(?:)/', re.toString()); 47 re = /.+/; 49 '/.+/', re.toString()); 52 re = /test/gi; 54 '/test/gi', re.toString()); 57 re = /test2/ig; 59 '/test2/gi', re.toString());
|
/external/chromium/testing/gmock/test/ |
D | gmock_output_test.py | 44 import re 68 output = re.sub(r'.*gtest_main.*\n', '', output) 69 output = re.sub(r'\[.*\d+ tests.*\n', '', output) 70 output = re.sub(r'\[.* test environment .*\n', '', output) 71 output = re.sub(r'\[=+\] \d+ tests .* ran.*', '', output) 72 output = re.sub(r'.* FAILED TESTS\n', '', output) 89 return re.sub(r'.*[/\\](.+)(\:\d+|\(\d+\))\:', 'FILE:#:', output) 95 return re.sub(r' error: ', ' Failure\n', output) 101 return re.sub(r'@\w+', '@0x#', output) 107 return re.sub(r'\(used in test .+\) ', '', output) [all …]
|