Home
last modified time | relevance | path

Searched full:replace (Results 1 – 25 of 4395) sorted by relevance

12345678910>>...176

/external/antlr/antlr-3.4/runtime/Ruby/test/functional/token-rewrite/
Dbasic.rb45 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/
Dregexp.js128 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/
Dt048rewrite.py54 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/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/scripts/
Dpublish.xml78 <replace file="${result}/${indexFileName}" token="@date@" value="${TODAY}"/>
79 <replace dir="${result}" value="${TODAY}">
82 </replace>
85 <replace file="${result}/${indexFileName}" token="@build@" value="${buildId}"/>
86 <replace dir="${result}" value="${buildId}">
89 </replace>
132 <replace file="${result}/${indexFileName}" token="@type@" value="Integration"/>
133 <replace dir="${result}" value="Integration">
136 </replace>
140 <replace file="${result}/${indexFileName}" token="@type@" value="Nightly"/>
[all …]
/external/antlr/antlr-3.4/runtime/JavaScript/tests/functional/
Dt048rewrite.html64 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/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestTokenRewriteStream.java100 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/
Dtest_gbb_utility.sh13 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/
Dsimplified-operator-reducer.cc48 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 …]
Dgraph-reducer.h59 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 …]
Dmachine-operator-reducer.cc169 if (m.right().Is(0)) return Replace(m.left().node()); // x ror 0 => x in Reduce()
216 if (m.right().Is(0)) return Replace(m.right().node()); // x * 0 => 0 in Reduce()
217 if (m.right().Is(1)) return Replace(m.left().node()); // x * 1 => x in Reduce()
320 return Replace(m.left().node()); // x - 0 => x in Reduce()
323 return Replace(m.right().node()); in Reduce()
326 return Replace(m.left().node()); in Reduce()
338 return Replace(graph()->NewNode(machine()->Float32RoundUp().op(), in Reduce()
353 return Replace(m.right().node()); in Reduce()
363 return Replace(m.left().node()); // x - 0 => x in Reduce()
366 return Replace(m.right().node()); in Reduce()
[all …]
/external/libcxx/cmake/Modules/
DHandleLibcxxFlags.cmake15 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/
Dllvm.exp58 #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/
DMessageHelper.java160 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/eigen/cmake/
DRegexUtils.cmake2 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/sl4a/InterpreterForAndroid/src/com/googlecode/android_scripting/
DZipExtractorTask.java43 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/clang/test/SemaTemplate/
Ddeduction.cpp38 struct Replace { struct
44 struct Replace<_1, Arg1, Arg2> { argument
49 struct Replace<_2, Arg1, Arg2> { argument
55 struct Replace<const T, Arg1, Arg2> { argument
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/gunit/src/main/antlr3/org/antlr/gunit/
DgUnit.g135 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/skia/infra/bots/
Dwin_toolchain_utils.py21 """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."""
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DTokenRewriteStream.java35 * 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/javassist/src/main/javassist/
DCodeConverter.java323 * @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/compiler-rt/cmake/Modules/
DBuiltinTests.cmake9 string(REPLACE ";" " " extra_flags "${ARGN}")
14 string(REPLACE "<CMAKE_C_COMPILER>"
17 string(REPLACE "<OBJECT>"
21 string(REPLACE "<SOURCE>" "${SIMPLE_C}" test_compile_command
24 string(REPLACE "<FLAGS>" "${CMAKE_C_FLAGS} ${extra_flags}"
27 string(REPLACE "${substitution}" "" test_compile_command
32 string(REPLACE " " ";" test_compile_command "${test_compile_command}")
/external/clang/test/FixIt/
Dfixit-vexing-parse.cpp35 …S s1(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an i… in test()
40 …F2(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an ini… in test()
66 …U u(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an in… in test()
80 …int n1(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an… in test()
85 …F1(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an ini… in test()
88 …double d(); // expected-warning {{function declaration}} expected-note {{replace parentheses with … in test()
93 …Ptr p(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an … in test()
97 …Ptr p(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an … in test()
100 …bool b(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an… in test()
103 …char c(); // expected-warning {{function declaration}} expected-note {{replace parentheses with an… in test()
[all …]
/external/markdown/markdown/
Dpostprocessors.py55 text = text.replace("<p>%s</p>" %
58 text = text.replace(markdown.preprocessors.HTML_PLACEHOLDER % i,
64 html = html.replace('&', '&amp;')
65 html = html.replace('<', '&lt;')
66 html = html.replace('>', '&gt;')
67 return html.replace('"', '&quot;')
76 text = text.replace(markdown.AMP_SUBSTITUTE, "&")
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/
DTokenRewriteStream.cs48 * You can insert stuff, replace, and delete chunks. Note that the
312 public virtual void Replace( int index, object text ) in Replace() method in Antlr.Runtime.TokenRewriteStream
314 Replace( DEFAULT_PROGRAM_NAME, index, index, text ); in Replace()
317 public virtual void Replace( int from, int to, object text ) in Replace() method in Antlr.Runtime.TokenRewriteStream
319 Replace( DEFAULT_PROGRAM_NAME, from, to, text ); in Replace()
322 public virtual void Replace( IToken indexT, object text ) in Replace() method in Antlr.Runtime.TokenRewriteStream
324 Replace( DEFAULT_PROGRAM_NAME, indexT, indexT, text ); in Replace()
327 public virtual void Replace( IToken from, IToken to, object text ) in Replace() method in Antlr.Runtime.TokenRewriteStream
329 Replace( DEFAULT_PROGRAM_NAME, from, to, text ); in Replace()
332 public virtual void Replace( string programName, int from, int to, object text ) in Replace() method in Antlr.Runtime.TokenRewriteStream
[all …]
/external/protobuf/cmake/
DCMakeLists.txt38 string(REGEX REPLACE "${protobuf_AC_INIT_REGEX}" "\\1"
41 string(REGEX REPLACE "${protobuf_AC_INIT_REGEX}" "\\2"
44 string(REGEX REPLACE "${protobuf_AC_INIT_REGEX}" "\\3"
48 string(REGEX REPLACE "${protobuf_VERSION_REGEX}" "\\1"
50 string(REGEX REPLACE "${protobuf_VERSION_REGEX}" "\\2"
52 string(REGEX REPLACE "${protobuf_VERSION_REGEX}" "\\3"
111 string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
123 string(REPLACE "/" "\\" PROTOBUF_SOURCE_WIN32_PATH ${protobuf_SOURCE_DIR})
124 string(REPLACE "/" "\\" PROTOBUF_BINARY_WIN32_PATH ${protobuf_BINARY_DIR})

12345678910>>...176