/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; 304 Matcher mat = pat.matcher(testString); in testFlagsCase1() 312 Matcher mat = pat.matcher(testString); in testFlagsCase2() 320 Matcher mat = pat.matcher(testString); in testFlagsCase3() 328 Matcher mat = pat.matcher(testString); in testFlagsCase4() 336 Matcher mat = pat.matcher(testString); in testFlagsCase5() 344 Matcher mat = pat.matcher(testString); in testFlagsCase6() 352 Matcher mat = pat.matcher(testString); in testFlagsCase7() 360 Matcher mat = pat.matcher(testString); in testFlagsCase8() 368 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 | MatcherTest.java | 26 import java.util.regex.Matcher; 46 Matcher m = Pattern.compile("a").matcher("b"); in testResults_notMatched() 52 Matcher m = Pattern.compile("a(?<g>b)c").matcher("abc"); in testAppendEvaluated() 62 private void assertAppendEvaluated(Matcher m, String replacement, String expected) { in assertAppendEvaluated() 71 Matcher m = Pattern.compile("a(?<g>b)c").matcher("abc"); in testAppendExpandedReplacement() 84 private void assertAppendExpandedReplacement(Matcher m, String replacement, String expected) { in assertAppendExpandedReplacement() 91 @EnableCompatChanges({Matcher.DISALLOW_INVALID_GROUP_REFERENCE}) 94 Matcher m = Pattern.compile("a(?<g>b)c").matcher("abc"); in testAppendReplacement() 107 private void assertAppendReplacement(Matcher m, String replacement, String expected) { in assertAppendReplacement()
|
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/src/test/java/util/regex/ |
D | RegExTest.java | 65 import java.util.regex.Matcher; 116 private static void check(Matcher m, String expected) { in check() 121 private static void check(Matcher m, String result, boolean expected) { in check() 131 Matcher matcher = Pattern.compile(p).matcher(s); in check() 139 Matcher matcher = pattern.matcher(new String(ca)); in check() 147 Matcher matcher = pattern.matcher(new String(ca)); in check() 155 Matcher matcher = pattern.matcher(input); in check() 163 Matcher m = p.matcher(s); in check() 245 final Matcher m = Pattern.compile("xyz").matcher("xyz"); in nullArgumentTest() 256 assertThrows(NullPointerException.class, () -> Matcher.quoteReplacement(null)); in nullArgumentTest() [all …]
|
D | PatternStreamTest.java | 48 import java.util.regex.Matcher; 176 Matcher m = pattern.matcher(input); in testReplaceAll() 189 Matcher m = pattern.matcher(input); in testMatchResults() 218 Matcher m = p.matcher("XX"); in testFailfastMatchResults() 264 Matcher m = p.matcher("XX"); in testFailfastReplace() 289 MatchResultHolder(Matcher m) { in MatchResultHolder()
|
/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/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() 78 @libcore.util.NonNull public java.util.regex.Matcher appendReplacement(@libcore.util.NonNull java.l… in appendReplacement() 92 @libcore.util.NonNull public java.util.regex.Matcher region(int start, int end) { throw new Runtime… in region() 100 @libcore.util.NonNull public java.util.regex.Matcher useTransparentBounds(boolean b) { throw new Ru… in useTransparentBounds() 104 @libcore.util.NonNull public java.util.regex.Matcher useAnchoringBounds(boolean b) { throw new Runt… in useAnchoringBounds()
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | Matcher.java | 121 public final class Matcher implements MatchResult { class 194 Matcher(Pattern parent, CharSequence text) { in Matcher() method in Matcher 335 public Matcher usePattern(Pattern newPattern) { in usePattern() 365 public Matcher reset() { in reset() 366 Matcher matcher = reset(originalInput, 0, originalInput.length()); in reset() 385 public Matcher reset(CharSequence input) { in reset() 849 public Matcher appendReplacement(StringBuffer sb, String replacement) { in appendReplacement() 1031 public Matcher appendReplacement(StringBuilder sb, String replacement) { in appendReplacement() 1571 public Matcher region(int start, int end) { in region() 1648 public Matcher useTransparentBounds(boolean b) { in useTransparentBounds() [all …]
|
D | Pattern.java | 979 public Matcher matcher(CharSequence input) { in matcher() 989 Matcher m = new Matcher(this, input); in matcher() 1032 Matcher m = p.matcher(input); in matches() 1128 Matcher m = matcher(input); in split() 5711 private Matcher matcher; in splitAsStream()
|
/libcore/ojluni/src/tools/build/tools/spp/ |
D | Spp.java | 117 final Matcher ifkey = Pattern.compile("^#if\\[(!)?" + KEY + "\\]").matcher(""); 118 final Matcher elsekey = Pattern.compile("^#else\\[(!)?" + KEY + "\\]").matcher(""); 119 final Matcher endkey = Pattern.compile("^#end\\[(!)?" + KEY + "\\]").matcher(""); 120 …final Matcher vardef = Pattern.compile("\\{#if\\[(!)?" + KEY + "\\]\\?" + TEXT + "(:"+ TEXT + ")?… 121 final Matcher vardef2 = Pattern.compile("\\$" + VAR + "\\$").matcher("");
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SchemePrefixBenchmark.java | 21 import java.util.regex.Matcher; 60 Matcher matcher = pattern.matcher(spec); in REGEX()
|
/libcore/metrictests/memory/apps/src/libcore/heapdumper/ |
D | Actions.java | 22 import java.util.regex.Matcher; 75 Matcher m = p.matcher(sequence); in run()
|
/libcore/ojluni/src/test/java/lang/String/ |
D | LiteralReplace.java | 38 import java.util.regex.Matcher; 256 source).replaceAll(Matcher.quoteReplacement(replacement.toString())); in canonicalReplace()
|
/libcore/ojluni/src/test/java/util/Scanner/ |
D | ScannerStreamTest.java | 38 import java.util.regex.Matcher; 191 Matcher m = pattern.matcher(input); in findAllZeroTest()
|
/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 | Repository.java | 32 import java.util.regex.Matcher; 281 Matcher matcher = pattern.matcher(line); in loadOrderedRelPathsSetFromBlueprint()
|
D | CompareUpstreams.java | 31 import java.util.regex.Matcher; 97 Matcher matcher = pattern.matcher(line); in androidChangedComments()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | Debug.java | 31 import java.util.regex.Matcher; 286 Matcher matcher = pattern.matcher(source); in marshal()
|