Home
last modified time | relevance | path

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

/external/mockito/src/org/mockito/internal/util/
DRemoveFirstLine.java14 return text.replaceFirst(".*?\n", ""); in of()
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestCompositeGrammars.java256 …String expectedError = "error(161): "+tmpdir.toString().replaceFirst("\\-[0-9]+","")+"/M.g:2:8: co… in testCombinedImportsCombined()
257 …cted errors: "+equeue, expectedError, equeue.errors.get(0).toString().replaceFirst("\\-[0-9]+","")… in testCombinedImportsCombined()
667 …"error(161): "+tmpdir.toString().replaceFirst("\\-[0-9]+","")+"/M.g:2:8: tree grammar M cannot imp… in testInvalidImportMechanism()
668 assertEquals(expectedError, equeue.errors.get(0).toString().replaceFirst("\\-[0-9]+","")); in testInvalidImportMechanism()
740 …"warning(105): "+tmpdir.toString().replaceFirst("\\-[0-9]+","")+File.separator+"M.g:3:5: no lexer … in testWarningForUndefinedToken()
741 assertEquals(expectedError, equeue.warnings.get(0).toString().replaceFirst("\\-[0-9]+","")); in testWarningForUndefinedToken()
/external/vogar/src/vogar/
DClassFileIndex.java165 .replaceFirst("\\.$", "")
166 .replaceFirst("\\.class$", "");
DOptionParser.java288 String name = arg.replaceFirst("^--no-", "--"); in parseLongOption()
/external/icu/icu4c/source/test/intltest/
Dregextst.cpp1364 dest = matcher->replaceFirst("yz", status); in API_Replace()
1377 dest = matcher->replaceFirst("yz", status); in API_Replace()
1390 dest = matcher->replaceFirst("yz", status); in API_Replace()
1402 dest = matcher->replaceFirst("", status); in API_Replace()
1415 dest = matcher->replaceFirst("xyz", status); in API_Replace()
1432 dest = matcher2->replaceFirst("$1$1", status); in API_Replace()
1436 dest = matcher2->replaceFirst(UNICODE_STRING_SIMPLE("The value of \\$1 is $1."), status); in API_Replace()
1440 dest = matcher2->replaceFirst("$ by itself, no group number $$$", status); in API_Replace()
1446 dest = matcher2->replaceFirst(replacement, status); in API_Replace()
1450 …REGEX_ASSERT_FAIL(matcher2->replaceFirst("bad capture group number $5...",status), U_INDEX_OUTOFBO… in API_Replace()
[all …]
Dssearch.cpp1292 params = m.replaceFirst("", status); in getIntParam()
1425 p = m.replaceFirst("", status); in monkeyTest()
Drbbitst.cpp3588 params = m.replaceFirst("", status); in getIntParam()
4010 p = m.replaceFirst("", status); in TestMonkey()
4017 p = u.replaceFirst("", status); in TestMonkey()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/
DStringExtensions.cs108 public static string replaceFirst( this string str, string regex, string replacement ) in replaceFirst() method in Antlr.Runtime.JavaExtensions.StringExtensions
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/
DStringExtensions.cs112 public static string replaceFirst( string str, string regex, string replacement ) in replaceFirst() method in Antlr.Runtime.JavaExtensions.StringExtensions
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowBitmapFactory.java62 return create(is.toString().replaceFirst("stream for ", ""), opts); in decodeStream()
/external/icu/icu4c/source/i18n/unicode/
Dregex.h1418 virtual UnicodeString replaceFirst(const UnicodeString &replacement, UErrorCode &status);
1445 virtual UText *replaceFirst(UText *replacement, UText *dest, UErrorCode &status);
/external/robolectric/src/main/java/com/xtremelabs/robolectric/util/
DSQLite.java128 whereClause = whereClause.replaceFirst("\\?", "'" + selectionArgs[x] + "'"); in buildWhereClause()
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java1198 NP_PATTERN.matcher(nationalPrefixFormattingRule).replaceFirst(nationalPrefix);
1200 FG_PATTERN.matcher(nationalPrefixFormattingRule).replaceFirst("\\$1");
1826 CC_PATTERN.matcher(carrierCodeFormattingRule).replaceFirst(carrierCode);
1830 .replaceFirst(carrierCodeFormattingRule);
1840 m.replaceAll(firstGroupMatcher.replaceFirst(nationalPrefixFormattingRule));
1849 formattedNationalNumber = matcher.replaceFirst("");
2675 transformedNumber.replace(0, numberLength, prefixMatcher.replaceFirst(transformRule));
DAsYouTypeFormatter.java647 String tempTemplate = digitMatcher.replaceFirst(Character.toString(nextChar)); in inputDigitHelper()
/external/proguard/src/proguard/wtk/
Ddefault.pro85 public java.lang.String replaceFirst(java.lang.String,java.lang.String);
/external/doclava/src/com/google/doclava/
DPageMetadata.java459 absUrl = absUrl.replaceFirst("^/(?!/)", ""); in getImageUrlNormalized()
477 absUrl = absUrl.replaceFirst("^/(?!/)", ""); in getPageUrlNormalized()
DSampleCode.java367 String relative = subdir.replaceFirst("samples/", ""); in writePage()
/external/proguard/src/proguard/gui/
Ddefault.pro249 public java.lang.String replaceFirst(java.lang.String,java.lang.String);
Dboilerplate.pro317 public java.lang.String replaceFirst(java.lang.String,java.lang.String);
/external/icu/icu4c/source/i18n/
Drematch.cpp1748 UnicodeString RegexMatcher::replaceFirst(const UnicodeString &replacement, UErrorCode &status) { in replaceFirst() function in RegexMatcher
1756 replaceFirst(&replacementText, &resultText, status); in replaceFirst()
1767 UText *RegexMatcher::replaceFirst(UText *replacement, UText *dest, UErrorCode &status) { in replaceFirst() function in RegexMatcher
Duregex.cpp1273 dest = regexp->fMatcher->replaceFirst(replacementText, dest, *status); in uregex_replaceFirstUText()