Searched refs:matches (Results 1 - 21 of 21) sorted by last modified time

/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/org/apache/harmony/regex/tests/java/util/regex/
H A DMatcher2Test.java38 assertFalse(m.matches());
H A DPattern2Test.java35 assertTrue(m1.matches());
40 assertFalse(m2.matches());
44 assertTrue(Pattern.matches("foo.*", "foo123"));
45 assertFalse(Pattern.matches("foo.*", "fox"));
47 assertFalse(Pattern.matches("bar", "foobar"));
49 assertTrue(Pattern.matches("", ""));
354 // Ensure that each escape matches exactly the corresponding
363 if (m.matches()) {
408 assertTrue(m.matches());
410 assertTrue(m.matches());
884 testCategory(String cat, String... matches) argument
[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...]
/libcore/luni/src/main/java/java/lang/
H A DHexStringParser.java105 if (!matcher.matches()) {
H A DString.java1360 // The empty target matches at the start and end and between each character.
1739 * Tests whether this string matches the given {@code regularExpression}. This method returns
1740 * true only if the regular expression matches the <i>entire</i> input string. A common mistake is
1743 * regular expression. See {@link Pattern#matches}.
1754 public boolean matches(String regularExpression) { method in class:String
1755 return Pattern.matches(regularExpression, this);
1759 * Replaces all matches for {@code regularExpression} within this string with the given
/libcore/luni/src/main/java/java/net/
H A DProxySelectorImpl.java117 * and matches {@code host}.
141 return host.matches(pattern);
/libcore/luni/src/main/java/java/sql/
H A DTimestamp.java412 if (!Pattern.matches(TIME_FORMAT_REGEX, s)) {
/libcore/luni/src/main/java/java/util/
H A DScanner.java88 // The pattern matches anything.
551 * and the next token matches the given pattern. This method will block if the data is
557 * matches the pattern, {@code false} otherwise.
574 // check whether next token matches the specified pattern
575 if (matcher.matches()) {
586 * and the next token matches a pattern compiled from the given string. This method will
592 * @return {@code true} if the specified pattern matches this {@code Scanner}'s
970 * the delimiter that is currently being used (or a string that matches the
984 * Returns the next token if it matches the specified pattern. The token
986 * being used (or a string that matches th
[all...]
H A DTimeZone.java340 if (!m.matches()) {
/libcore/luni/src/main/java/java/util/regex/
H A DMatcher.java271 * walk through the input and replace all matches of the {@code Pattern}
406 * @return true if (and only if) the {@code Pattern} matches.
417 * @return true if (and only if) the {@code Pattern} matches the entire
420 public boolean matches() { method in class:Matcher
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
411 * Tests whether the given {@code regularExpression} matches the given {@code input}.
412 * Equivalent to {@code Pattern.compile(regularExpression).matcher(input).matches()}
419 public static boolean matches(String regularExpression, CharSequence input) { method in class:Pattern
[all...]
/libcore/luni/src/main/java/libcore/net/http/
H A DHttpResponseCache.java108 if (!entry.matches(uri, requestMethod, requestHeaders)) {
497 public boolean matches(URI uri, String requestMethod, method in class:HttpResponseCache.Entry
/libcore/luni/src/main/java/libcore/util/
H A DZoneInfoDB.java237 List<String> matches = new ArrayList<String>();
240 matches.add(ids[i]);
243 return matches.toArray(new String[matches.size()]);
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DOpenSSLSignatureRawRSA.java183 boolean matches = (resultSize == inputOffset);
186 matches = false;
189 return matches;
/libcore/luni/src/main/native/
H A Djava_util_regex_Matcher.cpp165 UBool result = matcher->matches(matcher.status());
H A Dorg_apache_harmony_xml_ExpatParser.cpp514 bool matches(const char* uri, const char* localName) { function in class:ExpatElementName
633 * we assume that this matches the last data on our stack.
1213 if (ExpatElementName(NULL, NULL, attributePointer, index).matches(uriBytes.c_str(),
/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/test/java/libcore/java/net/
H A DURLConnectionTest.java2300 if (header.matches(pattern)) {
2301 fail("Header " + header + " matches " + pattern);
/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.java286 assertTrue(mat.matches());
331 mat.matches();
378 assertTrue(mat.matches());
388 assertTrue(Pattern.compile("\\x61a").matcher("aa").matches());
389 // assertTrue(Pattern.matches("\\u0061a", "aa"));
390 assertTrue(Pattern.compile("\\0141a").matcher("aa").matches());
391 assertTrue(Pattern.compile("\\0777").matcher("?7").matches());
396 assertTrue(Pattern.compile("\\p{Ll}").matcher("k").matches()); // Unicode lower case
397 assertTrue(Pattern.compile("\\P{Ll}").matcher("K").matches()); // Unicode non-lower
399 assertTrue(Pattern.compile("\\p{Lu}").matcher("K").matches()); // Unicod
[all...]

Completed in 1894 milliseconds