/external/v8/benchmarks/ |
D | regexp.js | 128 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/ |
D | t048rewrite.py | 54 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/ |
D | regexp-capture-3.js | 29 "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 …]
|
D | regexp-global.js | 31 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 …]
|
D | string-replace-with-empty.js | 31 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, "");
|
D | string-replace.js | 35 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 …]
|
D | debug-liveedit-newsource.js | 54 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");
|
D | regexp-capture.js | 39 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/ |
D | typeof-constant-string.js | 138 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/ |
D | string.js | 102 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/ |
D | TestTokenRewriteStream.java | 100 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/ |
D | configure.js | 297 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/ |
D | regress-2437.js | 57 "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/ |
D | FileUtilities.java | 41 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/ |
D | postprocessors.py | 55 text = text.replace("<p>%s</p>" % 58 text = text.replace(markdown.preprocessors.HTML_PLACEHOLDER % i, 64 html = html.replace('&', '&') 65 html = html.replace('<', '<') 66 html = html.replace('>', '>') 67 return html.replace('"', '"') 76 text = text.replace(markdown.AMP_SUBSTITUTE, "&")
|
D | html4.py | 87 text = text.replace("&", "&") 89 text = text.replace("<", "<") 91 text = text.replace(">", ">") 101 text = text.replace("&", "&") 103 text = text.replace("<", "<") 105 text = text.replace(">", ">") 107 text = text.replace("\"", """) 109 text = text.replace("\n", " ") 118 text = text.replace("&", "&") 120 text = text.replace(">", ">") [all …]
|
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/util/ |
D | FileUtilities.java | 40 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/ |
D | MessageHelper.java | 160 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/ |
D | html_util.py | 107 s = s.replace("&", "&") # Must be done first! 108 s = s.replace("<", "<") 109 s = s.replace(">", ">") 110 s = s.replace("'", "'") 111 s = s.replace('"', """) 120 s = s.replace("<", "<") 121 s = s.replace(">", ">") 122 s = s.replace("'", "'") 123 s = s.replace(""", '"') 124 s = s.replace("&", "&") # Must be last
|
/external/libxml2/doc/ |
D | index.py | 247 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/ |
D | dimension-handler.js | 26 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.py | 22 .replace('&', '&') 23 .replace('>', '>') 24 .replace('<', '<') 25 .replace("'", ''') 26 .replace('"', '"')
|
/external/deqp/modules/gles3/scripts/ |
D | gen-qualification_order.py | 132 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/ |
D | cssmin.py | 88 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/ |
D | testharness.js | 203 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 …]
|