/dalvik/tests/094-pattern/src/ |
Main.java | 81 System.out.println("str1 matches: " + WEB_URL.matcher(testStr1).matches()); 82 System.out.println("str2 matches: " + WEB_URL.matcher(testStr2).matches()); 83 System.out.println("str3 matches: " + WEB_URL.matcher(testStr3).matches());
|
/external/emma/core/java12/com/vladium/util/ |
WCMatcher.java | 71 public abstract boolean matches (String s); method in class:WCMatcher 72 public abstract boolean matches (char [] chars); method in class:WCMatcher 75 // private boolean matches (int pi, int si, final char [] string) 87 // return (si < string.length) && matches (pi + 1, si + 1, string); 92 // return matches (pi + 1, si, string) || ((si < string.length) && matches (pi, si + 1, string)); 97 // return (si < string.length) && (m_pattern [pi] == string [si]) && matches (pi + 1, si + 1, string); 118 public final boolean matches (final String s) method in class:WCMatcher.AllMatcher 125 public final boolean matches (final char [] chars) method in class:WCMatcher.AllMatcher 137 public final boolean matches (final String s method in class:WCMatcher.EmptyMatcher 144 public final boolean matches (final char [] chars) method in class:WCMatcher.EmptyMatcher 156 public final boolean matches (final String s) method in class:WCMatcher.StartsWithMatcher 163 public final boolean matches (final char [] chars) method in class:WCMatcher.StartsWithMatcher 194 public final boolean matches (final String s) method in class:WCMatcher.EndsWithMatcher 201 public final boolean matches (final char [] chars) method in class:WCMatcher.EndsWithMatcher 233 public final boolean matches (final String s) method in class:WCMatcher.PatternMatcher 293 public final boolean matches (final char [] string) method in class:WCMatcher.PatternMatcher [all...] |
/external/iproute2/tc/ |
m_skbedit.c | 63 if (matches(*argv, "skbedit") != 0) 69 if (matches(*argv, "queue_mapping") == 0) { 78 } else if (matches(*argv, "priority") == 0) { 86 } else if (matches(*argv, "mark") == 0) { 94 } else if (matches(*argv, "help") == 0) { 104 if (matches(*argv, "reclassify") == 0) { 107 } else if (matches(*argv, "pipe") == 0) { 110 } else if (matches(*argv, "drop") == 0 || 111 matches(*argv, "shot") == 0) { 114 } else if (matches(*argv, "continue") == 0) [all...] |
m_nat.c | 53 if (matches(*argv, "egress") == 0) 55 else if (matches(*argv, "ingress") != 0) 97 if (matches(*argv, "nat") == 0) { 107 } else if (matches(*argv, "help") == 0) { 121 if (matches(*argv, "reclassify") == 0) { 125 } else if (matches(*argv, "pipe") == 0) { 129 } else if (matches(*argv, "drop") == 0 || 130 matches(*argv, "shot") == 0) { 134 } else if (matches(*argv, "continue") == 0) { 138 } else if (matches(*argv, "pass") == 0) [all...] |
tc.c | 223 if (matches(*argv, "qdisc") == 0) 226 if (matches(*argv, "class") == 0) 229 if (matches(*argv, "filter") == 0) 232 if (matches(*argv, "actions") == 0) 235 if (matches(*argv, "monitor") == 0) 238 if (matches(*argv, "help") == 0) { 305 if (matches(argv[1], "-stats") == 0 || 306 matches(argv[1], "-statistics") == 0) { 308 } else if (matches(argv[1], "-details") == 0) { 310 } else if (matches(argv[1], "-raw") == 0) [all...] |
/external/chromium/chrome/browser/autocomplete/ |
history_url_provider.cc | 54 // Innermost matches (matches after any scheme or "www.") are better than 55 // non-innermost matches. 80 // match's URL to just a host. If this host still matches the user input, 91 // Transform to a host-only match. Bail if the host no longer matches the 131 // here; some clever caching would let us reuse the raw matches from the 208 // need to promote lower-quality matches that are prefixes of 209 // higher-quality matches, and remove lower-quality redirects. So we ask 233 // converting the rest of the matches. 245 params->matches.push_back(what_you_typed_match) [all...] |
history_url_provider.h | 55 // This pass promotes matches for inline autocomplete if applicable. We do 61 // two passes, so we can't just decide to use this pass' matches as the final 115 // List of matches written by the history thread. We keep this separate list 116 // to avoid having the main thread read the provider's matches while the 119 ACMatches matches; member in struct:HistoryURLProviderParams 195 // match's URL to just a host. If this host still matches the user input, 201 // place it at the front of |matches|. This can suggest history URLs that 212 history::HistoryMatches* matches); 214 // Ensures that |matches| contains an entry for |info|, which may mean adding 218 // |matches|, moving or adding it to the front as appropriate. Whe [all...] |
history_contents_provider_unittest.cc | 52 const ACMatches& matches() const { return provider_->matches(); } function in class:__anon3257::HistoryContentsProviderTest 115 const ACMatches& m = matches(); 129 const ACMatches& m = matches(); 144 const ACMatches& m1 = matches(); 151 const ACMatches& m2 = matches(); 157 const ACMatches& m3 = matches(); 175 const ACMatches& m1 = matches(); 185 const ACMatches& m2 = matches(); 193 const ACMatches& m3 = matches(); [all...] |
/external/apache-harmony/regex/src/test/java/org/apache/harmony/tests/java/util/regex/ |
PatternTest.java | 51 assertTrue(p.matcher("abcd").matches()); method 166 assertFalse(mat.matches()); 172 assertTrue(mat.matches()); 178 assertTrue(mat.matches()); 184 assertTrue(mat.matches()); 190 assertTrue(mat.matches()); 196 assertFalse(mat.matches()); 202 assertFalse(mat.matches()); 208 assertTrue(mat.matches()); 214 assertTrue(mat.matches()); 741 assertTrue(pat.matcher("bBbBaaaa").matches()); method 742 assertFalse(pat.matcher("bBbBAaAa").matches()); method 746 assertTrue(pat.matcher("bBbBaaaa").matches()); method 747 assertFalse(pat.matcher("bBbBAaAa").matches()); method 767 assertTrue(pat.matcher("a.b.c.log").matches()); method 768 assertFalse(pat.matcher("a.b.c.log.").matches()); method 772 assertFalse(pat.matcher("abc.log").matches()); method 773 assertTrue(pat.matcher("abc.logg").matches()); method 777 assertFalse(pat.matcher("cde.log").matches()); method 778 assertTrue(pat.matcher("abc.log").matches()); method 782 assertTrue(pat.matcher("cde.log").matches()); method 783 assertFalse(pat.matcher("abc.log").matches()); method 787 assertFalse(pat.matcher("aaabb").matches()); method 789 assertTrue(pat.matcher("aaabb").matches()); method 792 assertTrue(pat.matcher("aaabb").matches()); method 794 assertFalse(pat.matcher("aaabb").matches()); method 798 assertTrue(pat.matcher("cde.log").matches()); method 800 assertFalse(pat.matcher("cde.log").matches()); method [all...] |
/external/chromium/chrome/browser/history/ |
snippet.h | 25 // The information is encoded in the string as a set of matches, where each 28 // from other matches. 49 // Given |matches|, the match positions within |document|, compute the snippet 51 // Note that |document| is UTF-8 and the offsets in |matches| are byte 53 void ComputeSnippet(const MatchPositions& matches, 57 const MatchPositions& matches() const { return matches_; } function in class:Snippet 66 // The matches within text_.
|
snippet_unittest.cc | 89 // |query| against |document|. Matches are surrounded by "**". 122 // Now "highlight" all matches in the snippet with **. 126 for (match = snippet.matches().begin(); 127 match != snippet.matches().end(); ++match) { 244 Snippet::MatchPositions matches; local 245 Snippet::ExtractMatchPositions(data[i].offsets_string, "0", &matches); 246 EXPECT_EQ(data[i].expected_match_count, matches.size()); 248 EXPECT_EQ(data[i].expected_matches[2 * j], matches[j].first); 249 EXPECT_EQ(data[i].expected_matches[2 * j + 1], matches[j].second);
|
/external/easymock/src/org/easymock/internal/ |
ErrorMessage.java | 44 public void appendTo(StringBuilder buffer, int matches) {
47 if (matches == 1) {
|
ArrayMatcher.java | 28 return new ArrayEquals(expected).matches(actual);
|
/external/llvm/include/llvm/TableGen/ |
StringMatcher.h | 29 /// not exit this code fragment. If nothing matches, execution falls through. 36 const std::vector<StringPair> &Matches; 41 const std::vector<StringPair> &matches, raw_ostream &os) 42 : StrVariableName(strVariableName), Matches(matches), OS(os) {} 48 bool EmitStringMatcherForChar(const std::vector<const StringPair*> &Matches,
|
/external/proguard/src/proguard/util/ |
ListMatcher.java | 52 public boolean matches(String string) method in class:ListMatcher 58 if (matcher.matches(string))
|
/external/webkit/Source/WebCore/css/ |
MediaQueryList.h | 45 bool matches(); 53 MediaQueryList(PassRefPtr<MediaQueryMatcher>, PassRefPtr<MediaList>, bool matches);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
DebugTest.java | 42 assertTrue(callDepth0().matches(EXPECTED_GET_CALLER)); 65 assertTrue(callDepth1().matches(EXPECTED_GET_CALLERS));
|
/external/iproute2/ip/ |
iptuntap.c | 116 if (matches(*argv, "mode") == 0) { 118 if (matches(*argv, "tun") == 0) { 124 } else if (matches(*argv, "tap") == 0) { 134 } else if (uid && matches(*argv, "user") == 0) { 149 } else if (gid && matches(*argv, "group") == 0) { 165 } else if (matches(*argv, "pi") == 0) { 167 } else if (matches(*argv, "one_queue") == 0) { 169 } else if (matches(*argv, "vnet_hdr") == 0) { 171 } else if (matches(*argv, "dev") == 0) { 175 if (matches(*argv, "name") == 0) [all...] |
/external/easymock/src/org/easymock/internal/matchers/ |
Any.java | 32 public boolean matches(Object actual) {
method in class:Any
|
NotNull.java | 32 public boolean matches(Object actual) {
method in class:NotNull
|
Null.java | 31 public boolean matches(Object actual) {
method in class:Null
|
/external/proguard/src/proguard/io/ |
DataEntryNameFilter.java | 52 return dataEntry != null && stringMatcher.matches(dataEntry.getName());
|
/external/webkit/Source/WebCore/platform/text/ |
TextEncodingDetectorICU.cpp | 76 const UCharsetMatch** matches = ucsdet_detectAll(detector, &matchesCount, &status); 95 int32_t confidence = ucsdet_getConfidence(matches[i], &status); 102 const char* matchEncoding = ucsdet_getName(matches[i], &status); 118 encoding = ucsdet_getName(matches[0], &status);
|
/external/webkit/Source/WebKit/win/Interfaces/ |
IWebUserContentURLPattern.idl | 42 HRESULT matchesSubdomains([out, retval] BOOL* matches); 43 HRESULT matchesURL([in] BSTR url, [out, retval] BOOL* matches);
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
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() agrees after a reset() * 255 assertTrue(EMAIL_ADDRESS_PATTERN.matcher("a+b@gmail.com").matches()); method [all...] |