Home
last modified time | relevance | path

Searched refs:repl (Results 1 – 3 of 3) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DReplaceTest.java29 String target, pattern, repl; in testSimpleReplace() local
33 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() local
49 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 …]
/libcore/ojluni/src/main/java/java/nio/charset/
DCharsetEncoder.java358 public boolean isLegalReplacement(byte[] repl) { in isLegalReplacement() argument
369 ByteBuffer bb = ByteBuffer.wrap(repl); in isLegalReplacement()
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/
DCharsetEncoder.java74 public boolean isLegalReplacement(byte[] repl) { in isLegalReplacement() argument