/external/chromium_org/v8/test/mjsunit/ |
string-replace-with-empty.js | 31 assertEquals("0123", "aa0bb1cc2dd3".replace(/[a-z]/g, "")); 32 assertEquals("0123", "\u1234a0bb1cc2dd3".replace(/[\u1234a-z]/g, "")); 40 assertEquals(expected, cons.replace(/[a-z]/g, "")); 45 assertEquals(expected, cons.replace(/[\u1234a-z]/g, "")); 52 assertEquals(expected, cons.replace(/[a-z]/g, "")); 58 assertEquals(expected, cons.replace(/[\u1234a-z]/g, "")); 64 "foo".replace(/foo/g, "");
|
regexp-capture-3.js | 29 "abcd".replace(re, function() { }); 45 "abcdabcd".replace(/b/g, function() { }); 58 "abcd".replace(re, function() { }); 76 "abcdabcd".replace(/(b)(c)/g, function() { }); 95 "abcdabcd".replace(/(b)(c)/g, function() { }); 109 OverrideCase(function() { return input.replace(re, "x"); }); 110 OverrideCase(function() { return input.replace(re_g, "x"); }); 111 OverrideCase(function() { return input.replace(re, ""); }); 112 OverrideCase(function() { return input.replace(re_g, ""); }); 135 no_last_match(function() { "foo".replace("f", ""); }) [all...] |
/external/markdown/markdown/ |
postprocessors.py | 55 text = text.replace("<p>%s</p>" % 58 text = text.replace(markdown.preprocessors.HTML_PLACEHOLDER % i, 64 html = html.replace('&', '&') 65 html = html.replace('<', '<') 66 html = html.replace('>', '>') 67 return html.replace('"', '"') 76 text = text.replace(markdown.AMP_SUBSTITUTE, "&")
|
/external/v8/test/mjsunit/ |
string-replace-with-empty.js | 31 assertEquals("0123", "aa0bb1cc2dd3".replace(/[a-z]/g, "")); 32 assertEquals("0123", "\u1234a0bb1cc2dd3".replace(/[\u1234a-z]/g, "")); 40 assertEquals(expected, cons.replace(/[a-z]/g, "")); 45 assertEquals(expected, cons.replace(/[\u1234a-z]/g, "")); 52 assertEquals(expected, cons.replace(/[a-z]/g, "")); 58 assertEquals(expected, cons.replace(/[\u1234a-z]/g, "")); 64 "foo".replace(/foo/g, "");
|
/external/chromium_org/tools/gyp/test/variables/filelist/ |
gyptest-filelist-golden.py | 20 expect = expect.replace('/', r'\\').replace('\r\n', '\n') 35 contents = test.read('src/filelist.gypd').replace( 36 '\r', '').replace('\\\\', '/') 37 expect = test.read('filelist.gypd.golden').replace('\r', '')
|
/external/openfst/src/include/fst/script/ |
replace.h | 27 #include <fst/replace.h> 36 void Replace(ReplaceArgs *args) { 38 // pair<real label, real fst> that the real Replace will use 52 Replace(fst_tuples, ofst, args->arg3, args->arg4); 55 void Replace(const vector<pair<int64, const FstClass *> > &tuples,
|
/libcore/harmony-tests/src/test/java/tests/api/java/nio/charset/ |
CodingErrorActionTest.java | 47 assertNotNull(CodingErrorAction.REPLACE); 49 assertNotSame(CodingErrorAction.IGNORE, CodingErrorAction.REPLACE); 51 assertNotSame(CodingErrorAction.REPLACE, CodingErrorAction.REPORT); 59 assertTrue(CodingErrorAction.REPLACE.toString().indexOf("REPLACE") != -1);
|
/external/chromium_org/v8/test/mjsunit/regress/ |
regress-2437.js | 31 // such as String.prototype.replace or String.prototype.match, since it 54 // Test String.prototype.replace with atomic regexp and empty string. 57 "zzzz".replace(r, ""); 60 // Test String.prototype.replace with non-atomic regexp and empty string. 63 "zzzz".replace(r, ""); 66 // Test String.prototype.replace with atomic regexp and non-empty string. 69 "zzzz".replace(r, "a"); 72 // Test String.prototype.replace with non-atomic regexp and non-empty string. 75 "zzzz".replace(r, "a"); 78 // Test String.prototype.replace with replacement functio [all...] |
/external/clang/unittests/Tooling/ |
RefactoringTest.cpp | 47 Replacement Replace(createReplacement(Location, 4, "")); 48 EXPECT_TRUE(Replace.apply(Context.Rewrite)); 55 Replacement Replace(createReplacement(Location, 17, "")); 56 EXPECT_TRUE(Replace.apply(Context.Rewrite)); 63 Replacement Replace(createReplacement(Location, 0, "result")); 64 EXPECT_TRUE(Replace.apply(Context.Rewrite)); 72 Replacement Replace(createReplacement(Location, 12, "x")); 73 EXPECT_TRUE(Replace.apply(Context.Rewrite)); 94 Replacement Replace("nonexistent-file.cpp", 0, 1, ""); 95 EXPECT_FALSE(Replace.apply(Context.Rewrite)) [all...] |
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/ |
ImgSrcReplacementTest.java | 29 private static void replace(final String input, final String expectedOutput) { method in class:ImgSrcReplacementTest 35 replace( 43 replace( 51 replace( 59 replace( 67 replace( 75 replace( 84 replace( 93 replace( 101 replace( [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
string_tests.py | 155 r2, rem = divmod(n - len(i.replace(j, '')), len(j)) 576 EQ("", "", "replace", "", "") 577 EQ("A", "", "replace", "", "A") 578 EQ("", "", "replace", "A", "") 579 EQ("", "", "replace", "A", "A") 580 EQ("", "", "replace", "", "", 100) 581 EQ("", "", "replace", "", "", sys.maxint) 584 EQ("A", "A", "replace", "", "") 585 EQ("*A*", "A", "replace", "", "*") 586 EQ("*1A*1", "A", "replace", "", "*1" [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
string_tests.py | 155 r2, rem = divmod(n - len(i.replace(j, '')), len(j)) 576 EQ("", "", "replace", "", "") 577 EQ("A", "", "replace", "", "A") 578 EQ("", "", "replace", "A", "") 579 EQ("", "", "replace", "A", "A") 580 EQ("", "", "replace", "", "", 100) 581 EQ("", "", "replace", "", "", sys.maxint) 584 EQ("A", "A", "replace", "", "") 585 EQ("*A*", "A", "replace", "", "*") 586 EQ("*1A*1", "A", "replace", "", "*1" [all...] |
/external/chromium_org/v8/test/webkit/ |
regexp-char-insensitive-expected.txt | 39 PASS 'PASå'.replace(/å/ig, 'S') is 'PASS' 40 PASS 'PASå'.replace(/Å/ig, 'S') is 'PASS' 41 PASS 'PASÅ'.replace(/å/ig, 'S') is 'PASS' 42 PASS 'PASÅ'.replace(/Å/ig, 'S') is 'PASS' 43 PASS 'PASS'.replace(/å/ig, '%C3%A5') is 'PASS' 44 PASS 'PASS'.replace(/Å/ig, '%C3%A5') is 'PASS'
|
regexp-char-insensitive.js | 41 shouldBe("'PAS\u00E5'.replace(/\u00E5/ig, 'S')", "'PASS'"); 42 shouldBe("'PAS\u00E5'.replace(/\u00C5/ig, 'S')", "'PASS'"); 43 shouldBe("'PAS\u00C5'.replace(/\u00E5/ig, 'S')", "'PASS'"); 44 shouldBe("'PAS\u00C5'.replace(/\u00C5/ig, 'S')", "'PASS'"); 46 shouldBe("'PASS'.replace(/\u00E5/ig, '%C3%A5')", "'PASS'"); 47 shouldBe("'PASS'.replace(/\u00C5/ig, '%C3%A5')", "'PASS'");
|
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
TestTokenRewriteStream.java | 100 tokens.replace(0, "x"); 116 tokens.replace(2, "x"); 132 tokens.replace(1, "x"); 153 tokens.replace(4, 8, "0"); // replace 3 * 0 with 0 193 tokens.replace(4, 8, "0"); // replace 3 * 0 with 0 235 tokens.replace(1, "x"); 236 tokens.replace(1, "y"); 253 tokens.replace(1, "x") [all...] |
/external/chromium_org/chrome/common/extensions/docs/server2/ |
link_converter.py | 29 clean = (matches.group(2).replace('\\', '') 30 .replace("'", '') 31 .replace('"', '') 32 .replace('/', '')) 44 link = re.sub('^(property|type|method|event)-', '', link).replace('-', '.') 45 page = page.replace('.html', '.').replace('_', '.') 61 contents = contents.replace('$ref:extension.lastError',
|
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/ |
ConcurrentMap.java | 32 V replace(K key, V value); method in interface:ConcurrentMap 34 boolean replace(K key, V oldValue, V newValue); method in interface:ConcurrentMap
|
/external/llvm/test/Transforms/DeadArgElim/ |
canon.ll | 3 ; This test should remove {} and replace it with void 5 ; This test shouls replace the {i32} return value with just i32
|
/external/chromium/chrome/common/extensions/docs/examples/apps/hello-php/ |
README | 8 To "index.php", replace APP_ID, TOKEN, and TOKEN_SECRET with your app's id, your
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/ |
infobar.js | 8 // Replace the placeholder text with the actual count.
|
/external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-php/ |
README | 8 To "index.php", replace APP_ID, TOKEN, and TOKEN_SECRET with your app's id, your
|
/external/chromium_org/third_party/WebKit/ManualTests/ |
editing-disabled-node-replace-crash.html | 9 <p>Right click the following input text, and replace the misspelled text [zz] to something.</p>
|
/external/chromium_org/third_party/mesa/src/src/gallium/targets/dri-vmwgfx/ |
vmw_powf.c | 4 * replace the powf function with calls to expf and logf.
|
/external/chromium_org/tools/grit/grit/format/policy_templates/writers/ |
plist_helper.py | 15 return name.replace(' ', '_')
|
/external/chromium_org/tools/gyp/test/actions-multiple/src/ |
filter.py | 11 fh.write(data.replace(sys.argv[1], sys.argv[2]))
|