Home
last modified time | relevance | path

Searched refs:Matcher (Results 1 – 25 of 29) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
DMatcherTest.java20 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()
168 Matcher mat = test.matcher(positiveTestString); in testGroupint()
193 Matcher mat = test.matcher(positiveTestString); in testGroupint()
[all …]
DMatcher2Test.java19 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()
227 Matcher mat = pat.matcher(str); in testReplacementBackSlash()
DReplaceTest.java19 import java.util.regex.Matcher;
36 Matcher m = p.matcher(target); in testSimpleReplace()
45 Matcher m; in testCaptureReplace()
DModeTest.java19 import java.util.regex.Matcher;
32 Matcher m; in testCase()
59 Matcher m; in testMultiline()
DPattern2Test.java19 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/main/native/
Djava_util_regex_Matcher.cpp211 NATIVE_METHOD(Matcher, findImpl, "(JLjava/lang/String;I[I)Z"),
212 NATIVE_METHOD(Matcher, findNextImpl, "(JLjava/lang/String;[I)Z"),
213 NATIVE_METHOD(Matcher, getNativeFinalizer, "()J"),
214 NATIVE_METHOD(Matcher, groupCountImpl, "(J)I"),
215 NATIVE_METHOD(Matcher, hitEndImpl, "(J)Z"),
216 NATIVE_METHOD(Matcher, lookingAtImpl, "(JLjava/lang/String;[I)Z"),
217 NATIVE_METHOD(Matcher, matchesImpl, "(JLjava/lang/String;[I)Z"),
218 NATIVE_METHOD(Matcher, nativeSize, "()I"),
219 NATIVE_METHOD(Matcher, openImpl, "(J)J"),
220 NATIVE_METHOD(Matcher, requireEndImpl, "(J)Z"),
[all …]
/libcore/luni/src/test/java/libcore/java/util/regex/
DOldMatcherTest.java21 import java.util.regex.Matcher;
31 Matcher m = pat.matcher("Today is XX-XX-XX ..."); in testAppendReplacement()
66 Matcher mat = pat.matcher(testString1); in test_resetLjava_lang_String()
77 Matcher m = p.matcher("one-cat-two-cats-in-the-yard"); in testAppendTail()
114 Matcher mat = pat.matcher(testString); in test_reset()
125 Matcher mat = pat.matcher(testString); in test_hasAnchoringBounds()
130 Matcher mu = mat.useAnchoringBounds(true); in test_hasAnchoringBounds()
143 Matcher mat = pat.matcher(testString); in test_hasTransparentBounds()
148 Matcher mu = mat.useTransparentBounds(true); in test_hasTransparentBounds()
161 Matcher mat = pat.matcher(testString); in test_startI()
[all …]
DOldAndroidRegexTest.java19 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/main/java/java/util/regex/
DMatcher.java106 public final class Matcher implements MatchResult { class
124 Matcher.class.getClassLoader(), getNativeFinalizer(), nativeSize());
172 Matcher(Pattern parent, CharSequence text) { in Matcher() method in Matcher
215 public Matcher usePattern(Pattern newPattern) { in usePattern()
599 public Matcher appendReplacement(StringBuffer sb, String replacement) { in appendReplacement()
772 public Matcher region(int start, int end) { in region()
849 public Matcher useTransparentBounds(boolean value) { in useTransparentBounds()
898 public Matcher useAnchoringBounds(boolean value) { in useAnchoringBounds()
976 public Matcher reset() { in reset()
994 public Matcher reset(CharSequence input) { in reset()
[all …]
DPattern.java1005 public Matcher matcher(CharSequence input) { in matcher()
1006 Matcher m = new Matcher(this, input); in matcher()
1047 Matcher m = p.matcher(input); in matches()
1120 Matcher m = matcher(input); in split()
1392 private final Matcher matcher; in splitAsStream()
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DReplaceTest.java21 import java.util.regex.Matcher;
33 Matcher m = p.matcher(target); in testSimpleReplace()
42 Matcher m; in testCaptureReplace()
DMatcher2Test.java30 Matcher m = p.matcher("bar"); in test_toString()
37 Matcher m = p.matcher("bar"); in testErrorConditions()
88 Matcher m = p.matcher("foo1barzfoo2baryfoozbar5"); in testErrorConditions2()
225 Matcher mat = pat.matcher(str); in testReplacementBackSlash()
DPatternTest.java21 import java.util.regex.Matcher;
220 Matcher mat; in testFlags()
505 java.util.regex.Matcher mat = pat.matcher("aaab"); in testQuantComposition()
555 Matcher m = p.matcher("GMT-9:45"); in testTimeZoneIssue()
627 Matcher mat = pat.matcher("{]()*?"); in testEscapes()
715 Matcher mat = pat.matcher("a\n"); in testFindBoundaryCases1()
723 Matcher mat = pat.matcher("aAa"); in testFindBoundaryCases2()
731 Matcher mat = pat.matcher("a\naA\n"); in testFindBoundaryCases3()
739 Matcher mat = pat.matcher("A\n"); in testFindBoundaryCases4()
747 Matcher mat = pat.matcher("\nA\naaa\nA\naaAaa\naaaA\n"); in testFindBoundaryCases5()
[all …]
DModeTest.java21 import java.util.regex.Matcher;
32 Matcher m; in testCase()
60 Matcher m; in testMultiline()
DPattern2Test.java19 import java.util.regex.Matcher;
133 Matcher m; in testCapturingGroups()
186 Matcher m; in testRepeats()
254 Matcher m; in testAnchors()
/libcore/benchmarks/src/benchmarks/regression/
DSchemePrefixBenchmark.java21 import java.util.regex.Matcher;
60 Matcher matcher = pattern.matcher(spec); in REGEX()
/libcore/support/src/test/java/libcore/java/security/
DCpuFeatures.java26 import java.util.regex.Matcher;
68 Matcher m = p.matcher(line); in getFieldFromCpuinfo()
/libcore/ojluni/src/main/java/sun/security/util/
DDebug.java30 import java.util.regex.Matcher;
200 Matcher matcher = pattern.matcher(source); in marshal()
DDisabledAlgorithmConstraints.java44 import java.util.regex.Matcher;
320 Matcher matcher = pattern.matcher(restriction); in KeySizeConstraints()
/libcore/ojluni/src/main/java/java/util/
DTimeZone.java44 import java.util.regex.Matcher;
584 Matcher m = NoImagePreloadHolder.CUSTOM_ZONE_ID_PATTERN.matcher(id); in getCustomTimeZone()
DScanner.java359 private Matcher matcher;
2282 Matcher m = NON_ASCII_DIGIT.matcher(result); in processFloatToken()
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java35 import java.util.regex.Matcher;
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java42 import java.util.regex.Matcher;
220 Matcher m = null; in parseLine()
271 Matcher m2 = linkp.matcher(filename); in parseLine()
385 Matcher m = transPat.matcher(response); in getTransferSize()
588 Matcher m = epsvPat.matcher(serverAnswer); in openPassiveDataConnection()
625 Matcher m = pasvPat.matcher(serverAnswer); in openPassiveDataConnection()
/libcore/luni/src/test/java/libcore/java/security/
DProviderTest.java46 import java.util.regex.Matcher;
204 Matcher m = alias.matcher(key); in test_Provider_Properties()
/libcore/ojluni/src/main/java/java/lang/
DString.java37 import java.util.regex.Matcher;

12