Searched refs:repl (Results 1 – 3 of 3) 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 …]
358 public boolean isLegalReplacement(byte[] repl) { in isLegalReplacement() argument369 ByteBuffer bb = ByteBuffer.wrap(repl); in isLegalReplacement()
74 public boolean isLegalReplacement(byte[] repl) { in isLegalReplacement() argument