Searched refs:matches (Results 1 - 25 of 25) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
H A DPattern2Test.java106 private void testCategory(String cat, String... matches) { argument
112 for (int j = 0; j < matches.length; j++) {
113 String t = matches[j];
119 "by pattern '"+pat, p.matcher(t).matches());
121 "be matched by pattern '"+npat, pn.matcher(t).matches());
124 "by pattern '"+pat, p.matcher(t).matches());
126 "not be matched by pattern '"+npat, pn.matcher(t).matches());
138 assertTrue(m.matches());
144 assertTrue(m.matches());
155 assertTrue(m.matches());
[all...]
H A DPatternTest.java226 assertFalse(mat.matches());
232 assertTrue(mat.matches());
238 assertTrue(mat.matches());
244 assertTrue(mat.matches());
250 assertTrue(mat.matches());
256 assertFalse(mat.matches());
262 assertFalse(mat.matches());
268 assertTrue(mat.matches());
274 assertTrue(mat.matches());
280 assertFalse(mat.matches());
[all...]
H A DMatcher2Test.java38 assertFalse(m.matches());
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
H A DMatcherTest.java47 assertFalse(m.matches());
52 assertTrue(m.matches());
118 assertTrue(m.matches());
120 assertFalse(m.matches());
179 mat.matches();
204 mat.matches();
220 mat.matches();
231 mat.matches();
234 fail("IllegalStateException expected for <false> matches result");
244 mat.matches();
[all...]
H A DPattern2Test.java34 assertTrue(m1.matches());
39 assertFalse(m2.matches());
43 assertTrue(Pattern.matches("foo.*", "foo123"));
44 assertFalse(Pattern.matches("foo.*", "fox"));
46 assertFalse(Pattern.matches("bar", "foobar"));
48 assertTrue(Pattern.matches("", ""));
356 // Ensure that each escape matches exactly the corresponding
365 if (m.matches()) {
415 assertTrue(m.matches());
417 assertTrue(m.matches());
[all...]
H A DMatcher2Test.java40 assertFalse(m.matches());
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
H A DKeyGeneratorThread.java44 int matches = 0;
47 matches++;
50 if (matches > array1.length / 2) {
55 matches = 0;
64 matches++;
/libcore/luni/src/test/java/libcore/java/util/regex/
H A DOldAndroidRegexTest.java29 assertTrue("Should match.", m.matches());
34 assertFalse("Should not match.", m.matches());
38 assertFalse("Should not match.", m.matches());
42 assertFalse("Should not match.", m.matches());
44 /* Make sure matches() doesn't change after calls to find() */
47 assertTrue(m.matches());
49 assertTrue(m.matches());
53 assertFalse(m.matches());
55 assertFalse(m.matches());
57 /* Make sure matches() agree
[all...]
H A DOldMatcherTest.java287 assertTrue(mat.matches());
332 mat.matches();
379 assertTrue(mat.matches());
389 assertTrue(Pattern.compile("\\x61a").matcher("aa").matches());
390 // assertTrue(Pattern.matches("\\u0061a", "aa"));
391 assertTrue(Pattern.compile("\\0141a").matcher("aa").matches());
392 assertTrue(Pattern.compile("\\0777").matcher("?7").matches());
397 assertTrue(Pattern.compile("\\p{Ll}").matcher("k").matches()); // Unicode lower case
398 assertTrue(Pattern.compile("\\P{Ll}").matcher("K").matches()); // Unicode non-lower
400 assertTrue(Pattern.compile("\\p{Lu}").matcher("K").matches()); // Unicod
[all...]
/libcore/luni/src/main/java/libcore/util/
H A DZoneInfoDB.java192 List<String> matches = new ArrayList<String>();
195 matches.add(ids[i]);
198 return matches.toArray(new String[matches.size()]);
/libcore/crypto/src/main/java/org/conscrypt/
H A DOpenSSLSignatureRawRSA.java182 boolean matches = (resultSize == inputOffset);
185 matches = false;
188 return matches;
/libcore/luni/src/main/java/java/util/regex/
H A DPattern.java25 * {@link String#matches String.matches}, {@link String#replaceAll String.replaceAll} and
33 * boolean sawFailures = s.matches("Failures: \\d+");
58 * <tr> <td> \ </td> <td>Quote the following metacharacter (so {@code \.} matches a literal {@code .}).</td> </tr>
161 * text in the containing match. The maximum length of possible matches for look-behind patterns
230 * This constant specifies that a pattern matches Unix line endings ('\n')
263 * This constant specifies that the '.' meta character matches arbitrary
315 * entries. If this is fewer than the number of matches, the
415 * Tests whether the given {@code regularExpression} matches the given {@code input}.
416 * Equivalent to {@code Pattern.compile(regularExpression).matcher(input).matches()}
423 public static boolean matches(String regularExpression, CharSequence input) { method in class:Pattern
[all...]
H A DMatcher.java276 * walk through the input and replace all matches of the {@code Pattern}
415 * @return true if (and only if) the {@code Pattern} matches.
428 * @return true if (and only if) the {@code Pattern} matches the entire
431 public boolean matches() { method in class:Matcher
/libcore/luni/src/main/java/java/net/
H A DProxySelectorImpl.java117 * and matches {@code host}.
141 return host.matches(pattern);
/libcore/luni/src/test/java/libcore/java/lang/
H A DOldStringTest.java497 + strings[i][j], strings[i][j].matches(patterns[i]));
498 assertFalse("" + i, strings[i][j].matches(patternsInc[i]));
/libcore/luni/src/main/java/java/lang/
H A DHexStringParser.java105 if (!matcher.matches()) {
/libcore/luni/src/main/java/java/sql/
H A DTimestamp.java413 if (!Pattern.matches(TIME_FORMAT_REGEX, s)) {
/libcore/luni/src/main/java/java/util/
H A DTimeZone.java363 if (!m.matches()) {
H A DScanner.java81 // The pattern matches anything.
524 * and the next token matches the given pattern. This method will block if the data is
530 * matches the pattern, {@code false} otherwise.
547 // check whether next token matches the specified pattern
548 if (matcher.matches()) {
559 * and the next token matches a pattern compiled from the given string. This method will
565 * @return {@code true} if the specified pattern matches this {@code Scanner}'s
924 * the delimiter that is currently being used (or a string that matches the
938 * Returns the next token if it matches the specified pattern. The token
940 * being used (or a string that matches th
[all...]
/libcore/luni/src/main/native/
H A Djava_util_regex_Matcher.cpp166 UBool result = matcher->matches(matcher.status());
H A Dorg_apache_harmony_xml_ExpatParser.cpp528 bool matches(const char* uri, const char* localName) { function in class:ExpatElementName
647 * we assume that this matches the last data on our stack.
1195 if (ExpatElementName(NULL, NULL, attributePointer, index).matches(uriBytes.c_str(),
/libcore/libart/src/main/java/java/lang/
H A DString.java1332 // The empty target matches at the start and end and between each character.
1715 * Tests whether this string matches the given {@code regularExpression}. This method returns
1716 * true only if the regular expression matches the <i>entire</i> input string. A common mistake is
1719 * regular expression. See {@link Pattern#matches}.
1730 public boolean matches(String regularExpression) { method in class:String
1731 return Pattern.matches(regularExpression, this);
1735 * Replaces all matches for {@code regularExpression} within this string with the given
/libcore/libdvm/src/main/java/java/lang/
H A DString.java1367 // The empty target matches at the start and end and between each character.
1750 * Tests whether this string matches the given {@code regularExpression}. This method returns
1751 * true only if the regular expression matches the <i>entire</i> input string. A common mistake is
1754 * regular expression. See {@link Pattern#matches}.
1765 public boolean matches(String regularExpression) { method in class:String
1766 return Pattern.matches(regularExpression, this);
1770 * Replaces all matches for {@code regularExpression} within this string with the given
/libcore/benchmarks/libs/
H A Dcaliper.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/google/caliper/ com/google/caliper/AllocationMeasurer ...
/libcore/luni/src/test/java/libcore/java/net/
H A DURLConnectionTest.java2368 if (header.matches(pattern)) {
2369 fail("Header " + header + " matches " + pattern);

Completed in 878 milliseconds