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

12

/dalvik/libcore/regex/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
H A DPattern2Test.java39 notes = "Verifies matches(String regex, CharSequence input) method.",
40 method = "matches",
47 assertTrue(m1.matches());
52 assertFalse(m2.matches());
56 assertTrue(Pattern.matches("foo.*", "foo123"));
57 assertFalse(Pattern.matches("foo.*", "fox"));
59 assertFalse(Pattern.matches("bar", "foobar"));
61 assertTrue(Pattern.matches("", ""));
422 // Ensure that each escape matches exactly the corresponding
431 if (m.matches()) {
986 testCategory(String cat, String... matches) argument
[all...]
H A DPatternTest.java284 assertFalse(mat.matches());
290 assertTrue(mat.matches());
296 assertTrue(mat.matches());
302 assertTrue(mat.matches());
308 assertTrue(mat.matches());
314 assertFalse(mat.matches());
320 assertFalse(mat.matches());
326 assertTrue(mat.matches());
332 assertTrue(mat.matches());
338 assertFalse(mat.matches());
[all...]
H A DMatcherTest.java280 mat.matches();
305 mat.matches();
334 mat.matches();
345 mat.matches();
348 fail("IllegalStateException expected for <false> matches result");
364 mat.matches();
489 notes = "Verifies matches() method in miscellaneous cases.",
490 method = "matches",
516 + posSeq[i][j], mat.matches());
523 notes = "Stress test for matches() metho
[all...]
H A DMatcher2Test.java94 assertFalse(m.matches());
/dalvik/libcore/crypto/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++;
/dalvik/libcore-disabled/sound/src/main/java/javax/sound/sampled/
H A DDataLine.java60 if (format.matches(supported)) {
76 public boolean matches(Line.Info info) { method in class:DataLine.Info
78 if (!super.matches(info)) {
H A DLine.java33 public boolean matches(Line.Info info) { method in class:Line.Info
H A DPort.java59 public boolean matches(Line.Info info) { method in class:Port.Info
60 if (super.matches(info) && Port.Info.class.equals(info.getClass())
H A DAudioFormat.java184 public boolean matches(AudioFormat format) { method in class:AudioFormat
H A DAudioSystem.java428 if (sourceStream.getFormat().matches(targetFormat)) {
/dalvik/libcore/icu/src/main/java/com/ibm/icu4jni/regex/
H A DNativeRegEx.java39 * for matches.
47 public static native boolean matches(int regex, int startIndex); method in class:NativeRegEx
56 * Finds the first matching substring of the input string that matches the
62 * Finds the first matching substring of the input string that matches the
/dalvik/dx/src/com/android/dx/dex/code/
H A DLocalList.java281 * Returns whether or not this instance matches the given spec.
284 * @return {@code true} iff this instance matches
287 public boolean matches(RegisterSpec otherSpec) { method in class:LocalList.Entry
292 * Returns whether or not this instance matches the spec in
296 * @return {@code true} iff this instance's spec matches
299 public boolean matches(Entry other) { method in class:LocalList.Entry
300 return matches(other.spec);
404 if ((already != null) && e.matches(already)) {
615 if (endEntry.matches(startedLocal)) {
769 if (entry.matches(endedLoca
[all...]
/dalvik/libcore/regex/src/main/java/java/util/regex/
H A DPattern.java35 * boolean b1 = m.matches(); // true
38 * boolean b2 = m.matches(); // false
46 * boolean b1 = Pattern.matches("Hello, A[a-z]*!", "Hello, Android!"); // true
47 * boolean b2 = Pattern.matches("Hello, A[a-z]*!", "Hello, Robot!"); // false
62 * This constant specifies that a pattern matches Unix line endings ('\n')
101 * This constant specifies that the '.' meta character matches arbitrary
180 * entries. If this is fewer than the number of matches, the
226 // Remove trailing empty matches in the limit == 0 case.
400 * @return true if and only if the {@code Pattern} matches the input.
403 * @see Matcher#matches()
405 public static boolean matches(String regex, CharSequence input) { method in class:Pattern
[all...]
H A DMatcher.java287 * walk through the input and replace all matches of the {@code Pattern}
481 * @return true if (and only if) the {@code Pattern} matches the entire
484 public boolean matches() { method in class:Matcher
485 matchFound = NativeRegEx.matches(nativePattern, -1);
522 * @return true if (and only if) the {@code Pattern} matches.
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/util/
H A DZoneInfoDB.java183 List<String> matches = new ArrayList<String>();
190 matches.add(_names[i]);
194 return matches.toArray(new String[matches.size()]);
/dalvik/libcore/xml/src/main/java/org/apache/xalan/templates/
H A DTemplateSubPatternAssociation.java119 * @return True if the given mode matches this template's mode
151 public boolean matches(XPathContext xctxt, int targetNode, QName mode) method in class:TemplateSubPatternAssociation
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/util/
H A DInet6Util.java214 if (!value.matches("\\p{Digit}+(\\.\\p{Digit}+)*")) {
H A DHexStringParser.java121 if (!matcher.matches()) {
/dalvik/libcore/icu/src/main/native/
H A DNativeRegEx.cpp149 static jboolean matches(JNIEnv* env, jclass clazz, RegExData* data, function
336 { "matches", "(II)Z", (void*)matches },
/dalvik/libcore/luni/src/main/java/java/net/
H A DProxySelectorImpl.java263 return host.matches(nonProxyHostsReg);
/dalvik/libcore/sql/src/main/java/java/sql/
H A DTimestamp.java416 if (!Pattern.matches(TIME_FORMAT_REGEX, s)) {
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/
H A DString2Test.java1689 method = "matches",
1737 + strings[i][j], strings[i][j].matches(patterns[i]));
1738 assertFalse("" + i, strings[i][j].matches(patternsInc[i]));
/dalvik/libcore/xml/src/main/java/org/apache/xpath/compiler/
H A DXPathParser.java167 * Given an string, init an XPath object for pattern matches,
255 * Check whether m_token matches the target string.
260 * return true if the current token matches the string, else false.
272 * @return If m_token is null, returns false, or return true if c matches
288 * @return true if the next token matches the character argument.
322 * @return true if the token behind the current token matches the character
394 * @return true if the token behind the current token matches the string
1885 // "Node test that matches either NCName:* or QName was expected."
1912 // "Node test that matches either NCName:* or QName was expected."
/dalvik/dx/src/com/android/dx/dex/file/
H A DDebugInfoEncoder.java303 if ((prevEntry != null) && entry.matches(prevEntry)) {
/dalvik/libcore/luni/src/main/java/java/lang/
H A DString.java1972 * Determines whether this string matches a given regular expression.
1976 * @return {@code true} if the expression matches, otherwise {@code false}.
1984 public boolean matches(String expr) { method in class:String
1985 return Pattern.matches(expr, this);
2008 * Replace the first substring within this string that matches the supplied
2034 * matches of the regular expression.
2057 * matches of the regular expression.

Completed in 630 milliseconds

12