/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | ReplaceTest.java | 39 assertEquals("foobarxxxarfooxxxbarxxxt", m.replaceAll(repl)); in testSimpleReplace() 55 s = m.replaceAll(repl); in testCaptureReplace() 68 s = m.replaceAll(repl); in testCaptureReplace() 81 s = target.replaceAll(pattern, repl); in testEscapeReplace() 84 s = target.replaceAll(pattern, repl); in testEscapeReplace() 87 s = target.replaceAll(pattern, repl); in testEscapeReplace()
|
/libcore/ojluni/src/test/java/lang/StackWalker/ |
D | VerifyStackTrace.java | 248 return produced.replaceAll(":[1-9][0-9]*\\)", ":00)") in prepare() 249 .replaceAll("/0x[0-9a-f]+\\.run", "/xxxxxxxx.run") in prepare() 250 .replaceAll("/0x[0-9a-f]+\\.invoke", "/xxxxxxxx.invoke") in prepare() 252 .replaceAll("DirectMethodHandle\\$Holder", "LambdaForm\\$DMH") in prepare() 253 .replaceAll("Invokers\\$Holder", "LambdaForm\\$MH") in prepare() 254 .replaceAll("MH\\.invoke", "MH/xxxxxxxx.invoke") in prepare() 257 .replaceAll("xx\\.invoke([A-Za-z]*)_[A-Z_]+", "xx.invoke$1") in prepare() 258 .replaceAll("\\$[0-9]+", "\\$??") in prepare() 260 .replaceAll("\\$ExternalSyntheticLambda[0-9]+", in prepare()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StringReplaceAllBenchmark.java | 61 s.value.replaceAll("fish", "0"); in timeReplaceAllTrivialPatternNonExistent() 67 s.value.replaceAll("jklm", "0"); in timeReplaceTrivialPatternAllRepeated() 73 s.value.replaceAll("qrst", "0"); in timeReplaceAllTrivialPatternSingleOccurence()
|
/libcore/ojluni/src/test/java/net/UnixDomainSocketAddress/ |
D | LengthTest.java | 55 {new String(new char[100]).replaceAll("\0", "x")}, in strings() 56 {new String(new char[namelen]).replaceAll("\0", "x")}, in strings() 57 {new String(new char[namelen-1]).replaceAll("\0", "x")}, in strings()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | HashtableTest.java | 85 ht.replaceAll((k, v) -> k + v); in test_replaceAll() 92 ht.replaceAll(new java.util.function.BiFunction<String, String, String>() { in test_replaceAll() 103 ht.replaceAll(null); in test_replaceAll() 108 ht.replaceAll((k, v) -> null); in test_replaceAll()
|
D | ListDefaultMethodTester.java | 30 l.replaceAll(v -> v * 2); in test_replaceAll() 36 l.replaceAll(null); in test_replaceAll()
|
D | WeakHashMapTest.java | 39 map.replaceAll((k, v) -> k.value); in test_replaceAll() 46 map.replaceAll(new java.util.function.BiFunction<Data, String, String>() { in test_replaceAll() 58 map.replaceAll(null); in test_replaceAll() 68 map.replaceAll((k, v) -> null); in test_replaceAll()
|
D | HashMapTest.java | 232 map.replaceAll((k, v) -> k + v); in test_replaceAll() 239 map.replaceAll((k, v) -> { in test_replaceAll() 247 map.replaceAll(null); in test_replaceAll()
|
D | CollectionsTest.java | 298 map.replaceAll((k, v) -> 5 * v); in test_checkedNavigableMap_replaceAll() 663 map.replaceAll((k, v) -> 5 * v); in test_synchronizedNavigableMap_replaceAll() 1019 assertThrowsCce(() -> { map.replaceAll((k, v) -> new Object()); }); in check_map_isChecked() 1376 Collections.emptyList().replaceAll(k -> 1); in test_EmptyList_replaceAll() 1379 Collections.emptyList().replaceAll(null); in test_EmptyList_replaceAll() 1435 Collections.unmodifiableList(new ArrayList<>()).replaceAll(k -> 1); in test_unmodifiableList_replaceAll() 1446 Collections.unmodifiableList(l).replaceAll(k -> 1); in test_unmodifiableList_replaceAll() 1473 Collections.singletonList(1).replaceAll(k -> 2); in test_SingletonList_replaceAll() 1489 checkedMap.replaceAll((k, v) -> (Integer)k + (Integer)v); in test_CheckedMap_replaceAll()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | CheckedListReplaceAll.java | 44 wrapped.replaceAll(evil); in main() 55 wrapped.replaceAll((UnaryOperator)null); in main()
|
D | ReplaceAll.java | 52 if (!Collections.replaceAll(lst, new Integer(j), "*")) in main() 59 if (Collections.replaceAll(lst, "love", "hate")) in main()
|
D | CheckedMapReplaceAll.java | 48 wrapped.replaceAll(evil); in main()
|
/libcore/ojluni/src/test/java/lang/String/ |
D | Lines.java | 89 String replace = string.replaceAll("\n", "\\n").replaceAll("\r", "\\r"); in testString()
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
D | OldMatcherTest.java | 708 assertEquals("a0123zxx", "0123zxx".replaceAll("(?<numbers>[0-9]+)", "a${numbers}")); in testNamedGroupReplace() 712 "0123zxx".replaceAll("(?<numbers>[0-9]+)", "a${numbers"); in testNamedGroupReplace() 718 "0123zxx".replaceAll("(?<numbers>[0-9]+)", "a${other}"); in testNamedGroupReplace() 724 "0123zxx".replaceAll("(?<numbers>[0-9]+)", "a${1}"); in testNamedGroupReplace() 730 "0123zxx".replaceAll("(?<numbers>[0-9]+)", "a${numbers1}"); in testNamedGroupReplace() 738 assertEquals("_a_b_", pattern.matcher("abc").replaceAll("_$1_$2_")); in testOptionalCapturingGroupReplace() 739 assertEquals("_a__", pattern.matcher("ac").replaceAll("_$1_$2_")); in testOptionalCapturingGroupReplace() 743 assertEquals("_a_b_", pattern.matcher("abc").replaceAll("_$1_${name1}_")); in testOptionalCapturingGroupReplace() 744 assertEquals("_a__", pattern.matcher("ac").replaceAll("_$1_${name1}_")); in testOptionalCapturingGroupReplace()
|
D | OldAndroidRegexTest.java | 131 String r = m.replaceAll("-"); in testReplaceAll() 138 r = m.replaceAll("-"); in testReplaceAll()
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
D | InternalLocaleBuilder.java | 100 String var = variant.replaceAll(LanguageTag.SEP, BaseLocale.SEP); in setVariant() 146 String tp = type.replaceAll(BaseLocale.SEP, LanguageTag.SEP); in setUnicodeLocaleKeyword() 193 String val = value.replaceAll(BaseLocale.SEP, LanguageTag.SEP); in setExtension() 230 subtags = subtags.replaceAll(BaseLocale.SEP, LanguageTag.SEP); in setExtensions() 423 variant = variant.replaceAll(LanguageTag.SEP, BaseLocale.SEP); in setLocale() 520 sb.append(privuse.substring(privVarStart).replaceAll(LanguageTag.SEP, in getBaseLocale()
|
/libcore/ojluni/src/test/java/util/regex/ |
D | PatternStreamTest.java | 171 String expected = pattern.matcher(input).replaceAll("R"); in testReplaceAll() 172 String actual = pattern.matcher(input).replaceAll(r -> "R"); in testReplaceAll() 182 pattern.matcher(input).replaceAll(r -> "R" + actualMatches.incrementAndGet()); in testReplaceAll() 278 m.replaceAll(mr -> { m.reset(); return "Y"; }); in testFailfastReplace()
|
D | RegExTest.java | 176 assertEquals(expected, Pattern.compile(p).matcher(s).replaceAll(r)); in checkReplaceAll() 249 assertThrows(NullPointerException.class, () -> m.replaceAll((String) null)); in nullArgumentTest() 250 … assertThrows(NullPointerException.class, () -> m.replaceAll((Function<MatchResult, String>)null)); in nullArgumentTest() 789 String result = matcher.replaceAll(replaceTest); in literalReplacementTest() 794 result = matcher.replaceAll(literalReplacement); in literalReplacementTest() 800 result = matcher.replaceAll(literalReplacement); in literalReplacementTest() 807 result = matcher.replaceAll(replaceTest); in literalReplacementTest() 812 result = matcher.replaceAll(literalReplacement); in literalReplacementTest() 818 result = matcher.replaceAll(literalReplacement); in literalReplacementTest() 823 assertThrows(IllegalArgumentException.class, () -> "\uac00".replaceAll("\uac00", "$")); in literalReplacementTest() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | CopyOnWriteArrayListTest.java | 311 l.replaceAll(v -> v * 2); in test_replaceAll() 318 l.replaceAll(null); in test_replaceAll() 355 l.replaceAll(v -> v * 2); in test_subList_replaceAll() 362 l.replaceAll(null); in test_subList_replaceAll() 374 subList.replaceAll(k -> k + 10); in test_subList_replaceAll()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/ |
D | Matcher.annotated.java | 84 @libcore.util.NonNull public java.lang.String replaceAll(@libcore.util.NonNull java.lang.String rep… in replaceAll() method in Matcher 86 @libcore.util.NonNull public java.lang.String replaceAll(@libcore.util.NonNull java.util.function.F… in replaceAll() method in Matcher
|
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/ |
D | ClassFileUtil.java | 56 String entryName = useSlash ? className : className.replaceAll("\\.", "/"); in getEntryFromClassName()
|
/libcore/ojluni/annotations/mmodule/java/util/ |
D | LinkedHashMap.annotated.java | 64 public void replaceAll(java.util.function.BiFunction<? super K,? super V,? extends V> function) { t… in replaceAll() method in LinkedHashMap
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/ |
D | MapTest.java | 89 map.replaceAll((k, v) -> {return v.toUpperCase();}); in testReplaceAll()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldStringTest.java | 181 results[i], str.replaceAll(patterns[i], "?")); in test_replaceAll() 185 str.replaceAll("[abc*", "?"); in test_replaceAll()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | WeakHashMap.annotated.java | 69 public void replaceAll(@libcore.util.NonNull java.util.function.BiFunction<? super @libcore.util.Nu… in replaceAll() method in WeakHashMap
|