Home
last modified time | relevance | path

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

12345678910>>...83

/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);
224 str.replace(re,"$$" + 'sch'))
228 assertEquals("axc", "abc".replace(/b/, replace_obj));
229 assertEquals("axc", "abc".replace(/b/g, replace_obj));
232 assertEquals("axc", "abc".replace(search_obj, function() { return "x"; }));
238 assertEquals("abc", "abc".replace(/z/g, replace_obj_side_effects));
252 subject.replace(re, "$" + i));
258 subject.replace(re, "$0" + i));
261 assertEquals("$0", subject.replace(re, "$0"));
262 assertEquals("$00", subject.replace(re, "$00"));
[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/chromium-trace/catapult/third_party/gsutil/third_party/protorpc/experimental/javascript/closure/string/
Dstring.js102 var replacement = String(arguments[i]).replace(/\$/g, '$$$$');
103 str = str.replace(/\%s/, replacement);
119 return str.replace(/[\s\xa0]+/g, ' ').replace(/^\s+|\s+$/g, '');
217 return str.replace(/(\r\n|\r|\n)+/g, ' ');
227 return str.replace(/(\r\n|\r|\n)/g, '\n');
238 return str.replace(/\xa0|\s/g, ' ');
250 return str.replace(/\xa0|[ \t]+/g, ' ');
262 return str.replace(/[\t\r\n ]+/g, ' ').replace(
276 return str.replace(/^[\s\xa0]+|[\s\xa0]+$/g, '');
289 return str.replace(/^[\s\xa0]+/, '');
[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/icu/android_icu4j/src/main/tests/android/icu/dev/util/
DFileUtilities.java41 line = replace(line, replacementList[i], replacementList[i+1]); in appendBufferedReader()
52 public static String replace(String source, String piece, String replacement) { in replace() method in FileUtilities
63 public static String replace(String source, String[][] replacements) { in replace() method in FileUtilities
64 return replace(source, replacements, replacements.length); in replace()
67 public static String replace(String source, String[][] replacements, int count) { in replace() method in FileUtilities
69 source = replace(source, replacements[i][0], replacements[i][1]); in replace()
74 public static String replace(String source, String[][] replacements, boolean reverse) { in replace() method in FileUtilities
75 if (!reverse) return replace(source, replacements); in replace()
77 source = replace(source, replacements[i][1], replacements[i][0]); in replace()
/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/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/selinux/policycoreutils/gui/
Dhtml_util.py107 s = s.replace("&", "&amp;") # Must be done first!
108 s = s.replace("<", "&lt;")
109 s = s.replace(">", "&gt;")
110 s = s.replace("'", "&apos;")
111 s = s.replace('"', "&quot;")
120 s = s.replace("&lt;", "<")
121 s = s.replace("&gt;", ">")
122 s = s.replace("&apos;", "'")
123 s = s.replace("&quot;", '"')
124 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/chromium-trace/catapult/third_party/polymer/components/web-animations-js/src/
Ddimension-handler.js26 string = string.replace(/calc\(/g, '(');
32 string = string.replace(unitRegExp, function(match) {
39 var typeCheck = string.replace(/[-+]?(\d*\.)?\d+/g, 'N')
40 .replace(new RegExp('N' + taggedUnitRegExp, 'g'), 'D')
41 .replace(/\s[+-]\s/g, 'O')
42 .replace(/\s/g, '');
47 typeCheck = typeCheck.replace(reductions[i], '$1');
57 …var result = eval(string.replace(new RegExp('U' + unit, 'g'), '').replace(new RegExp(taggedUnitReg…
/external/opencv3/3rdparty/jinja2/markupsafe/
D_native.py22 .replace('&', '&amp;')
23 .replace('>', '&gt;')
24 .replace('<', '&lt;')
25 .replace("'", '&#39;')
26 .replace('"', '&#34;')
/external/deqp/modules/gles3/scripts/
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(" ", " ")
/external/chromium-trace/catapult/third_party/py_vulcanize/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/chromium-trace/catapult/third_party/polymer/components/web-animations-js/test/blink/testharness/
Dtestharness.js203 val = val.replace("\\", "\\\\");
205 var replace = "\\";
207 case 0: replace += "0"; break;
208 case 1: replace += "x01"; break;
209 case 2: replace += "x02"; break;
210 case 3: replace += "x03"; break;
211 case 4: replace += "x04"; break;
212 case 5: replace += "x05"; break;
213 case 6: replace += "x06"; break;
214 case 7: replace += "x07"; break;
[all …]

12345678910>>...83