/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
H A D | Pattern2Test.java | 106 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 D | PatternTest.java | 226 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 D | Matcher2Test.java | 38 assertFalse(m.matches());
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
H A D | IndexedCollectionCertStore.java | 243 Set<Certificate> matches = new HashSet<>(); 244 matchX509Certs(new X509CertSelector(), matches); 245 matches.addAll(otherCertificates); 246 return matches; 250 Set<Certificate> matches = new HashSet<>(); 251 matchX509Certs(selector, matches); 254 matches.add(cert); 257 return matches; 289 Set<X509Certificate> matches = new HashSet<>(16); 292 matches 308 matchX509Certs(CertSelector selector, Collection<Certificate> matches) argument 404 matchX509CRLs(CRLSelector selector, Collection<CRL> matches) argument [all...] |
/libcore/ojluni/src/main/java/javax/net/ssl/ |
H A D | SNIMatcher.java | 95 * @return {@code true} if, and only if, the matcher matches the 104 public abstract boolean matches(SNIServerName serverName); method in class:SNIMatcher
|
H A D | SNIHostName.java | 353 * @return {@code true} if, and only if, the matcher matches the 363 public boolean matches(SNIServerName serverName) { method in class:SNIHostName.SNIHostNameMatcher 387 if (pattern.matcher(asciiName).matches()) { 393 return pattern.matcher(IDN.toUnicode(asciiName)).matches();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
H A D | MatcherTest.java | 46 assertFalse(m.matches()); 51 assertTrue(m.matches()); 114 assertTrue(m.matches()); 116 assertFalse(m.matches()); 169 mat.matches(); 194 mat.matches(); 210 mat.matches(); 221 mat.matches(); 224 fail("IllegalStateException expected for <false> matches result"); 234 mat.matches(); [all...] |
H A D | Pattern2Test.java | 34 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 D | Matcher2Test.java | 40 assertFalse(m.matches());
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
H A D | KeyGeneratorThread.java | 44 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 D | OldAndroidRegexTest.java | 29 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 D | OldMatcherTest.java | 287 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 D | ZoneInfoDB.java | 218 List<String> matches = new ArrayList<String>(); 222 matches.add(ids[i]); 225 return matches.toArray(new String[matches.size()]);
|
/libcore/support/src/test/java/libcore/java/security/ |
H A D | CpuFeatures.java | 69 if (m.matches()) {
|
/libcore/ojluni/src/main/java/java/util/logging/ |
H A D | Level.java | 284 // Returns a mirrored Level object that matches the given name as 357 KnownLevel o = KnownLevel.matches(this); 559 static synchronized KnownLevel matches(Level l) { method in class:Level.KnownLevel
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | NetworkInterfaceTest.java | 195 return ethernetNamePattern.matcher(ifName).matches();
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldStringTest.java | 497 + strings[i][j], strings[i][j].matches(patterns[i])); 498 assertFalse("" + i, strings[i][j].matches(patternsInc[i]));
|
/libcore/ojluni/src/main/java/java/util/regex/ |
H A D | Pattern.java | 57 * boolean b = m.{@link Matcher#matches matches}();</pre></blockquote> 59 * <p> A {@link #matches matches} method is defined by this class as a 61 * compiles an expression and matches an input sequence against it in a single 65 * boolean b = Pattern.matches("a*b", "aaaaab");</pre></blockquote> 67 * is equivalent to the three statements above, though for repeated matches it 83 * <th bgcolor="#CCCCFF" align="left" id="matches">Matches</th> 90 * <td headers="matches">The character <i>x</i></td></tr> 92 * <td headers="matches">Th 1045 public static boolean matches(String regex, CharSequence input) { method in class:Pattern [all...] |
H A D | Matcher.java | 41 * <li><p> The {@link #matches matches} method attempts to match the entire 48 * the next subsequence that matches the pattern. </p></li> 56 * <p> A matcher finds matches in a subset of its input called the 201 * find matches with. 293 * successfully matches the empty string in the input. </p> 324 * matches the empty string in the input. </p> 361 * matches the empty string in the input. </p> 411 * matches this matcher's pattern 413 public boolean matches() { method in class:Matcher [all...] |
/libcore/luni/src/main/native/ |
H A D | java_util_regex_Matcher.cpp | 175 UBool result = matcher->matches(matcher.status());
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | TimeZone.java | 585 if (!m.matches()) {
|
/libcore/ojluni/src/main/java/sun/net/www/ |
H A D | MimeEntry.java | 261 public boolean matches(String type) { method in class:MimeEntry
|
H A D | MimeTable.java | 161 if (wild.matches(type)) {
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
H A D | X509KeyManagerImpl.java | 53 * . it makes an effort to choose the key that matches best, i.e. one that 259 // the signature algorithm) of a certificate matches what we need. 283 boolean matches(Certificate[] chain) { method in class:X509KeyManagerImpl.KeyType 325 * the imperfect matches 326 * . at the end, sort the imperfect matches. we prefer expired certs 344 // or 1 or more imperfect matches 379 * These are perfect matches plus imperfect matches (expired certificates 381 * The perfect matches will be first in the array. 584 * Return a List of all candidate matches i [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | SignatureFileVerifier.java | 636 static boolean matches(CodeSigner[] signers, CodeSigner[] oldSigners, method in class:SignatureFileVerifier 679 if (matches(cachedSigners, oldSigners, newSigners)) {
|