/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | MatcherTest.java | 20 import java.util.regex.Matcher; 45 Matcher m = p.matcher("axxxxxa"); in testRegionsIntInt() 80 Matcher m = pat.matcher("Today is XX-XX-XX ..."); in testAppendReplacement() 92 Matcher m = p.matcher("xx $ equals to xx rur."); in testAppendReplacementRef() 106 Matcher mat = pat.matcher(input); in testReplaceAll() 113 Matcher m = p.matcher("abcd"); in testResetCharSequence() 127 Matcher m = p.matcher("one\\cat\\two\\cats\\in\\the\\yard"); in testAppendSlashes() 141 Matcher mat = pat.matcher(input); in testReplaceFirst() 147 Matcher matcher = Pattern.compile("Hello").matcher("Hello, world!"); in testReplaceFirst_null_match() 156 Matcher matcher = Pattern.compile("not found").matcher("Hello, world!"); in testReplaceFirst_null_nomatch() [all …]
|
D | Matcher2Test.java | 19 import java.util.regex.Matcher; 32 Matcher m = p.matcher("bar"); in test_toString() 39 Matcher m = p.matcher("bar"); in testErrorConditions() 90 Matcher m = p.matcher("foo1barzfoo2baryfoozbar5"); in testErrorConditions2() 224 Matcher mat = pat.matcher(str); in testReplacementBackSlash() 233 Matcher matcher = Pattern.compile("Hello").matcher("Hello, world!"); in testAppendReplacement_replacementEndsWithBackslash() 243 Matcher matcher = Pattern.compile("Hello").matcher("Hello, world!"); in testAppendReplacement_replacementEndsWithDollar()
|
D | ReplaceTest.java | 19 import java.util.regex.Matcher; 36 Matcher m = p.matcher(target); in testSimpleReplace() 45 Matcher m; in testCaptureReplace()
|
D | ModeTest.java | 19 import java.util.regex.Matcher; 33 Matcher m; in testCase() 62 Matcher m; in testMultiline()
|
D | Pattern2Test.java | 19 import java.util.regex.Matcher; 33 Matcher m1 = p.matcher("foo123"); in testSimpleMatch() 38 Matcher m2 = p.matcher("fox"); in testSimpleMatch() 53 Matcher m; in testCursors() 108 Matcher m; in testGroups() 161 Matcher m; in testReplace() 208 Matcher m; in testEscapes() 410 Matcher m; in testCharacterClasses() 677 Matcher m; in testPOSIXGroups() 818 Matcher m; in testUnicodeBlocks() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | PatternTest.java | 21 import java.util.regex.Matcher; 296 Matcher mat = pat.matcher(testString); in testFlagsCase1() 304 Matcher mat = pat.matcher(testString); in testFlagsCase2() 312 Matcher mat = pat.matcher(testString); in testFlagsCase3() 320 Matcher mat = pat.matcher(testString); in testFlagsCase4() 328 Matcher mat = pat.matcher(testString); in testFlagsCase5() 336 Matcher mat = pat.matcher(testString); in testFlagsCase6() 344 Matcher mat = pat.matcher(testString); in testFlagsCase7() 352 Matcher mat = pat.matcher(testString); in testFlagsCase8() 360 Matcher mat = pat.matcher(testString); in testFlagsCase9() [all …]
|
D | Pattern2Test.java | 19 import java.util.regex.Matcher; 133 Matcher m; in testCapturingGroups() 186 Matcher m; in testRepeats() 254 Matcher m; in testAnchors()
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
D | OldMatcherTest.java | 21 import java.util.regex.Matcher; 32 Matcher m = pat.matcher("Today is XX-XX-XX ..."); in testAppendReplacement() 67 Matcher mat = pat.matcher(testString1); in test_resetLjava_lang_String() 78 Matcher m = p.matcher("one-cat-two-cats-in-the-yard"); in testAppendTail() 115 Matcher mat = pat.matcher(testString); in test_reset() 126 Matcher mat = pat.matcher(testString); in test_hasAnchoringBounds() 131 Matcher mu = mat.useAnchoringBounds(true); in test_hasAnchoringBounds() 144 Matcher mat = pat.matcher(testString); in test_hasTransparentBounds() 149 Matcher mu = mat.useTransparentBounds(true); in test_hasTransparentBounds() 162 Matcher mat = pat.matcher(testString); in test_startI() [all …]
|
D | OldAndroidRegexTest.java | 19 import java.util.regex.Matcher; 28 Matcher m = p.matcher("bcd"); in testMatches() 89 Matcher m = p.matcher("1 (919) 555-1212"); in testGroupCount() 97 Matcher m = p.matcher("abcdefg"); in testGroups() 112 Matcher m = p.matcher("abc"); in testFind() 129 Matcher m = p.matcher("fooaabfooaabfooabfoob"); in testReplaceAll() 145 Matcher m = p.matcher("fooaabfooaabfooabfoob"); in testReplaceFirst() 260 Matcher m = EMAIL_ADDRESS_PATTERN.matcher("donot repeate@RC8jjjjjjjjjjjjjjj"); in testMonsterRegexPerformance()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/ |
D | Matcher.annotated.java | 32 public final class Matcher implements java.util.regex.MatchResult { class 34 Matcher(@libcore.util.NonNull java.util.regex.Pattern parent, @libcore.util.NonNull java.lang.CharS… in Matcher() method in Matcher 40 @libcore.util.NonNull public java.util.regex.Matcher usePattern(@libcore.util.NonNull java.util.reg… in usePattern() 42 @libcore.util.NonNull public java.util.regex.Matcher reset() { throw new RuntimeException("Stub!");… in reset() 44 @libcore.util.NonNull public java.util.regex.Matcher reset(@libcore.util.NonNull java.lang.CharSequ… in reset() 76 @libcore.util.NonNull public java.util.regex.Matcher appendReplacement(@libcore.util.NonNull java.l… in appendReplacement() 84 @libcore.util.NonNull public java.util.regex.Matcher region(int start, int end) { throw new Runtime… in region() 92 @libcore.util.NonNull public java.util.regex.Matcher useTransparentBounds(boolean b) { throw new Ru… in useTransparentBounds() 96 @libcore.util.NonNull public java.util.regex.Matcher useAnchoringBounds(boolean b) { throw new Runt… in useAnchoringBounds()
|
D | Pattern.annotated.java | 44 @libcore.util.NonNull public java.util.regex.Matcher matcher(@libcore.util.NonNull java.lang.CharSe… in matcher()
|
/libcore/luni/src/main/native/ |
D | java_util_regex_Matcher.cpp | 273 NATIVE_METHOD(Matcher, getMatchedGroupIndex0, "(JLjava/lang/String;)I"), 274 NATIVE_METHOD(Matcher, findImpl, "(JI[I)Z"), 275 NATIVE_METHOD(Matcher, findNextImpl, "(J[I)Z"), 276 NATIVE_METHOD(Matcher, getNativeFinalizer, "()J"), 277 NATIVE_METHOD(Matcher, groupCountImpl, "(J)I"), 278 NATIVE_METHOD(Matcher, hitEndImpl, "(J)Z"), 279 NATIVE_METHOD(Matcher, lookingAtImpl, "(J[I)Z"), 280 NATIVE_METHOD(Matcher, matchesImpl, "(J[I)Z"), 281 NATIVE_METHOD(Matcher, openImpl, "(J)J"), 282 NATIVE_METHOD(Matcher, requireEndImpl, "(J)Z"), [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/regex/ |
D | Matcher.java | 32 public final class Matcher implements java.util.regex.MatchResult { class 34 Matcher(java.util.regex.Pattern parent, java.lang.CharSequence text) { in Matcher() method in Matcher 46 public java.util.regex.Matcher usePattern(java.util.regex.Pattern newPattern) { in usePattern() 50 public java.util.regex.Matcher reset() { in reset() 54 public java.util.regex.Matcher reset(java.lang.CharSequence input) { in reset() 118 public java.util.regex.Matcher appendReplacement( in appendReplacement() 139 public java.util.regex.Matcher region(int start, int end) { in region() 155 public java.util.regex.Matcher useTransparentBounds(boolean b) { in useTransparentBounds() 163 public java.util.regex.Matcher useAnchoringBounds(boolean b) { in useAnchoringBounds() 187 private java.util.regex.Matcher reset(java.lang.CharSequence input, int start, int end) { in reset()
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | Matcher.java | 107 public final class Matcher implements MatchResult { class 153 NativeAllocationRegistry.createMalloced(Matcher.class.getClassLoader(), 184 Matcher(Pattern parent, CharSequence text) { in Matcher() method in Matcher 227 public Matcher usePattern(Pattern newPattern) { in usePattern() 261 public Matcher reset() { in reset() 279 public Matcher reset(CharSequence input) { in reset() 738 public Matcher appendReplacement(StringBuffer sb, String replacement) { in appendReplacement() 942 public Matcher region(int start, int end) { in region() 1019 public Matcher useTransparentBounds(boolean b) { in useTransparentBounds() 1068 public Matcher useAnchoringBounds(boolean b) { in useAnchoringBounds() [all …]
|
D | Pattern.java | 1024 public Matcher matcher(CharSequence input) { in matcher() 1034 Matcher m = new Matcher(this, input); in matcher() 1075 Matcher m = p.matcher(input); in matches() 1156 Matcher m = matcher(input); in split() 1485 private final Matcher matcher; in splitAsStream()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SchemePrefixBenchmark.java | 21 import java.util.regex.Matcher; 60 Matcher matcher = pattern.matcher(spec); in REGEX()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | CpuFeatures.java | 26 import java.util.regex.Matcher; 82 Matcher m = p.matcher(line); in getFieldFromCpuinfo()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | Debug.java | 30 import java.util.regex.Matcher; 252 Matcher matcher = pattern.matcher(source); in marshal()
|
D | DisabledAlgorithmConstraints.java | 40 import java.util.regex.Matcher; 279 Matcher matcher = keySizePattern.matcher(entry); in Constraints()
|
/libcore/luni/src/main/java/libcore/timezone/ |
D | TzDataSetVersion.java | 24 import java.util.regex.Matcher; 130 Matcher matcher = TZ_DATA_VERSION_FILE_PATTERN.matcher(tzDataVersion); in fromBytes()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | MimeTypesFileTypeDetector.java | 38 import java.util.regex.Matcher;
|
/libcore/tools/upstream/src/main/java/libcore/ |
D | CompareUpstreams.java | 31 import java.util.regex.Matcher; 84 Matcher matcher = pattern.matcher(line); in androidChangedComments()
|
D | Repository.java | 30 import java.util.regex.Matcher; 248 Matcher matcher = pattern.matcher(line); in loadRelPathsFromBlueprint()
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | BlockGuardOsTest.java | 46 import java.util.regex.Matcher; 301 Matcher methodPatternMatcher = pattern.matcher(methodSignature); in getMethodNameAndParameters()
|
/libcore/ojluni/src/main/java/java/util/ |
D | TimeZone.java | 47 import java.util.regex.Matcher; 628 Matcher m = NoImagePreloadHolder.CUSTOM_ZONE_ID_PATTERN.matcher(id); in getCustomTimeZone()
|