Home
last modified time | relevance | path

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

12345678910>>...233

/external/antlr/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/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/antlr/runtime/Python3/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")
123 tokens.replace(0, "x") # supercedes insert at 0
[all …]
/external/capstone/suite/
Dtest_mc.py21 a = a.replace(hexnum, str(num))
42 text = text.replace('{ ', '{')
43 text = text.replace(' }', '}')
82 mode = mode.replace(' ', '')
173 hex_code = code.replace('0x', '')
174 hex_code = hex_code.replace(',', '')
188 cs_output2 = cs_output2.replace(' ', '')
192 cs_output2 = cs_output2.replace('$at', '$1')
193 cs_output2 = cs_output2.replace('$v0', '$2')
194 cs_output2 = cs_output2.replace('$v1', '$3')
[all …]
/external/python/cpython3/Lib/test/
Dtest_codecencodings_jp.py16 (b"abc\x81\x00\x82\x84", "replace", "abc\ufffd\x00\uff44"),
17 (b"abc\x81\x00\x82\x84\x88", "replace", "abc\ufffd\x00\uff44\ufffd"),
19 (b"ab\xEBxy", "replace", "ab\uFFFDxy"),
20 (b"ab\xF0\x39xy", "replace", "ab\uFFFD9xy"),
21 (b"ab\xEA\xF0xy", "replace", 'ab\ufffd\ue038y'),
23 (b"\\\x7e", "replace", "\\\x7e"),
24 (b"\x81\x5f\x81\x61\x81\x7c", "replace", "\uff3c\u2225\uff0d"),
30 (b"abc\x80\x80\xc1\xc4", "replace", "abc\ufffd\ufffd\u7956"),
31 (b"abc\x80\x80\xc1\xc4\xc8", "replace", "abc\ufffd\ufffd\u7956\ufffd"),
34 (b"abc\x8f\x83\x83", "replace", "abc\ufffd\ufffd\ufffd"),
[all …]
Dtest_codecencodings_kr.py16 (b"abc\x80\x80\xc1\xc4", "replace", "abc\ufffd\ufffd\uc894"),
17 (b"abc\x80\x80\xc1\xc4\xc8", "replace", "abc\ufffd\ufffd\uc894\ufffd"),
28 (b"abc\x80\x80\xc1\xc4", "replace", 'abc\ufffd\ufffd\uc894'),
29 (b"abc\x80\x80\xc1\xc4\xc8", "replace", "abc\ufffd\ufffd\uc894\ufffd"),
41 (b"a\xa4\xd4\xa4\xb6\xa4", "replace", 'a\ufffd'),
45 (b"\xa4\xd4\xa4\xff\xa4\xd0\xa4\xd4", "replace", '\ufffd\u6e21\ufffd\u3160\ufffd'),
46 (b"\xa4\xd4\xa4\xb6\xa4\xff\xa4\xd4", "replace", '\ufffd\u6e21\ub544\ufffd\ufffd'),
47 (b"\xa4\xd4\xa4\xb6\xa4\xd0\xa4\xff", "replace", '\ufffd\u6e21\ub544\u572d\ufffd'),
48 (b"\xa4\xd4\xff\xa4\xd4\xa4\xb6\xa4\xd0\xa4\xd4", "replace", '\ufffd\ufffd\ufffd\uc4d4'),
59 (b"abc\x80\x80\xc1\xc4", "replace", "abc\ufffd\ufffd\ucd27"),
[all …]
Dstring_tests.py151 r2, rem = divmod(n - len(i.replace(j, self.fixtype(''))),
503 EQ("", "", "replace", "", "")
504 EQ("A", "", "replace", "", "A")
505 EQ("", "", "replace", "A", "")
506 EQ("", "", "replace", "A", "A")
507 EQ("", "", "replace", "", "", 100)
508 EQ("", "", "replace", "", "", sys.maxsize)
511 EQ("A", "A", "replace", "", "")
512 EQ("*A*", "A", "replace", "", "*")
513 EQ("*1A*1", "A", "replace", "", "*1")
[all …]
Dtest_codecencodings_cn.py16 (b"abc\x81\x81\xc1\xc4", "replace", "abc\ufffd\ufffd\u804a"),
17 (b"abc\x81\x81\xc1\xc4\xc8", "replace", "abc\ufffd\ufffd\u804a\ufffd"),
29 (b"abc\x80\x80\xc1\xc4", "replace", "abc\ufffd\ufffd\u804a"),
30 (b"abc\x80\x80\xc1\xc4\xc8", "replace", "abc\ufffd\ufffd\u804a\ufffd"),
43 (b"abc\x80\x80\xc1\xc4", "replace", "abc\ufffd\ufffd\u804a"),
44 (b"abc\x80\x80\xc1\xc4\xc8", "replace", "abc\ufffd\ufffd\u804a\ufffd"),
46 (b"abc\x84\x39\x84\x39\xc1\xc4", "replace", "abc\ufffd9\ufffd9\u804a"),
48 (b"abc\x84\x32\x80\x80def", "replace", 'abc\ufffd2\ufffd\ufffddef'),
50 (b"abc\x86\x30\x81\x30def", "replace", 'abc\ufffd0\ufffd0def'),
54 (b"abc\x81\x39\xff\x39\xc1\xc4", "replace", "abc\ufffd\x39\ufffd\x39\u804a"),
[all …]
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_replace.py1 "Test replace, coverage 78%."
3 from idlelib.replace import ReplaceDialog
56 # Test replace function with all options at default setting.
66 replace = self.dialog.replace_it
75 replace()
82 replace()
88 replace()
96 replace()
104 replace()
107 replace()
[all …]
/external/libxkbcommon/xkbcommon/test/data/symbols/
Dctrl4 replace key <CAPS> { [ Control_L, Control_L ] };
10 replace key <LCTL> { [ Meta_L ] };
16 replace key <CAPS> { [ Control_L ] };
17 replace key <LCTL> { [ Caps_Lock ] };
25 replace key <AC00> { [ Control_L ] };
26 replace key <AA00> { [ Caps_Lock ] };
34 replace key <AA00> { [ Control_L ] };
35 replace key <AC00> { [ Caps_Lock ] };
47 replace key <MENU> { [ Control_R, Control_R ] };
54 replace key <RALT> { type[Group1] = "TWO_LEVEL",
[all …]
/external/freetype/builds/mac/
Dascii2mpw.py7 mpw_line = string.replace(asc_line, "\\xA5", "\245")
8 mpw_line = string.replace(mpw_line, "\\xB6", "\266")
9 mpw_line = string.replace(mpw_line, "\\xC4", "\304")
10 mpw_line = string.replace(mpw_line, "\\xC5", "\305")
11 mpw_line = string.replace(mpw_line, "\\xFF", "\377")
12 mpw_line = string.replace(mpw_line, "\n", "\r")
13 mpw_line = string.replace(mpw_line, "\\n", "\n")
17 asc_line = string.replace(mpw_line, "\n", "\\n")
18 asc_line = string.replace(asc_line, "\r", "\n")
19 asc_line = string.replace(asc_line, "\245", "\\xA5")
[all …]
/external/antlr/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/python/cpython2/Lib/test/
Dtest_codecencodings_jp.py17 ("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 …]
Dstring_tests.py155 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 …]
Dtest_codecencodings_cn.py17 ("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"),
52 ("abc\x81\x39\xff\x39\xc1\xc4", "replace", u"abc\ufffd\u804a"),
53 ("abc\xab\x36\xff\x30def", "replace", u'abc\ufffddef'),
82 (b'ab~cd', 'replace', u'ab\uFFFDd'),
[all …]
/external/python/cpython3/Lib/idlelib/
Dreplace.py1 """Replace dialog for IDLE. Inherits SearchDialogBase for GUI.
3 Defines various replace related functions like replace, replace all,
4 replace+find.
13 def replace(text): function
26 title = "Replace Dialog"
27 icon = "Replace"
34 """Display the replace dialog"""
52 self.replent = self.make_entry("Replace with:", self.replvar)[0]
57 self.make_button("Replace", self.replace_it)
58 self.make_button("Replace+Find", self.default_command, 1)
[all …]
/external/python/cpython2/PC/VS9.0/
Dvs9to8.py16 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/tool/src/test/java/org/antlr/test/
DTestTokenRewriteStream.java102 tokens.replace(0, "x"); in testReplaceIndex0()
118 tokens.replace(2, "x"); in testReplaceLastIndex()
134 tokens.replace(1, "x"); in testReplaceMiddleIndex()
155 tokens.replace(4, 8, "0"); // replace 3 * 0 with 0 in testToStringStartStop()
195 tokens.replace(4, 8, "0"); // replace 3 * 0 with 0 in testToStringStartStop2()
237 tokens.replace(1, "x"); in test2ReplaceMiddleIndex()
238 tokens.replace(1, "y"); in test2ReplaceMiddleIndex()
255 tokens.replace(1, "x"); in test2ReplaceMiddleIndex1InsertBefore()
256 tokens.replace(1, "y"); in test2ReplaceMiddleIndex1InsertBefore()
272 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/python/setuptools/pkg_resources/tests/
Dtest_working_set.py117 # resolved [replace conflicting]
135 # resolved [replace conflicting]
155 # resolved [replace conflicting]
173 # resolved [replace conflicting]
192 # resolved [replace conflicting]
212 # resolved [replace conflicting]
231 # resolved [replace conflicting]
253 # resolved [replace conflicting]
275 # resolved [replace conflicting]
297 # resolved [replace conflicting]
[all …]
/external/pdfium/core/fxcrt/xml/
Dcfx_xmldoc.cpp76 wsValue.Replace(L"&", L"&amp;"); in SaveXMLNode()
77 wsValue.Replace(L"<", L"&lt;"); in SaveXMLNode()
78 wsValue.Replace(L">", L"&gt;"); in SaveXMLNode()
79 wsValue.Replace(L"\'", L"&apos;"); in SaveXMLNode()
80 wsValue.Replace(L"\"", L"&quot;"); in SaveXMLNode()
109 wsValue.Replace(L"&", L"&amp;"); in SaveXMLNode()
110 wsValue.Replace(L"<", L"&lt;"); in SaveXMLNode()
111 wsValue.Replace(L">", L"&gt;"); in SaveXMLNode()
112 wsValue.Replace(L"\'", L"&apos;"); in SaveXMLNode()
113 wsValue.Replace(L"\"", L"&quot;"); in SaveXMLNode()
[all …]
/external/fonttools/Tests/varLib/
Dinterpolate_layout_test.py93 savepath = os.path.join(temp_dir, ttx_filename.replace('.ttx', suffix))
121 finder = lambda s: s.replace(ufo_dir, self.tempdir).replace('.ufo', suffix)
145 finder = lambda s: s.replace(ufo_dir, self.tempdir).replace('.ufo', suffix)
185 finder = lambda s: s.replace(ufo_dir, self.tempdir).replace('.ufo', suffix)
214 finder = lambda s: s.replace(ufo_dir, self.tempdir).replace('.ufo', suffix)
248 finder = lambda s: s.replace(ufo_dir, self.tempdir).replace('.ufo', suffix)
283 finder = lambda s: s.replace(ufo_dir, self.tempdir).replace('.ufo', suffix)
312 finder = lambda s: s.replace(ufo_dir, self.tempdir).replace('.ufo', suffix)
346 finder = lambda s: s.replace(ufo_dir, self.tempdir).replace('.ufo', suffix)
381 finder = lambda s: s.replace(ufo_dir, self.tempdir).replace('.ufo', suffix)
[all …]
/external/v8/src/compiler/
Dsimplified-operator-reducer.cc52 if (m.IsBooleanNot()) return Replace(m.InputAt(0)); in Reduce()
57 if (m.Is(0)) return Replace(jsgraph()->FalseConstant()); in Reduce()
58 if (m.Is(1)) return Replace(jsgraph()->TrueConstant()); in Reduce()
59 if (m.IsChangeTaggedToBit()) return Replace(m.InputAt(0)); in Reduce()
67 if (m.IsChangeBitToTagged()) return Replace(m.InputAt(0)); in Reduce()
73 if (m.IsChangeTaggedToFloat64()) return Replace(m.node()->InputAt(0)); in Reduce()
81 return Replace(m.InputAt(0)); in Reduce()
90 return Replace(m.node()->InputAt(0)); in Reduce()
108 return Replace(m.InputAt(0)); in Reduce()
118 if (m.IsChangeUint32ToTagged()) return Replace(m.InputAt(0)); in Reduce()
[all …]
/external/libcxxabi/cmake/Modules/
DHandleLibcxxabiFlags.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 …]

12345678910>>...233