/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_strop.py | 58 replace = strop.replace 59 self.assertTrue(replace("one!two!three!", '!', '@', 1) 61 self.assertTrue(replace("one!two!three!", '!', '@', 2) 63 self.assertTrue(replace("one!two!three!", '!', '@', 3) 65 self.assertTrue(replace("one!two!three!", '!', '@', 4) 68 # CAUTION: a replace count of 0 means infinity only to strop, 69 # not to the string .replace() method or to the 70 # string.replace() function. 72 self.assertTrue(replace("one!two!three!", '!', '@', 0 [all...] |
/external/v8/src/ |
string.js | 219 function StringReplace(search, replace) { 222 ["String.prototype.replace"]); 228 %_Log('regexp', 'regexp-replace,%0r,%1S', [search, subject]); 229 if (IS_SPEC_FUNCTION(replace)) { 231 return StringReplaceGlobalRegExpWithFunction(subject, search, replace); 235 replace); 240 TO_STRING_INLINE(replace), 249 IS_STRING(replace) && 250 %StringIndexOf(replace, '$', 0) < 0) { 251 // Searching by traversing a cons string tree and replace with cons o [all...] |
/external/chromium_org/content/public/common/ |
webplugininfo.cc | 75 // Replace any instances of 'r', ',' or '(' with a dot. 78 std::replace(version.begin(), version.end(), 'd', '.'); 79 std::replace(version.begin(), version.end(), 'r', '.'); 80 std::replace(version.begin(), version.end(), ',', '.'); 81 std::replace(version.begin(), version.end(), '(', '.'); 82 std::replace(version.begin(), version.end(), '_', '.');
|
/external/chromium_org/third_party/WebKit/Source/core/editing/ |
DeleteSelectionCommand.h | 37 static PassRefPtr<DeleteSelectionCommand> create(Document& document, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool replace = false, bool expandForSpecialElements = false, bool sanitizeMarkup = true) 39 return adoptRef(new DeleteSelectionCommand(document, smartDelete, mergeBlocksAfterDelete, replace, expandForSpecialElements, sanitizeMarkup)); 41 static PassRefPtr<DeleteSelectionCommand> create(const VisibleSelection& selection, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool replace = false, bool expandForSpecialElements = false, bool sanitizeMarkup = true) 43 return adoptRef(new DeleteSelectionCommand(selection, smartDelete, mergeBlocksAfterDelete, replace, expandForSpecialElements, sanitizeMarkup)); 47 DeleteSelectionCommand(Document&, bool smartDelete, bool mergeBlocksAfterDelete, bool replace, bool expandForSpecialElements, bool santizeMarkup); 48 DeleteSelectionCommand(const VisibleSelection&, bool smartDelete, bool mergeBlocksAfterDelete, bool replace, bool expandForSpecialElements, bool sanitizeMarkup);
|
/external/chromium_org/third_party/icu/source/i18n/ |
strrepl.h | 75 * @param theOutput text that will replace input text when the 76 * replace() method is called. May contain stand-in characters 79 * the replace() method 90 * @param theOutput text that will replace input text when the 91 * replace() method is called. May contain stand-in characters 123 virtual int32_t replace(Replaceable& text,
|
/external/chromium_org/v8/test/mjsunit/ |
string-replace-one-char.js | 28 // Make sure the strings are long enough to trigger the one-char string replace. 32 function test_replace(result, expected, search, replace) { 33 assertEquals(expected, result.replace(search, replace)); 36 // '$' in the replace string. 53 // Zero length replace string.
|
this-in-callbacks.js | 41 // test String.replace 46 assertEquals('id', 'hello'.replace('hello', r)); 47 assertEquals('id', 'hello'.replace(/hello/, r));
|
/external/clang/include/clang/Tooling/ |
RefactoringCallbacks.h | 13 // subtree match on the AST and then replace the corresponding source code 25 // This will replace all integer literals with "42". 47 Replacements Replace; 50 /// \brief Replace the text of the statement bound to \c FromId with the text in 62 /// \brief Replace the text of the statement bound to \c FromId with the text of 74 /// \brief Replace an if-statement bound to \c Id with the outdented text of its
|
/external/icu4c/i18n/ |
strrepl.h | 75 * @param theOutput text that will replace input text when the 76 * replace() method is called. May contain stand-in characters 79 * the replace() method 90 * @param theOutput text that will replace input text when the 91 * replace() method is called. May contain stand-in characters 123 virtual int32_t replace(Replaceable& text,
|
/external/qemu/ |
offset_layout.py | 36 DX = int(value.replace("_", "-")) 38 DY = int(value.replace("_", "-")) 40 PX = int(value.replace("_", "-")) 42 PY = int(value.replace("_", "-")) 44 KX = int(value.replace("_", "-")) 46 KY = int(value.replace("_", "-"))
|
/external/v8/test/mjsunit/ |
string-replace-one-char.js | 28 // Make sure the strings are long enough to trigger the one-char string replace. 32 function test_replace(result, expected, search, replace) { 33 assertEquals(expected, result.replace(search, replace)); 36 // '$' in the replace string. 53 // Zero length replace string.
|
this-in-callbacks.js | 41 // test String.replace 46 assertEquals('id', 'hello'.replace('hello', r)); 47 assertEquals('id', 'hello'.replace(/hello/, r));
|
/packages/apps/Settings/tests/src/com/android/settings/bluetooth/ |
Utf8ByteLengthFilterTest.java | 64 dest.replace(5, 8, source); 80 dest.replace(8, 10, source); 83 dest.replace(0, 1, source); 87 dest.replace(0, 4, source); 97 dest.replace(2, 3, source); 101 dest.replace(3, 4, source);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
Region_OpTest.java | 31 assertEquals(Op.REPLACE, Op.valueOf("REPLACE")); 45 Op.REPLACE};
|
/external/bison/m4/ |
perror.m4 | 16 dnl replace perror if strerror_r was replaced for a content fix. 19 dnl to <errno.h>, or any fix for strerror(0). Replace it. 59 dnl system's strerror_r(). Replace it.
|
/external/chromium/build/ |
apply_locales.py | 15 parser.set_usage(usage.replace('%s', '%prog')) 37 locale = locale.replace('-', '_') 38 results.append(str_template.replace('ZZLOCALE', locale))
|
/external/chromium/chrome/browser/policy/ |
policy_path_parser_mac.mm | 47 result.replace(position, strlen(mac_folder_mapping[i].name), 57 result.replace(position, strlen(kUserNamePolicyVarName), 67 result.replace(position, strlen(kMachineNamePolicyVarName),
|
/external/chromium_org/build/ |
apply_locales.py | 15 parser.set_usage(usage.replace('%s', '%prog')) 37 locale = locale.replace('-', '_') 38 results.append(str_template.replace('ZZLOCALE', locale))
|
/external/chromium_org/remoting/host/setup/ |
oauth_helper_unittest.cc | 11 std::string Replace(const std::string& s, const std::string& old_substr, 65 url = Replace(url, "https:", "http"); 71 url = Replace(url, "google", "goggle");
|
/external/chromium_org/tools/gyp/test/variables/commands/ |
gyptest-commands-ignore-env.py | 23 expect = test.read('commands.gyp.ignore-env.stdout').replace('\r\n', '\n') 39 contents = test.read('commands.gypd').replace('\r', '') 40 expect = test.read('commands.gypd.golden').replace('\r', '')
|
/external/chromium_org/v8/test/webkit/ |
regexp-extended-characters-more-expected.txt | 29 PASS "foo\xa0\xa0\xa0".replace(/\xa0*/, "") is "foo\xa0\xa0\xa0" 30 PASS "foo\xa0\xa0\xa0".replace(/\xa0+/, "") is "foo" 31 PASS "foo\xa0\xa0\xa0".replace(/\xa0*$/, "") is "foo"
|
regexp-extended-characters-more.js | 28 shouldBe('"foo\\xa0\\xa0\\xa0".replace(/\\xa0*/, "")', '"foo\\xa0\\xa0\\xa0"'); 29 shouldBe('"foo\\xa0\\xa0\\xa0".replace(/\\xa0+/, "")', '"foo"'); 30 shouldBe('"foo\\xa0\\xa0\\xa0".replace(/\\xa0*$/, "")', '"foo"');
|
typeof-constant-string.js | 138 return "%d".replace(/%d/, replace_formats); 154 return "%d".replace(/%d/, replace_formats); 170 return "%d".replace(/%d/, replace_formats); 186 return "%d".replace(/%d/, replace_formats); 203 return "%d".replace(/%d/, replace_formats); 219 return "%d".replace(/%d/, replace_formats); 235 return "%d".replace(/%d/, replace_formats); 251 return "%d".replace(/%d/, replace_formats); 267 return "%d".replace(/%d/, replace_formats); 283 return "%d".replace(/%d/, replace_formats) [all...] |
/libcore/luni/src/main/java/java/nio/charset/ |
CodingErrorAction.java | 21 * errors. Currently three actions are defined: {@code IGNORE}, {@code REPLACE} 36 public static final CodingErrorAction REPLACE = new CodingErrorAction( 37 "REPLACE");
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/strings/basic.string/string.modifiers/string_replace/ |
iter_iter_initializer_list.pass.cpp | 12 // basic_string& replace(const_iterator i1, const_iterator i2, initializer_list<charT> il); 24 s.replace(s.cbegin() + 3, s.cbegin() + 6, {'a', 'b', 'c'}); 31 s.replace(s.cbegin() + 3, s.cbegin() + 6, {'a', 'b', 'c'});
|