Home
last modified time | relevance | path

Searched refs:appendReplacement (Results 1 – 11 of 11) sorted by relevance

/libcore/ojluni/src/test/java/util/regex/
DRegExTest.java253 … assertThrows(NullPointerException.class, () -> m.appendReplacement((StringBuffer)null, null)); in nullArgumentTest()
254 … assertThrows(NullPointerException.class, () -> m.appendReplacement((StringBuilder)null, null)); in nullArgumentTest()
1555 matcher.appendReplacement(sb, r); in appendTest()
1580 matcher.appendReplacement(sb, r); in appendTest()
2487 assertThrows(IllegalStateException.class, () -> m.appendReplacement(result, "blech")); in stringBufferSubstituteLiteral()
2490 m.appendReplacement(result, "blech"); in stringBufferSubstituteLiteral()
2505 assertThrows(IllegalStateException.class, () -> m.appendReplacement(result, "$1")); in stringBufferSubtituteWithGroups()
2507 m.appendReplacement(result, "$1"); in stringBufferSubtituteWithGroups()
2521 assertThrows(IllegalStateException.class, () -> m.appendReplacement(result, "$1w$2w$3")); in stringBufferThreeSubstitution()
2523 m.appendReplacement(result, "$1w$2w$3"); in stringBufferThreeSubstitution()
[all …]
/libcore/luni/src/test/java/libcore/java/util/regex/
DMatcherTest.java97 m.appendReplacement(new StringBuilder(), "123$g"); in testAppendReplacement()
109 m.appendReplacement(sb, replacement); in assertAppendReplacement()
DOldMatcherTest.java36 m.appendReplacement(sb, Integer.valueOf(i * 10 + i).toString()); in testAppendReplacement()
47 m.appendReplacement((StringBuffer) null, "dog"); in testAppendReplacement()
55 m.appendReplacement(sb, null); in testAppendReplacement()
81 m.appendReplacement(sb, "dog"); in testAppendTail()
90 m.appendReplacement(sb, "dog"); in testAppendTail()
100 m.appendReplacement(sb, "dog"); in testAppendTail()
616 m.appendReplacement(sb, m.group(1) + m.group(2)); in testConcurrentMatcherAccess()
/libcore/ojluni/src/main/java/java/util/regex/
DMatcher.java849 public Matcher appendReplacement(StringBuffer sb, String replacement) { in appendReplacement() method in Matcher
1031 public Matcher appendReplacement(StringBuilder sb, String replacement) { in appendReplacement() method in Matcher
1242 appendReplacement(sb, replacement); in replaceAll()
1320 appendReplacement(sb, replacement); in replaceAll()
1468 appendReplacement(sb, replacement); in replaceFirst()
1541 appendReplacement(sb, replacement); in replaceFirst()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DMatcher2Test.java236 matcher.appendReplacement(new StringBuffer(), "replacement\\"); in testAppendReplacement_replacementEndsWithBackslash()
246 matcher.appendReplacement(new StringBuffer(), "replacement$"); in testAppendReplacement_replacementEndsWithDollar()
DMatcherTest.java84 m.appendReplacement(sb, Integer.valueOf(i * 10 + i).toString()); in testAppendReplacement()
96 m.appendReplacement(sb, rep); in testAppendReplacementRef()
130 m.appendReplacement(sb, "\\\\"); in testAppendSlashes()
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/
DMatcher.annotated.java76 @libcore.util.NonNull public java.util.regex.Matcher appendReplacement(@libcore.util.NonNull java.l… in appendReplacement() method in Matcher
78 @libcore.util.NonNull public java.util.regex.Matcher appendReplacement(@libcore.util.NonNull java.l… in appendReplacement() method in Matcher
/libcore/ojluni/src/main/java/sun/security/util/
DDebug.java294 matcher.appendReplacement(left, ""); in marshal()
318 matcher.appendReplacement(left, ""); in marshal()
/libcore/ojluni/src/tools/build/tools/spp/
DSpp.java147 vardef.appendReplacement(buf, repl); in append()
/libcore/ojluni/annotations/hiddenapi/java/util/regex/
DMatcher.java118 public java.util.regex.Matcher appendReplacement( in appendReplacement() method in Matcher
/libcore/api/
Dcurrent.txt18089 …method @NonNull public java.util.regex.Matcher appendReplacement(@NonNull StringBuffer, @NonNull S…
18090 …method @NonNull public java.util.regex.Matcher appendReplacement(@NonNull StringBuilder, @NonNull …