Searched refs:repl (Results 1 – 6 of 6) sorted by relevance
29 String target, pattern, repl; in testSimpleReplace() local33 repl = "xxx"; in testSimpleReplace()38 assertEquals("foobarxxxarfoofo1barfort", m.replaceFirst(repl)); in testSimpleReplace()39 assertEquals("foobarxxxarfooxxxbarxxxt", m.replaceAll(repl)); in testSimpleReplace()43 String target, pattern, repl, s; in testCaptureReplace() local49 repl = "$2[$1]"; in testCaptureReplace()53 s = m.replaceFirst(repl); in testCaptureReplace()55 s = m.replaceAll(repl); in testCaptureReplace()60 repl = "[$5]$6($3)$4{$1}$2"; in testCaptureReplace()63 s = m.replaceFirst(repl); in testCaptureReplace()[all …]
127 String repl = ""; in append() local129 repl = vars.get(vardef.group(GN_VAR)); in append()134 repl = test?vardef.group(GN_YES):vardef.group(GN_NO); in append()135 if (repl == null) in append()136 repl = ""; in append()138 while (vardef2.reset(repl).find()) { in append()139 repl = vardef2.replaceFirst(vars.get(vardef2.group(1))); in append()143 if (repl == null) { in append()147 vardef.appendReplacement(buf, repl); in append()
368 public boolean isLegalReplacement(byte[] repl) { in isLegalReplacement() argument379 ByteBuffer bb = ByteBuffer.wrap(repl); in isLegalReplacement()
363 * @param repl The byte array to be tested368 public boolean isLegalReplacement(byte[] repl) {379 ByteBuffer bb = ByteBuffer.wrap(repl);
55 public boolean isLegalReplacement(byte[] repl) { throw new RuntimeException("Stub!"); } in isLegalReplacement() argument
74 public boolean isLegalReplacement(byte[] repl) { in isLegalReplacement() argument