Home
last modified time | relevance | path

Searched refs:replace (Results 1 – 25 of 1343) sorted by relevance

12345678910>>...54

/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/v8/test/mjsunit/
Dregexp-capture-3.js29 "abcd".replace(re, function() { });
45 "abcdabcd".replace(/b/g, function() { });
58 "abcd".replace(re, function() { });
76 "abcdabcd".replace(/(b)(c)/g, function() { });
95 "abcdabcd".replace(/(b)(c)/g, function() { });
109 OverrideCase(function() { return input.replace(re, "x"); });
110 OverrideCase(function() { return input.replace(re_g, "x"); });
111 OverrideCase(function() { return input.replace(re, ""); });
112 OverrideCase(function() { return input.replace(re_g, ""); });
135 no_last_match(function() { "foo".replace("f", ""); });
[all …]
Dregexp-global.js31 str = str.replace(/(\w)?X/g, function(match, capture) {
40 str = str.replace(/\b/g, function(match, capture) {
47 str = str.replace(/(?=(\w+))\b/g, function(match, capture) {
54 str = str.replace(/(not?)|(do)|(try)/gi,
67 str = str.replace(/(FOUR|TWO) LEGS (GOOD|BAD)/g,
82 str = str.replace(/(\w)?\u1234/g,
92 str = str.replace(/\b/g, function(match, capture) {
99 str = str.replace(/(?=(\w+))\b/g, function(match, capture) {
106 str = str.replace(/(not?)|(d\u26aa)|(try)/gi,
119 str = str.replace(/(FOUR|TWO) \u817f (GOOD|BAD)/g,
[all …]
Dstring-replace-with-empty.js31 assertEquals("0123", "aa0bb1cc2dd3".replace(/[a-z]/g, ""));
32 assertEquals("0123", "\u1234a0bb1cc2dd3".replace(/[\u1234a-z]/g, ""));
40 assertEquals(expected, cons.replace(/[a-z]/g, ""));
45 assertEquals(expected, cons.replace(/[\u1234a-z]/g, ""));
52 assertEquals(expected, cons.replace(/[a-z]/g, ""));
58 assertEquals(expected, cons.replace(/[\u1234a-z]/g, ""));
64 "foo".replace(/foo/g, "");
Dstring-replace.js35 assertEquals(result, subject.replace(pattern, replacement), name);
200 + m.replace(/./g,"$&$&") + "-"
201 + m.replace(/./g,function() { return RegExp['$&']; })
214 str.replace(re,"$$" + 'sch'))
218 assertEquals("axc", "abc".replace(/b/, replace_obj));
219 assertEquals("axc", "abc".replace(/b/g, replace_obj));
222 assertEquals("axc", "abc".replace(search_obj, function() { return "x"; }));
228 assertEquals("abc", "abc".replace(/z/g, replace_obj_side_effects));
242 subject.replace(re, "$" + i));
248 subject.replace(re, "$0" + i));
[all …]
Ddebug-liveedit-newsource.js54 var new_source = script.source.replace("Cat", "Cap' + 'yb' + 'ara");
55 var new_source = new_source.replace("25", "26");
56 var new_source = new_source.replace("Help", "Hello");
57 var new_source = new_source.replace("17", "18");
64 var new_source = new_source.replace("// Array", "Array");
Dregexp-capture.js39 assertEquals("z", "y".replace(/(x)?\1y/, "z"));
40 assertEquals("", "y".replace(/(x)?y/, "$1"));
41 assertEquals("undefined", "y".replace(/(x)?\1y/,
45 assertEquals("undefined", "y".replace(/(x)?y/,
49 assertEquals("undefined", "y".replace(/(x)?y/,
/external/v8/test/webkit/
Dtypeof-constant-string.js138 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 …]
/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/libxml2/win32/
Dconfigure.js297 of.WriteLine(s.replace(/\@VERSION\@/,
300 of.WriteLine(s.replace(/\@LIBXML_VERSION_NUMBER\@/,
303 of.WriteLine(s.replace(/\@LIBXML_VERSION_EXTRA\@/, verCvs));
305 of.WriteLine(s.replace(/\@WITH_TRIO\@/, withTrio? "1" : "0"));
307 of.WriteLine(s.replace(/\@WITH_THREADS\@/, withThreads == "no"? "0" : "1"));
309 of.WriteLine(s.replace(/\@WITH_THREAD_ALLOC\@/, "0"));
311 of.WriteLine(s.replace(/\@WITH_FTP\@/, withFtp? "1" : "0"));
313 of.WriteLine(s.replace(/\@WITH_HTTP\@/, withHttp? "1" : "0"));
315 of.WriteLine(s.replace(/\@WITH_HTML\@/, withHtml? "1" : "0"));
317 of.WriteLine(s.replace(/\@WITH_C14N\@/, withC14n? "1" : "0"));
[all …]
/external/v8/test/mjsunit/regress/
Dregress-2437.js57 "zzzz".replace(r, "");
63 "zzzz".replace(r, "");
69 "zzzz".replace(r, "a");
75 "zzzz".replace(r, "a");
81 "zzzz".replace(r, function() { return ""; });
88 "0123abcd".replace(r, "x");
92 "01234567".replace(r, "x");
106 "0123abcd".replace(r, "x");
110 "01234567".replace(r, "x");
/external/v8/src/
Dstring.js194 function StringReplace(search, replace) { argument
222 if (!IS_SPEC_FUNCTION(replace)) {
223 replace = TO_STRING_INLINE(replace);
232 if (replace.length == 0) {
236 return ExpandReplacement(replace, subject, lastMatchInfo,
245 subject, search, replace, lastMatchInfo);
253 subject, search, replace, lastMatchInfo);
265 return StringReplaceGlobalRegExpWithFunction(subject, search, replace);
268 return StringReplaceNonGlobalRegExpWithFunction(subject, search, replace);
275 IS_STRING(replace) &&
[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, "&")
Dhtml4.py87 text = text.replace("&", "&amp;")
89 text = text.replace("<", "&lt;")
91 text = text.replace(">", "&gt;")
101 text = text.replace("&", "&amp;")
103 text = text.replace("<", "&lt;")
105 text = text.replace(">", "&gt;")
107 text = text.replace("\"", "&quot;")
109 text = text.replace("\n", "&#10;")
118 text = text.replace("&", "&amp;")
120 text = text.replace(">", "&gt;")
[all …]
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/util/
DFileUtilities.java40 line = replace(line, replacementList[i], replacementList[i+1]); in appendBufferedReader()
51 public static String replace(String source, String piece, String replacement) { in replace() method in FileUtilities
62 public static String replace(String source, String[][] replacements) { in replace() method in FileUtilities
63 return replace(source, replacements, replacements.length); in replace()
66 public static String replace(String source, String[][] replacements, int count) { in replace() method in FileUtilities
68 source = replace(source, replacements[i][0], replacements[i][1]); in replace()
73 public static String replace(String source, String[][] replacements, boolean reverse) { in replace() method in FileUtilities
74 if (!reverse) return replace(source, replacements); in replace()
76 source = replace(source, replacements[i][1], replacements[i][0]); in replace()
/external/selinux/policycoreutils/gui/
Dhtml_util.py101 s = s.replace("&", "&amp;") # Must be done first!
102 s = s.replace("<", "&lt;")
103 s = s.replace(">", "&gt;")
104 s = s.replace("'", "&apos;")
105 s = s.replace('"', "&quot;")
113 s = s.replace("&lt;", "<")
114 s = s.replace("&gt;", ">")
115 s = s.replace("&apos;", "'")
116 s = s.replace("&quot;", '"')
117 s = s.replace("&amp;", "&") # Must be last
/external/libxml2/doc/
Dindex.py247 desc = string.replace(desc, "'", " ")
338 desc = string.replace(desc, "'", " ")
395 title = string.replace(title, "'", " ")
474 str = string.replace(str, ".", " ")
475 str = string.replace(str, "!", " ")
476 str = string.replace(str, "?", " ")
477 str = string.replace(str, ",", " ")
478 str = string.replace(str, "'", " ")
479 str = string.replace(str, '"', " ")
480 str = string.replace(str, ";", " ")
[all …]
/external/deqp/modules/gles3/scripts/
Dgen-qualification_order.py110 variables = variables.replace(" ", " ")
111 self.variableVtx = variables.replace("anon_centroid", "out")
112 self.variableFrg = variables.replace("anon_centroid", "in")
113 self.variableVtx = self.variableVtx.replace("centroid", "centroid out")
114 self.variableFrg = self.variableFrg.replace("centroid", "centroid in")
116 …self.variableFrg = self.variableFrg.replace("invariant", "") # input variable cannot be invariant.…
149 self.param0 = self.param0.replace(" ", " ")
150 self.param1 = self.param1.replace(" ", " ")
151 self.param2 = self.param2.replace(" ", " ")
/external/chromium-trace/trace-viewer/tracing/third_party/tvcm/third_party/rcssmin/bench/
Dcssmin.py88 match.group().replace(":", "___PSEUDOCLASSCOLON___"),
106 css = css.replace('___PSEUDOCLASSCOLON___', ':')
134 css = css.replace(match.group(), hexcolor)
148 css = css.replace(":0 0 0 0;", ":0;")
149 css = css.replace(":0 0 0;", ":0;")
150 css = css.replace(":0 0;", ":0;")
153 css = css.replace("background-position:0;", "background-position:0 0;")
173 css = css.replace(match.group(), match.group(1) + match.group(2) + '#' + first)
213 css = css.replace('"\\"}\\""', "___PSEUDOCLASSBMH___")
223 css = css.replace("___PSEUDOCLASSBMH___", '"\\"}\\""')
/external/markdown/markdown/extensions/
Dcodehilite.py105 txt = txt.replace('&', '&amp;')
106 txt = txt.replace('<', '&lt;')
107 txt = txt.replace('>', '&gt;')
108 txt = txt.replace('"', '&quot;')
114 txt = txt.replace('\t', ' '*TAB_LENGTH)
115 txt = txt.replace(" "*4, "&nbsp; &nbsp; ")
116 txt = txt.replace(" "*3, "&nbsp; &nbsp;")
117 txt = txt.replace(" "*2, "&nbsp; ")
/external/v8/test/webkit/fast/js/
Dfunction-toString-parentheses.js33 serializedString = serializedString.replace(/[ \t\r\n]+/g, " ");
34 serializedString = serializedString.replace("function () { return ", "");
35 serializedString = serializedString.replace("; }", "");
43 serializedString = serializedString.replace(/[ \t\r\n]+/g, " ");
44 serializedString = serializedString.replace("function () { ", "");
45 serializedString = serializedString.replace("; }", "");
60 ? expression.replace(/\(/g, '').replace(/\)/g, '')
/external/deqp/framework/delibs/coding_guidelines/
Dprettify.js5replace(/([^=<>:&])/g,"\\$1")}a+="|^)\\s*$";return new RegExp(a)})(),P=/&/g,Q=/</g,R=/>/g,Z=/\"/g;…
6 …de(e)+b.substring(c+1)}}return b.replace(aa,"<").replace(ba,">").replace(ca,"'").replace(da,'"').r…
/external/slf4j/slf4j-site/src/site/pages/js/
Dprettify.js5replace(/([^=<>:&])/g,"\\$1")}a+="|^)\\s*$";return new RegExp(a)})(),P=/&/g,Q=/</g,R=/>/g,Z=/\"/g;…
6 …de(e)+b.substring(c+1)}}return b.replace(aa,"<").replace(ba,">").replace(ca,"'").replace(da,'"').r…
/external/icu/icu4j/main/classes/translit/src/com/ibm/icu/text/
DStringReplacer.java111 public int replace(Replaceable text, in replace() method in StringReplacer
124 text.replace(start, limit, output); in replace()
159 text.replace(tempStart, tempStart, "\uFFFF"); in replace()
196 text.replace(destLimit, destLimit, buf.toString()); in replace()
202 int len = r.replace(text, destLimit, destLimit, cursor); in replace()
209 text.replace(destLimit, destLimit, buf.toString()); in replace()
221 text.replace(tempStart + outLen, destLimit + tempExtra + outLen, ""); in replace()
224 text.replace(start + outLen, limit + outLen, ""); in replace()

12345678910>>...54