/external/antlr/antlr-3.4/runtime/Ruby/test/functional/token-rewrite/ |
D | basic.rb | 45 example 'replace index 0' do 47 stream.replace( 0, 'x' ) 51 example 'replace last index' do 53 stream.replace 2, 'x' 57 example 'replace last index' do 59 stream.replace( 2, 'x' ) 63 example 'replace middle index' do 65 stream.replace 1, 'x' 69 example 'replace middle index' do 71 stream.replace 1, 'x' [all …]
|
/external/v8/benchmarks/ |
D | regexp.js | 128 s2[i].replace(re2, ''); 146 s8[i].replace(re5, ''); 149 s9[i].replace(re6, ''); 160 s14[i].replace(re6, ''); 166 s16[i].replace(re10, ''); 167 s16[i].replace(/\[/g, ''); 168 s17[i].replace(re11, ''); 171 s18[i].replace(re2, ''); 177 s20[i].replace(re12, ''); 181 s21[i].replace(/([a-zA-Z]|\s)+/, ''); [all …]
|
/external/antlr/antlr-3.4/runtime/Python/tests/ |
D | t048rewrite.py | 54 tokens.replace(0, "x") 63 tokens.replace(2, "x") 72 tokens.replace(1, "x") 81 tokens.replace(1, "x") 82 tokens.replace(1, "y") 92 tokens.replace(1, "x") 93 tokens.replace(1, "y") 102 tokens.replace(1, "x") 112 tokens.replace(0, 2, "x") 127 tokens.replace(0, "x") # supercedes insert at 0 [all …]
|
/external/antlr/antlr-3.4/runtime/JavaScript/tests/functional/ |
D | t048rewrite.html | 64 tokens.replace(0,"x"); 73 tokens.replace(2,"x"); 82 tokens.replace(1,"x"); 91 tokens.replace(1,"x"); 92 tokens.replace(1,"y"); 101 tokens.replace(1,"x"); 111 tokens.replace(0,"x"); 121 tokens.replace(0,"x"); 133 tokens.replace(0,"x"); 154 tokens.replace(0,"z"); [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_codecencodings_jp.py | 17 ("abc\x81\x00\x82\x84", "replace", u"abc\ufffd\uff44"), 18 ("abc\x81\x00\x82\x84\x88", "replace", u"abc\ufffd\uff44\ufffd"), 21 ("\\\x7e", "replace", u"\\\x7e"), 22 ("\x81\x5f\x81\x61\x81\x7c", "replace", u"\uff3c\u2225\uff0d"), 33 ("abc\x80\x80\xc1\xc4", "replace", u"abc\ufffd\u7956"), 34 ("abc\x80\x80\xc1\xc4\xc8", "replace", u"abc\ufffd\u7956\ufffd"), 36 ("abc\x8f\x83\x83", "replace", u"abc\ufffd"), 48 ("abc\x80\x80\xc1\xc4", "replace", u"abc\ufffd\u7956"), 49 ("abc\x80\x80\xc1\xc4\xc8", "replace", u"abc\ufffd\u7956\ufffd"), 51 ("abc\x8f\x83\x83", "replace", u"abc\ufffd"), [all …]
|
D | string_tests.py | 155 r2, rem = divmod(n - len(i.replace(j, '')), len(j)) 624 EQ("", "", "replace", "", "") 625 EQ("A", "", "replace", "", "A") 626 EQ("", "", "replace", "A", "") 627 EQ("", "", "replace", "A", "A") 628 EQ("", "", "replace", "", "", 100) 629 EQ("", "", "replace", "", "", sys.maxint) 632 EQ("A", "A", "replace", "", "") 633 EQ("*A*", "A", "replace", "", "*") 634 EQ("*1A*1", "A", "replace", "", "*1") [all …]
|
D | test_codecencodings_kr.py | 17 ("abc\x80\x80\xc1\xc4", "replace", u"abc\ufffd\uc894"), 18 ("abc\x80\x80\xc1\xc4\xc8", "replace", u"abc\ufffd\uc894\ufffd"), 29 ("abc\x80\x80\xc1\xc4", "replace", u"abc\ufffd\uc894"), 30 ("abc\x80\x80\xc1\xc4\xc8", "replace", u"abc\ufffd\uc894\ufffd"), 42 ("a\xa4\xd4\xa4\xb6\xa4", "replace", u"a\ufffd"), 46 ("\xa4\xd4\xa4\xff\xa4\xd0\xa4\xd4", "replace", u"\ufffd"), 47 ("\xa4\xd4\xa4\xb6\xa4\xff\xa4\xd4", "replace", u"\ufffd"), 48 ("\xa4\xd4\xa4\xb6\xa4\xd0\xa4\xff", "replace", u"\ufffd"), 59 ("abc\x80\x80\xc1\xc4", "replace", u"abc\ufffd\ucd27"), 60 ("abc\x80\x80\xc1\xc4\xc8", "replace", u"abc\ufffd\ucd27\ufffd"),
|
D | test_codecencodings_cn.py | 17 ("abc\x81\x81\xc1\xc4", "replace", u"abc\ufffd\u804a"), 18 ("abc\x81\x81\xc1\xc4\xc8", "replace", u"abc\ufffd\u804a\ufffd"), 30 ("abc\x80\x80\xc1\xc4", "replace", u"abc\ufffd\u804a"), 31 ("abc\x80\x80\xc1\xc4\xc8", "replace", u"abc\ufffd\u804a\ufffd"), 44 ("abc\x80\x80\xc1\xc4", "replace", u"abc\ufffd\u804a"), 45 ("abc\x80\x80\xc1\xc4\xc8", "replace", u"abc\ufffd\u804a\ufffd"), 47 ("abc\x84\x39\x84\x39\xc1\xc4", "replace", u"abc\ufffd\u804a"), 76 (b'ab~cd', 'replace', u'ab\uFFFDd'), 77 (b'ab\xffcd', 'replace', u'ab\uFFFDcd'), 78 (b'ab~{\x81\x81\x41\x44~}cd', 'replace', u'ab\uFFFD\uFFFD\u804Acd'),
|
D | test_strop.py | 59 replace = strop.replace 60 self.assertTrue(replace("one!two!three!", '!', '@', 1) 62 self.assertTrue(replace("one!two!three!", '!', '@', 2) 64 self.assertTrue(replace("one!two!three!", '!', '@', 3) 66 self.assertTrue(replace("one!two!three!", '!', '@', 4) 69 # CAUTION: a replace count of 0 means infinity only to strop, 70 # not to the string .replace() method or to the 71 # string.replace() function. 73 self.assertTrue(replace("one!two!three!", '!', '@', 0) 75 self.assertTrue(replace("one!two!three!", '!', '@') [all …]
|
/external/python/cpython2/PC/VS9.0/ |
D | vs9to8.py | 16 lines = lines.replace('Version="9,00"', 'Version="8.00"') 17 lines = lines.replace('Version="9.00"', 'Version="8.00"') 18 lines = lines.replace('Format Version 10.00', 'Format Version 9.00') 19 lines = lines.replace('Visual Studio 2008', 'Visual Studio 2005') 21 lines = lines.replace('wininst-9.0', 'wininst-8.0') 22 lines = lines.replace('..\\', '..\\..\\') 23 lines = lines.replace('..\\..\\..\\..\\', '..\\..\\..\\') 26 # Replace them here. 27 lines = lines.replace('$(sqlite3Dir)', '..\\..\\..\\sqlite-3.6.21') 28 … lines = lines.replace('$(bsddbDir)\\..\\..', '..\\..\\..\\db-4.7.25.0\\build_windows\\..') [all …]
|
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
D | TestTokenRewriteStream.java | 100 tokens.replace(0, "x"); in testReplaceIndex0() 116 tokens.replace(2, "x"); in testReplaceLastIndex() 132 tokens.replace(1, "x"); in testReplaceMiddleIndex() 153 tokens.replace(4, 8, "0"); // replace 3 * 0 with 0 in testToStringStartStop() 193 tokens.replace(4, 8, "0"); // replace 3 * 0 with 0 in testToStringStartStop2() 235 tokens.replace(1, "x"); in test2ReplaceMiddleIndex() 236 tokens.replace(1, "y"); in test2ReplaceMiddleIndex() 253 tokens.replace(1, "x"); in test2ReplaceMiddleIndex1InsertBefore() 254 tokens.replace(1, "y"); in test2ReplaceMiddleIndex1InsertBefore() 270 tokens.replace(1, "x"); in testReplaceThenDeleteMiddleIndex() [all …]
|
/external/vboot_reference/tests/futility/ |
D | test_gbb_utility.sh | 13 REPLACE="${BUILD_RUN}/tests/futility/binary_editor" 112 cat ${TMP}.blob | ${REPLACE} 0x4 2 > ${TMP}.blob.bad 116 cat ${TMP}.blob | ${REPLACE} 0x8 0x81 > ${TMP}.blob.bad 120 cat ${TMP}.blob | ${REPLACE} 0x8 0x7f > ${TMP}.blob.bad 124 cat ${TMP}.blob | ${REPLACE} 0x8f 0x41 > ${TMP}.blob.bad 128 cat ${TMP}.blob | ${REPLACE} 0x14 0x00 > ${TMP}.blob.ok 131 cat ${TMP}.blob | ${REPLACE} 0x14 0x01 | ${REPLACE} 0x80 0x00 > ${TMP}.blob.ok 135 cat ${TMP}.blob | ${REPLACE} 0x8f 0x41 > ${TMP}.blob.bad 139 cat ${TMP}.blob | ${REPLACE} 0x10 0x7f > ${TMP}.blob.bad 141 cat ${TMP}.blob | ${REPLACE} 0x10 0x00 > ${TMP}.blob.bad [all …]
|
/external/v8/src/compiler/ |
D | simplified-operator-reducer.cc | 48 if (m.IsBooleanNot()) return Replace(m.InputAt(0)); in Reduce() 53 if (m.Is(0)) return Replace(jsgraph()->FalseConstant()); in Reduce() 54 if (m.Is(1)) return Replace(jsgraph()->TrueConstant()); in Reduce() 55 if (m.IsChangeTaggedToBit()) return Replace(m.InputAt(0)); in Reduce() 61 if (m.IsChangeBitToTagged()) return Replace(m.InputAt(0)); in Reduce() 67 if (m.IsChangeTaggedToFloat64()) return Replace(m.node()->InputAt(0)); in Reduce() 75 return Replace(m.InputAt(0)); in Reduce() 84 return Replace(m.node()->InputAt(0)); in Reduce() 102 return Replace(m.InputAt(0)); in Reduce() 112 if (m.IsChangeUint32ToTagged()) return Replace(m.InputAt(0)); in Reduce() [all …]
|
D | graph-reducer.h | 59 static Reduction Replace(Node* node) { return Reduction(node); } in Replace() function 73 // Replace {node} with {replacement}. 74 virtual void Replace(Node* node, Node* replacement) = 0; 77 // Replace value uses of {node} with {value} and effect uses of {node} with 88 static Reduction Replace(Node* node) { return Reducer::Replace(node); } in Replace() function 91 void Replace(Node* node, Node* replacement) { in Replace() function 93 editor_->Replace(node, replacement); in Replace() 107 // TODO(turbofan): replace the effect input to {node} with {graph->start()}. 151 // Replace {node} with {replacement}. in NON_EXPORTED_BASE() 152 void Replace(Node* node, Node* replacement) final; in NON_EXPORTED_BASE() [all …]
|
/external/libcxx/cmake/Modules/ |
D | HandleLibcxxFlags.cmake | 15 string(REGEX REPLACE "^/" "" strippedStr "${strippedStr}") 16 string(REGEX REPLACE "^-+" "" strippedStr "${strippedStr}") 17 string(REGEX REPLACE "-+$" "" strippedStr "${strippedStr}") 18 string(REPLACE "-" "_" strippedStr "${strippedStr}") 19 string(REPLACE "=" "_EQ_" strippedStr "${strippedStr}") 20 string(REPLACE "+" "X" strippedStr "${strippedStr}") 29 string(REPLACE "${var}" "" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}") 30 string(REPLACE "${var}" "" CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL}") 31 string(REPLACE "${var}" "" CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE}") 32 string(REPLACE "${var}" "" CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}") [all …]
|
/external/swiftshader/third_party/LLVM/test/lib/ |
D | llvm.exp | 58 #replace %% with _#MARKER#_ to make the replacement of %% more predictable 60 #replace %llvmgcc_only with actual path to llvmgcc 62 #replace %llvmgcc with actual path to llvmgcc 64 #replace %llvmgxx with actual path to llvmg++ 66 #replace %compile_cxx with C++ compilation command 68 #replace %compile_c with C compilation command 70 #replace %link with C++ link command 72 #replace %shlibext with shared library extension 74 #replace %ocamlopt with ocaml compiler command 76 #replace %llvmdsymutil with dsymutil command [all …]
|
/external/testng/src/main/java/org/testng/remote/strprotocol/ |
D | MessageHelper.java | 160 return message.replace('\n', LINE_SEP_DELIMITER_1).replace('\r', LINE_SEP_DELIMITER_2); in replaceNewLine() 168 return replace( in replaceUnicodeCharactersWithAscii() 169 replace( in replaceUnicodeCharactersWithAscii() 170 replace( in replaceUnicodeCharactersWithAscii() 171 replace(message, "\u0004", "\\u0004"), in replaceUnicodeCharactersWithAscii() 182 return replace( in replaceAsciiCharactersWithUnicode() 183 replace( in replaceAsciiCharactersWithUnicode() 184 replace( in replaceAsciiCharactersWithUnicode() 185 replace(message, "\\u0004", "\u0004"), in replaceAsciiCharactersWithUnicode() 196 return message.replace(LINE_SEP_DELIMITER_1, '\n').replace(LINE_SEP_DELIMITER_2, '\r'); in replaceNewLineReplacer() [all …]
|
/external/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/ |
D | ZipExtractorTask.java | 43 private static enum Replace { enum in ZipExtractorTask 177 Replace answer = showDialog(entry.getName()); in unzip() 217 private Replace showDialog(final String name) { in showDialog() 218 final FutureResult<Replace> mResult = new FutureResult<Replace>(); in showDialog() 225 builder.setMessage(String.format("Do you want to replace script \"%s\" ?", name)); in showDialog() 230 Replace result = Replace.SKIPALL; in showDialog() 233 result = Replace.YES; in showDialog() 236 result = Replace.NO; in showDialog() 239 result = Replace.YESTOALL; in showDialog() 247 builder.setPositiveButton("Replace", buttonListener); in showDialog() [all …]
|
/external/eigen/cmake/ |
D | RegexUtils.cmake | 2 STRING(REGEX REPLACE "\\\\" "\\\\\\\\" FILETEST2 "${_str_in}") 3 STRING(REGEX REPLACE "([.$+*?|-])" "\\\\\\1" FILETEST2 "${FILETEST2}") 4 STRING(REGEX REPLACE "\\^" "\\\\^" FILETEST2 "${FILETEST2}") 5 STRING(REGEX REPLACE "\\(" "\\\\(" FILETEST2 "${FILETEST2}") 6 STRING(REGEX REPLACE "\\)" "\\\\)" FILETEST2 "${FILETEST2}") 7 STRING(REGEX REPLACE "\\[" "\\\\[" FILETEST2 "${FILETEST2}") 8 STRING(REGEX REPLACE "\\]" "\\\\]" FILETEST2 "${FILETEST2}")
|
/external/python/cpython2/Lib/idlelib/ |
D | ReplaceDialog.py | 8 def replace(text): function 19 title = "Replace Dialog" 20 icon = "Replace" 43 self.replent = self.make_entry("Replace with:", self.replvar)[0] 48 self.make_button("Replace", self.replace_it) 49 self.make_button("Replace+Find", self.default_command, 1) 50 self.make_button("Replace All", self.replace_all) 61 if self.do_replace(): # Only find next match if replace succeeded. 67 in the replace field, if needed. """ 72 self.engine.report_error(repl, 'Invalid Replace Expression') [all …]
|
/external/clang/test/SemaTemplate/ |
D | deduction.cpp | 38 struct Replace { struct 44 struct Replace<_1, Arg1, Arg2> { argument 49 struct Replace<_2, Arg1, Arg2> { struct 55 struct Replace<const T, Arg1, Arg2> { struct 56 typedef typename Replace<T, Arg1, Arg2>::type const type; argument 61 struct Replace<TT<T1>, Arg1, Arg2> { struct 62 typedef TT<typename Replace<T1, Arg1, Arg2>::type> type; argument 67 struct Replace<TT<T1, T2>, Arg1, Arg2> { struct 68 typedef TT<typename Replace<T1, Arg1, Arg2>::type, 69 typename Replace<T2, Arg1, Arg2>::type> type; argument [all …]
|
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/ |
D | TokenRewriteStream.java | 35 * You can insert stuff, replace, and delete chunks. Note that the 247 public void replace(int index, Object text) { in replace() method in TokenRewriteStream 248 replace(DEFAULT_PROGRAM_NAME, index, index, text); in replace() 251 public void replace(int from, int to, Object text) { in replace() method in TokenRewriteStream 252 replace(DEFAULT_PROGRAM_NAME, from, to, text); in replace() 255 public void replace(Token indexT, Object text) { in replace() method in TokenRewriteStream 256 replace(DEFAULT_PROGRAM_NAME, indexT, indexT, text); in replace() 259 public void replace(Token from, Token to, Object text) { in replace() method in TokenRewriteStream 260 replace(DEFAULT_PROGRAM_NAME, from, to, text); in replace() 263 public void replace(String programName, int from, int to, Object text) { in replace() method in TokenRewriteStream [all …]
|
/external/antlr/antlr-3.4/gunit/src/main/antlr3/org/antlr/gunit/ |
D | gUnit.g | 135 testInput = $STRING.text.replace("\\n", "\n").replace("\\r", "\r").replace("\\t", "\t") 136 ….replace("\\b", "\b").replace("\\f", "\f").replace("\\\"", "\"").replace("\\'", "\'").replace("\\\… 162 $STRING.setText($STRING.text.replace("\\n", "\n").replace("\\r", "\r").replace("\\t", "\t") 163 ….replace("\\b", "\b").replace("\\f", "\f").replace("\\\"", "\"").replace("\\'", "\'").replace("\\\…
|
/external/javassist/src/main/javassist/ |
D | CodeConverter.java | 323 * @param names contains the names of the methods to replace 547 * <code>(Ljava/lang/Object;I)B</code> to replace reading from a byte[]. 553 * <code>(Ljava/lang/Object;IB)V</code> to replace writing to a byte[]. 559 * <code>(Ljava/lang/Object;I)C</code> to replace reading from a char[]. 565 * <code>(Ljava/lang/Object;IC)V</code> to replace writing to a byte[]. 571 * <code>(Ljava/lang/Object;I)D</code> to replace reading from a double[]. 577 * <code>(Ljava/lang/Object;ID)V</code> to replace writing to a double[]. 583 * <code>(Ljava/lang/Object;I)F</code> to replace reading from a float[]. 589 * <code>(Ljava/lang/Object;IF)V</code> to replace writing to a float[]. 595 * <code>(Ljava/lang/Object;I)I</code> to replace reading from a int[]. [all …]
|
/external/skia/infra/bots/ |
D | win_toolchain_utils.py | 21 """Replace the given prefix with the given string.""" 23 return val.replace(before, after, 1) 28 """Replace occurrences of one string with another within the data.""" 36 raise Exception('Cannot replace variable: %s' % val) 40 """Replace occurrences of one string with another within the file.""" 52 """Replace absolute paths in win_toolchain.json with placeholders.""" 57 """Replace placeholders in win_toolchain.json with absolute paths."""
|