Home
last modified time | relevance | path

Searched refs:replace (Results 1 - 25 of 1492) sorted by relevance

12345678910>>...60

/third_party/rust/crates/regex/tests/
H A Dreplace.rs1 macro_rules! replace( macros
3 $search:expr, $replace:expr, $result:expr) => (
7 assert_eq!(re.$which(text!($search), $replace), text!($result));
12 replace!(first, replace, r"[0-9]", "age: 26", t!("Z"), "age: Z6");
13 replace!(plus, replace, r"[0-9]+", "age: 26", t!("Z"), "age: Z");
14 replace!(all, replace_all, r"[0-9]", "age: 26", t!("Z"), "age: ZZ");
15 replace!(
17 replace,
[all...]
/third_party/jerryscript/tests/jerry/es2015/
H A Dsymbol-replace.js15 var replace = RegExp.prototype[Symbol.replace]; variable
18 replace.call (0, "string", "replace");
25 replace.call (new RegExp(), {
29 }, "replace");
36 replace.call (new RegExp(), "string", {
38 throw "abrupt replace"
43 assert (e === "abrupt replace");
47 replace
[all...]
H A Dregexp-routines.js101 assert ("str?fgh".replace(/(?:)/gu, "x") === 'xsxtxrx?xfxgxhx');
102 assert ("str?fgh".replace(/(?:)/g, "x") === 'xsxtxrx\ud803x\udca1xfxgxhx');
108 assert ("str?fgh".replace(r, "x") === 'xsxtxrx?xfxgxhx');
110 assert ("str?fgh".replace(r, "x") === 'xsxtxrx\ud803x\udca1xfxgxhx');
119 assert ("asd".replace(r, "x") === "xaxsxdx");
123 assert ("asd".replace(r, "x") === "xaxsxdx");
128 assert ("asd".replace(r, "x") === "asxd");
132 assert ("asd".replace(r, "x") === "asd");
138 assert ("asd".replace(r, "x") === "asxd");
142 assert ("asd".replace(
[all...]
/third_party/jerryscript/tests/jerry/
H A Dstring-prototype-replace.js15 assert ("abcabc".replace("bc", ":") === "a:abc");
16 assert ("hello".replace("", ":") === ":hello");
17 assert ("hello".replace("h", "") === "ello");
18 assert ("".replace("", "h") === "h");
20 assert ("xabcxabcx".replace (/abc/g, "[$&][$`][$']") === "x[abc][x][xabcx]x[abc][xabcx][x]x");
21 assert ("abc".replace (/a(b)c|d()/, "[$1][$01][$2][$02][$99][$123][$012]") === "[b][b][][][$99][b23][b2]");
22 assert ("abc".replace("abc", "$x$$5$0$00$") === "$x$5$0$00$");
24 assert ("#x#".replace("x", "$1") === "#$1#");
25 assert ("#x#".replace(/(x)/, "$1$2") === "#x$2#");
26 assert ("#x#".replace(/(
[all...]
/third_party/node/deps/npm/node_modules/spdx-correct/
H A Dindex.js94 return argument.replace(/\./g, '')
98 return argument.replace(/\s+/g, '')
102 return argument.replace(/\s+/g, '-')
106 return argument.replace('v', '-')
110 return argument.replace(/,?\s*(\d)/, '-$1')
114 return argument.replace(/,?\s*(\d)/, '-$1.0')
119 .replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, '-$2')
124 .replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/, '-$2.0')
132 return argument.replace('/', '-')
137 .replace(/\
[all...]
/third_party/skia/third_party/externals/freetype/builds/mac/
H A 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_lin
[all...]
/third_party/typescript/scripts/
H A DohTestCasesGenerationScript.js134 const ohFourslashCasesName = caseName.replace(/NodeModules/g, "OHModules").replace(/PackageJson/g, "OHPackageJson5");
138 let ohfileContent = fileContent.replace(/node_modules/g, "oh_modules").replace(/package.json/g, "oh-package.json5");
140 ohfileContent = ohfileContent.replace("fourslash/modules", "fourslash/oh/modules")
158 ohCompilerCasesName = caseName.replace(/NodeModules/g, "OHModules").replace(/PackageJson/g, "OHPackageJson5");
161 ohCompilerCasesName = caseName.replace(".ts", "_isohpm.ts");
167 ohfileContent = "// @packageManagerType: ohpm\r\n" + fileContent.replace(/node_modules/g, "oh_modules").replace(/packag
[all...]
/third_party/python/Lib/idlelib/idle_test/
H A 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...]
/third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/mutators/
H A Darray_mutator.js42 function annotate(message, replace) {
43 if (replace) message += ' (replaced)';
47 // Add or replace elements at a random index.
48 function randomSplice(replace, ...args) {
49 // Choose an index that's small enough to replace all desired items.
50 const index = random.randInt(0, elements.length - replace);
51 elements.splice(index, replace, ...args);
54 function duplicateElement(replace) {
59 annotate('Duplicate an element', replace);
60 randomSplice(replace, babelType
[all...]
/third_party/mbedtls/tests/scripts/
H A Dtranslate_ciphers.py99 s_cipher = s_cipher.replace("_", "-")
102 s_cipher = s_cipher.replace("-WITH-", ":+")
103 s_cipher = s_cipher.replace("-EDE", "")
131 s_cipher = s_cipher.replace("_", "-")
134 s_cipher = s_cipher.replace("-WITH", "")
137 s_cipher = s_cipher.replace("AES-", "AES")
138 s_cipher = s_cipher.replace("CAMELLIA-", "CAMELLIA")
139 s_cipher = s_cipher.replace("ARIA-", "ARIA")
146 s_cipher = s_cipher.replace("-EDE", "")
147 s_cipher = s_cipher.replace("
[all...]
/third_party/typescript/tests/baselines/reference/
H A DregExpWithSlashInCharClass.js2 var foo1 = "a/".replace(/.[/]/, "");
3 var foo2 = "a//".replace(/.[//]/g, "");
4 var foo3 = "a/".replace(/.[/no sleep /till/]/, "bugfix");
8 var foo1 = "a/".replace(/.[/]/, "");
9 var foo2 = "a//".replace(/.[//]/g, "");
10 var foo3 = "a/".replace(/.[/no sleep /till/]/, "bugfix");
/third_party/icu/tools/cldr/cldr-to-icu/src/test/java/org/unicode/icu/tool/cldrtoicu/
H A DFilteredDataTest.java31 CldrValue replace = in testSimple()
36 CldrData src = CldrDataSupplier.forValues(ImmutableList.of(keep, remove, replace)); in testSimple()
41 } else if (value.equals(replace)) { in testSimple()
55 assertThat(filtered.get(replace.getPath())).isEqualTo(replacement); in testSimple()
60 CldrValue replace = in testBadReplacementPath()
65 CldrData src = CldrDataSupplier.forValues(ImmutableList.of(replace)); in testBadReplacementPath()
74 assertThat(e).hasMessageThat().contains(replace.toString()); in testBadReplacementPath()
80 CldrValue replace = in testBadReplacementAttributes()
85 CldrData src = CldrDataSupplier.forValues(ImmutableList.of(replace)); in testBadReplacementAttributes()
94 assertThat(e).hasMessageThat().contains(replace in testBadReplacementAttributes()
[all...]
/third_party/skia/resources/sksl/es2_conformance/
H A Dimport_conformance_tests.py195 testCode = testCode.replace("precision highp ", "// precision highp ");
196 testCode = testCode.replace("precision mediump ", "// precision mediump ");
197 testCode = testCode.replace("precision lowp ", "// precision lowp ");
200 testCode = testCode.replace("#version", "// #version");
203 testCode = testCode.replace("void main", "bool execute_test");
207 testCode = testCode.replace("${POSITION_FRAG_COLOR}", "PositionFragColor");
209 testCode = testCode.replace("${DECLARATIONS}",
255 testSpecialization = testSpecialization.replace("${DECLARATIONS}", declarations)
256 testSpecialization = testSpecialization.replace("${SETUP}", '')
257 testSpecialization = testSpecialization.replace("
[all...]
/third_party/node/tools/gyp/pylib/gyp/
H A Dxml_fix.py18 data = data.replace("&", "&amp;").replace("<", "&lt;")
19 data = data.replace('"', "&quot;").replace(">", "&gt;")
21 data = data.replace("\r", "&#xD;").replace("\n", "&#xA;").replace("\t", "&#x9;")
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/
H A Dxml_fix.py18 data = data.replace("&", "&amp;").replace("<", "&lt;")
19 data = data.replace('"', "&quot;").replace(">", "&gt;")
21 data = data.replace("\r", "&#xD;").replace("\n", "&#xA;").replace("\t", "&#x9;")
/third_party/node/deps/v8/third_party/markupsafe/
H A D_native.py23 .replace('&', '&amp;')
24 .replace('>', '&gt;')
25 .replace('<', '&lt;')
26 .replace("'", '&#39;')
27 .replace('"', '&#34;')
/third_party/node/tools/inspector_protocol/markupsafe/
H A D_native.py23 .replace('&', '&amp;')
24 .replace('>', '&gt;')
25 .replace('<', '&lt;')
26 .replace("'", '&#39;')
27 .replace('"', '&#34;')
/third_party/skia/third_party/externals/markupsafe/
H A D_native.py23 .replace('&', '&amp;')
24 .replace('>', '&gt;')
25 .replace('<', '&lt;')
26 .replace("'", '&#39;')
27 .replace('"', '&#34;')
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/
H A DTextureFunction_test.cpp63 variantConst.replace(offsetReplacePos, 8, "ivec2(0, 0)"); in TEST_F()
66 shaderValid.replace(sampleReplacePos, 8, variantConst); in TEST_F()
75 variantNonConst.replace(offsetReplacePos, 8, "ivec2(samplePos.xy)"); in TEST_F()
78 shaderNonConst.replace(sampleReplacePos, 8, variantNonConst); in TEST_F()
87 variantOutOfBounds.replace(offsetReplacePos, 8, "ivec2(1000, 1000)"); in TEST_F()
90 shaderOutOfBounds.replace(sampleReplacePos, 8, variantOutOfBounds); in TEST_F()
/third_party/vk-gl-cts/modules/gles3/scripts/
H A Dgen-qualification_order.py132 variables = variables.replace(" ", " ")
133 self.variableVtx = variables.replace("anon_centroid", "out")
134 self.variableFrg = variables.replace("anon_centroid", "in")
135 self.variableVtx = self.variableVtx.replace("centroid", "centroid out")
136 self.variableFrg = self.variableFrg.replace("centroid", "centroid in")
138 self.variableFrg = self.variableFrg.replace("invariant", "") # input variable cannot be invariant...
171 self.param0 = self.param0.replace(" ", " ")
172 self.param1 = self.param1.replace(" ", " ")
173 self.param2 = self.param2.replace(" ", " ")
/third_party/libwebsockets/lib/core-net/
H A Dlws-dsh.c39 const void *src2, size_t size2, lws_dll2_t *replace);
151 const void *src2, size_t size2, lws_dll2_t *replace) in _lws_dsh_alloc_tail()
198 if (replace) { in _lws_dsh_alloc_tail()
199 s.best->list.prev = replace->prev; in _lws_dsh_alloc_tail()
200 s.best->list.next = replace->next; in _lws_dsh_alloc_tail()
201 s.best->list.owner = replace->owner; in _lws_dsh_alloc_tail()
202 if (replace->prev) in _lws_dsh_alloc_tail()
203 replace->prev->next = &s.best->list; in _lws_dsh_alloc_tail()
204 if (replace->next) in _lws_dsh_alloc_tail()
205 replace in _lws_dsh_alloc_tail()
150 _lws_dsh_alloc_tail(lws_dsh_t *dsh, int kind, const void *src1, size_t size1, const void *src2, size_t size2, lws_dll2_t *replace) _lws_dsh_alloc_tail() argument
[all...]
/third_party/markupsafe/
H A D_native.py22 .replace("&", "&amp;")
23 .replace(">", "&gt;")
24 .replace("<", "&lt;")
25 .replace("'", "&#39;")
26 .replace('"', "&#34;")
/third_party/python/Lib/ctypes/test/
H A Dtest_pep3118.py17 format = format.replace(OTHER_ENDIAN, THIS_ENDIAN)
188 (Point, "T{<l:x:<l:y:}".replace('l', s_long), (), Point),
191 (Point2, "T{<l:x:<l:y:}".replace('l', s_long), (), Point2),
196 (StructWithArrays, "T{(2,3)<l:x:(4)T{<l:x:<l:y:}:y:}".replace('l', s_long), (), StructWithArrays),
197 (StructWithArrays * 3, "T{(2,3)<l:x:(4)T{<l:x:<l:y:}:y:}".replace('l', s_long), (3,), StructWithArrays),
205 (Complete, "T{<l:a:}".replace('l', s_long), (), Complete),
228 (BEPoint, "T{>l:x:>l:y:}".replace('l', s_long), (), BEPoint),
229 (LEPoint, "T{<l:x:<l:y:}".replace('l', s_long), (), LEPoint),
230 (POINTER(BEPoint), "&T{>l:x:>l:y:}".replace('l', s_long), (), POINTER(BEPoint)),
231 (POINTER(LEPoint), "&T{<l:x:<l:y:}".replace('
[all...]
/third_party/node/src/
H A Djson_utils.cc21 std::string replace; in EscapeJsonChars() local
24 replace = "\\\\"; in EscapeJsonChars()
26 replace = "\\\""; in EscapeJsonChars()
29 if (num < 0x20) replace = control_symbols[num]; in EscapeJsonChars()
31 if (!replace.empty()) { in EscapeJsonChars()
36 ret += replace; in EscapeJsonChars()
/third_party/glslang/
H A Dbuild_info.py204 .replace("@major@", software_version["major"]) \
205 .replace("@minor@", software_version["minor"]) \
206 .replace("@patch@", software_version["patch"]) \
207 .replace("@flavor@", software_version["flavor"]) \
208 .replace("@-flavor@", software_version["-flavor"]) \
209 .replace("@date@", software_version["date"]) \
210 .replace("@commit@", commit)

Completed in 10 milliseconds

12345678910>>...60