Home
last modified time | relevance | path

Searched refs:replaceFirst (Results 1 – 19 of 19) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DReplaceTest.java38 assertEquals("foobarxxxarfoofo1barfort", m.replaceFirst(repl)); in testSimpleReplace()
53 s = m.replaceFirst(repl); in testCaptureReplace()
63 s = m.replaceFirst(repl); in testCaptureReplace()
DPattern2Test.java169 assertTrue(m.replaceFirst("-").equals("-fooaabfooabfoob")); in testReplace()
182 assertTrue(m.replaceFirst("$1ite").equals("Bite for byte")); in testReplace()
188 assertTrue(m.replaceFirst("xxxx$1").equals("card #xxxx-5678-1234")); in testReplace()
194 assertTrue(m.replaceFirst("$3$2$1").equals("right left, up down")); in testReplace()
200 assertTrue(m.replaceFirst("<b> $1 </b>").equals( in testReplace()
DMatcherTest.java143 assertEquals("zzzcatzzzdogzzz", mat.replaceFirst("cat")); in testReplaceFirst()
149 matcher.replaceFirst(null); in testReplaceFirst_null_match()
158 matcher.replaceFirst(null); in testReplaceFirst_null_nomatch()
/libcore/ojluni/src/main/java/sun/security/util/
DDebug.java256 target.append(matched.replaceFirst(keyReg, keyStr)); in marshal()
280 target.append(matched.replaceFirst(keyReg, keyStr)); in marshal()
/libcore/luni/src/test/java/libcore/java/util/regex/
DOldAndroidRegexTest.java147 String r = m.replaceFirst("-"); in testReplaceFirst()
154 r = m.replaceFirst("-"); in testReplaceFirst()
DOldMatcherTest.java641 String result = p.matcher("mama").region(2, 4).replaceFirst("mi"); in test33040()
/libcore/luni/src/test/java/libcore/java/lang/
DOldStringTest.java204 results[i], str.replaceFirst(patterns[i], "?")); in test_replaceFirst()
208 str.replaceFirst("[abc*", "?"); in test_replaceFirst()
/libcore/ojluni/src/main/java/java/lang/
DFloat.java293 return s.replaceFirst("p-1022$", "p-126"); in toHexString()
DDouble.java324 signif.replaceFirst("0{1,12}$", "")); in toHexString()
DProcessBuilder.java367 envstring = envstring.replaceFirst("\u0000.*", ""); in environment()
DString.java2268 public String replaceFirst(String regex, String replacement) { in replaceFirst() method in String
2269 return Pattern.compile(regex).matcher(this).replaceFirst(replacement); in replaceFirst()
/libcore/ojluni/src/main/java/java/lang/reflect/
DParameter.java137 sb.append(typename.replaceFirst("\\[\\]$", "...")); in toString()
DExecutable.java156 param = param.replaceFirst("\\[\\]$", "..."); in sharedToGenericString()
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/
DMatcher.annotated.java82 @libcore.util.NonNull public java.lang.String replaceFirst(@libcore.util.NonNull java.lang.String r… in replaceFirst() method in Matcher
/libcore/ojluni/annotations/hiddenapi/java/util/regex/
DMatcher.java135 public java.lang.String replaceFirst(java.lang.String replacement) { in replaceFirst() method in Matcher
/libcore/luni/src/test/java/libcore/xml/
DDomTest.java434 String expected = original.replaceFirst( in testElementSetTextContent()
738 String expected = original.replaceFirst(">.*</description>", "/>"); in testReplaceWholeTextFirstWithNull()
746 String expected = original.replaceFirst(">.*</description>", "/>"); in testReplaceWholeTextMiddleWithNull()
754 String expected = original.replaceFirst(">.*</description>", "/>"); in testReplaceWholeTextLastWithNull()
762 String expected = original.replaceFirst(">.*</description>", "/>"); in testReplaceWholeTextFirstWithEmptyString()
770 String expected = original.replaceFirst(">.*</a:vitaminc>", "/>"); in testReplaceWholeTextOnlyWithEmptyString()
/libcore/ojluni/src/main/java/java/util/regex/
DMatcher.java905 public String replaceFirst(String replacement) { in replaceFirst() method in Matcher
/libcore/ojluni/annotations/hiddenapi/java/lang/
DString.java334 public java.lang.String replaceFirst(java.lang.String regex, java.lang.String replacement) { in replaceFirst() method in String
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DString.annotated.java150 @libcore.util.NonNull public java.lang.String replaceFirst(@libcore.util.NonNull java.lang.String r… in replaceFirst() method in String