Home
last modified time | relevance | path

Searched refs:replaceAll (Results 1 – 25 of 81) sorted by relevance

1234

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DReplaceTest.java39 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()
DPattern2Test.java168 assertTrue(m.replaceAll("-").equals("-foo-foo-foo-")); in testReplace()
183 assertTrue(m.replaceAll("$1ite").equals("Bite for bite")); in testReplace()
189 assertTrue(m.replaceAll("xxxx$1").equals("card #xxxx-xxxx-1234")); in testReplace()
195 assertTrue(m.replaceAll("$3$2$1").equals("right left, down up")); in testReplace()
202 assertTrue(m.replaceAll("<b> $1 </b>").equals( in testReplace()
DMatcher2Test.java226 mat.replaceAll(substitutionString); in testReplacementBackSlash()
/libcore/luni/src/test/java/libcore/java/util/
DWeakHashMapTest.java34 map.replaceAll((k, v) -> k.value); in test_replaceAll()
41 map.replaceAll(new java.util.function.BiFunction<Data, String, String>() { in test_replaceAll()
53 map.replaceAll(null); in test_replaceAll()
63 map.replaceAll((k, v) -> null); in test_replaceAll()
DHashtableTest.java85 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()
DListDefaultMethodTester.java30 l.replaceAll(v -> v * 2); in test_replaceAll()
36 l.replaceAll(null); in test_replaceAll()
DHashMapTest.java232 map.replaceAll((k, v) -> k + v); in test_replaceAll()
239 map.replaceAll((k, v) -> { in test_replaceAll()
247 map.replaceAll(null); in test_replaceAll()
DCollectionsTest.java296 map.replaceAll((k, v) -> 5 * v); in test_checkedNavigableMap_replaceAll()
661 map.replaceAll((k, v) -> 5 * v); in test_synchronizedNavigableMap_replaceAll()
1017 assertThrowsCce(() -> { map.replaceAll((k, v) -> new Object()); }); in check_map_isChecked()
1374 Collections.emptyList().replaceAll(k -> 1); in test_EmptyList_replaceAll()
1377 Collections.emptyList().replaceAll(null); in test_EmptyList_replaceAll()
1433 Collections.unmodifiableList(new ArrayList<>()).replaceAll(k -> 1); in test_unmodifiableList_replaceAll()
1444 Collections.unmodifiableList(l).replaceAll(k -> 1); in test_unmodifiableList_replaceAll()
1471 Collections.singletonList(1).replaceAll(k -> 2); in test_SingletonList_replaceAll()
1487 checkedMap.replaceAll((k, v) -> (Integer)k + (Integer)v); in test_CheckedMap_replaceAll()
DBase64Test.java568 assertEquals(out_56.replaceAll("\r\n", ""), encodeFromAscii(encoder, decoder, in_56)); in testEncoder_lineLength()
569 assertEquals(out_57.replaceAll("\r\n", ""), encodeFromAscii(encoder, decoder, in_57)); in testEncoder_lineLength()
570 assertEquals(out_58.replaceAll("\r\n", ""), encodeFromAscii(encoder, decoder, in_58)); in testEncoder_lineLength()
571 assertEquals(out_59.replaceAll("\r\n", ""), encodeFromAscii(encoder, decoder, in_59)); in testEncoder_lineLength()
572 assertEquals(out_60.replaceAll("\r\n", ""), encodeFromAscii(encoder, decoder, in_60)); in testEncoder_lineLength()
573 assertEquals(out_61.replaceAll("\r\n", ""), encodeFromAscii(encoder, decoder, in_61)); in testEncoder_lineLength()
DLinkedHashMapTest.java341 map.replaceAll((k, v) -> k + v); in test_replaceAll()
348 map.replaceAll((k, v) -> { in test_replaceAll()
356 map.replaceAll(null); in test_replaceAll()
DTreeMapTest.java756 map.replaceAll((k, v) -> k + v); in test_replaceAll()
762 map.replaceAll(null); in test_replaceAll()
767 map.replaceAll((k, v) -> { in test_replaceAll()
/libcore/benchmarks/src/benchmarks/regression/
DStringReplaceAllBenchmark.java61 s.value.replaceAll("fish", "0"); in timeReplaceAllTrivialPatternNonExistent()
67 s.value.replaceAll("jklm", "0"); in timeReplaceTrivialPatternAllRepeated()
73 s.value.replaceAll("qrst", "0"); in timeReplaceAllTrivialPatternSingleOccurence()
/libcore/luni/src/test/java/libcore/java/util/regex/
DOldMatcherTest.java708 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()
DOldAndroidRegexTest.java131 String r = m.replaceAll("-"); in testReplaceAll()
138 r = m.replaceAll("-"); in testReplaceAll()
/libcore/ojluni/src/main/java/sun/util/locale/
DInternalLocaleBuilder.java100 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/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java302 l.replaceAll(v -> v * 2); in test_replaceAll()
309 l.replaceAll(null); in test_replaceAll()
346 l.replaceAll(v -> v * 2); in test_subList_replaceAll()
353 l.replaceAll(null); in test_subList_replaceAll()
365 subList.replaceAll(k -> k + 10); in test_subList_replaceAll()
/libcore/ojluni/annotations/mmodule/java/util/
DLinkedHashMap.annotated.java64 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/
DMapTest.java89 map.replaceAll((k, v) -> {return v.toUpperCase();}); in testReplaceAll()
/libcore/luni/src/test/java/libcore/java/lang/
DOldStringTest.java181 results[i], str.replaceAll(patterns[i], "?")); in test_replaceAll()
185 str.replaceAll("[abc*", "?"); in test_replaceAll()
/libcore/ojluni/src/test/java/time/test/java/util/
DTestFormatter.java215 return expected.replaceAll("GMT(?:\\+00:00)?(?=])|UTC|UT", "Z") in toZoneOffsetStr()
216 .replaceAll("(?:GMT|UTC)([+\\-]?[0-9]{2}:[0-9]{2})", "$1"); in toZoneOffsetStr()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DWeakHashMap.annotated.java69 public void replaceAll(@libcore.util.NonNull java.util.function.BiFunction<? super @libcore.util.Nu… in replaceAll() method in WeakHashMap
DArrayList.annotated.java99 public void replaceAll(@libcore.util.NonNull java.util.function.UnaryOperator<@libcore.util.NullFro… in replaceAll() method in ArrayList
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/
DCopyOnWriteArrayList.java199 public void replaceAll(java.util.function.UnaryOperator<E> operator) { in replaceAll() method in CopyOnWriteArrayList
391 public void replaceAll(java.util.function.UnaryOperator<E> operator) { in replaceAll() method in CopyOnWriteArrayList.COWSubList
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentMap.java287 default void replaceAll(BiFunction<? super K, ? super V, ? extends V> function) { in replaceAll() method
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/
DMatcher.annotated.java80 @libcore.util.NonNull public java.lang.String replaceAll(@libcore.util.NonNull java.lang.String rep… in replaceAll() method in Matcher

1234