Home
last modified time | relevance | path

Searched refs:repl (Results 1 – 6 of 6) 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/tools/build/tools/spp/
DSpp.java127 String repl = ""; in append() local
129 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()
/libcore/ojluni/src/main/java/java/nio/charset/
DCharsetEncoder.java368 public boolean isLegalReplacement(byte[] repl) { in isLegalReplacement() argument
379 ByteBuffer bb = ByteBuffer.wrap(repl); in isLegalReplacement()
DCharset-X-Coder.java.template363 * @param repl The byte array to be tested
368 public boolean isLegalReplacement(byte[] repl) {
379 ByteBuffer bb = ByteBuffer.wrap(repl);
/libcore/ojluni/annotations/mmodule/java/nio/charset/
DCharsetEncoder.annotated.java55 public boolean isLegalReplacement(byte[] repl) { throw new RuntimeException("Stub!"); } in isLegalReplacement() argument
/libcore/ojluni/annotations/hiddenapi/java/nio/charset/
DCharsetEncoder.java74 public boolean isLegalReplacement(byte[] repl) { in isLegalReplacement() argument