/external/proguard/src/proguard/util/ |
ConstantMatcher.java | 24 * This StringMatcher matches any string or no string at all. 30 private boolean matches; field in class:ConstantMatcher 36 public ConstantMatcher(boolean matches) 38 this.matches = matches; 44 public boolean matches(String string) method in class:ConstantMatcher 46 return matches;
|
StringMatcher.java | 33 * Checks whether the given string matches. 35 * @return a boolean indicating whether the string matches the criterion. 37 public boolean matches(String string); method in interface:StringMatcher
|
NotMatcher.java | 42 public boolean matches(String string) method in class:NotMatcher 44 return !matcher.matches(string);
|
SettableMatcher.java | 42 public boolean matches(String string) method in class:SettableMatcher 44 return matcher.matches(string);
|
EmptyStringMatcher.java | 32 public boolean matches(String string) method in class:EmptyStringMatcher
|
AndMatcher.java | 24 * This StringMatcher tests whether strings matches both given StringMatcher 44 public boolean matches(String string) method in class:AndMatcher 46 return matcher1.matches(string) && 47 matcher2.matches(string);
|
OrMatcher.java | 24 * This StringMatcher tests whether strings matches either of the given 44 public boolean matches(String string) method in class:OrMatcher 46 return matcher1.matches(string) || 47 matcher2.matches(string);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
PatternsTest.java | 31 t = Patterns.TOP_LEVEL_DOMAIN.matcher("com").matches(); 35 t = Patterns.TOP_LEVEL_DOMAIN.matcher("me").matches(); 39 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn--0zwm56d").matches(); 43 t = Patterns.TOP_LEVEL_DOMAIN.matcher("\uD55C\uAD6D").matches(); 46 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches(); 49 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches(); 52 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches(); 60 t = Patterns.WEB_URL.matcher("http://www.google.com").matches(); 64 t = Patterns.WEB_URL.matcher("http://www.google.me").matches(); 66 t = Patterns.WEB_URL.matcher("google.me").matches(); [all...] |
/external/easymock/src/org/easymock/ |
IArgumentMatcher.java | 37 boolean matches(Object argument);
method in interface:IArgumentMatcher
|
ArgumentsMatcher.java | 35 * Matches two arrays of arguments.
43 boolean matches(Object[] expected, Object[] actual);
method in interface:ArgumentsMatcher
|
/external/hamcrest/src/org/hamcrest/ |
Matcher.java | 26 * This method matches against Object, instead of the generic type T. This is 32 * @return <code>true</code> if <var>item</var> matches, otherwise <code>false</code>. 36 boolean matches(Object item); method in interface:Matcher
|
/external/chromium/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/ |
contentscript.js | 7 matches = document.body.innerText.match(regex); 8 if (matches) { 10 count: matches.length // Pass the number of matches back.
|
/external/chromium_org/chrome/common/extensions/manifest_handlers/ |
externally_connectable_unittest.cc | 52 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://example.com"))); 53 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://example.com/"))); 54 EXPECT_FALSE(info->matches.MatchesURL(GURL("http://example.com/index.html"))); 56 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://google.com"))); 57 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://google.com/"))); 58 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://google.com/index.html"))); 59 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.google.com"))); 60 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.google.com/"))); 61 EXPECT_TRUE(info->matches.MatchesURL(GURL("https://google.com"))); 62 EXPECT_TRUE(info->matches.MatchesURL(GURL("https://google.com/"))) [all...] |
/external/chromium_org/extensions/common/matcher/ |
substring_set_matcher_unittest.cc | 28 std::set<int> matches; local 29 matcher.Match(test_string, &matches); 32 EXPECT_EQ(expected_matches, matches.size()) << test; 33 EXPECT_EQ(is_match, matches.find(1) != matches.end()) << test; 59 std::set<int> matches; local 60 matcher.Match(test_string, &matches); 63 EXPECT_EQ(expected_matches, matches.size()) << test; 64 EXPECT_EQ(is_match_1, matches.find(1) != matches.end()) << test 139 std::set<int> matches; local 164 std::set<int> matches; local [all...] |
/external/clang/unittests/ASTMatchers/Dynamic/ |
RegistryTest.cpp | 82 EXPECT_TRUE(matches(ClassSnippet, IsArrowValue)); 83 EXPECT_TRUE(matches(BoolSnippet, BoolValue)); 84 EXPECT_FALSE(matches(ClassSnippet, BoolValue)); 85 EXPECT_FALSE(matches(BoolSnippet, IsArrowValue)); 92 EXPECT_TRUE(matches("class X {};", Value)); 93 EXPECT_FALSE(matches("int x;", Value)); 97 EXPECT_TRUE(matches("void foo(int,int);", Value)); 98 EXPECT_FALSE(matches("void foo(int);", Value)); 110 EXPECT_FALSE(matches(code, HasInitializerSimple)); 111 EXPECT_FALSE(matches(code, HasInitializerComplex)) [all...] |
/external/chromium_org/rlz/lib/ |
crc8_unittest.cc | 32 bool matches; local 37 matches = false; 43 rlz_lib::Crc8::Verify(bytes, length, crc, &matches); 44 EXPECT_TRUE(matches); 46 // Corrupt string and see if CRC still matches. 48 rlz_lib::Crc8::Verify(bytes, length, crc, &matches); 49 EXPECT_FALSE(matches);
|
crc8.h | 20 bool * matches);
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
Pattern2Test.java | 106 private void testCategory(String cat, String... matches) { 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...] |
/external/clang/unittests/ASTMatchers/ |
ASTMatchersTest.cpp | 45 EXPECT_TRUE(matches("namespace x { class X {}; } using x::X;", 51 EXPECT_TRUE(matches("typedef int X;", NamedX)); 52 EXPECT_TRUE(matches("int X;", NamedX)); 53 EXPECT_TRUE(matches("class foo { virtual void X(); };", NamedX)); 54 EXPECT_TRUE(matches("void foo() try { } catch(int X) { }", NamedX)); 55 EXPECT_TRUE(matches("void foo() { int X; }", NamedX)); 56 EXPECT_TRUE(matches("namespace X { }", NamedX)); 57 EXPECT_TRUE(matches("enum X { A, B, C };", NamedX)); 64 EXPECT_TRUE(matches("typedef int Xa;", NamedX)); 65 EXPECT_TRUE(matches("int Xb;", NamedX)) [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/ |
contentscript.js | 6 matches = document.body.innerText.match(regex); 7 if (matches) { 9 count: matches.length // Pass the number of matches back.
|
/external/iproute2/ip/ |
rtm_map.c | 68 else if (matches(arg, "broadcast") == 0 || 71 else if (matches(arg, "anycast") == 0) 73 else if (matches(arg, "multicast") == 0) 75 else if (matches(arg, "prohibit") == 0) 77 else if (matches(arg, "unreachable") == 0) 79 else if (matches(arg, "blackhole") == 0) 81 else if (matches(arg, "xresolve") == 0) 83 else if (matches(arg, "unicast") == 0)
|
/external/chromium_org/extensions/common/ |
event_filter_unittest.cc | 63 std::set<int> matches = event_filter_.MatchEvent("some-event", local 66 ASSERT_EQ(0u, matches.size()); 76 std::set<int> matches = event_filter_.MatchEvent("event2", local 79 ASSERT_EQ(0u, matches.size()); 84 std::set<int> matches = event_filter_.MatchEvent("event1", local 86 ASSERT_EQ(1u, matches.size()); 87 ASSERT_EQ(1u, matches.count(id)); 94 std::set<int> matches = event_filter_.MatchEvent( local 96 ASSERT_TRUE(matches.empty()); 102 std::set<int> matches = event_filter_.MatchEvent("event1" local 111 std::set<int> matches = event_filter_.MatchEvent("event1", local 123 std::set<int> matches = event_filter_.MatchEvent( local 138 std::set<int> matches = event_filter_.MatchEvent("event1", local 144 std::set<int> matches = event_filter_.MatchEvent("event1", local 150 std::set<int> matches = event_filter_.MatchEvent("event1", local 162 std::set<int> matches = event_filter_.MatchEvent("event1", local 174 std::set<int> matches = event_filter_.MatchEvent("event1", local 218 std::set<int> matches = event_filter_.MatchEvent("event1", local 236 std::set<int> matches = event_filter_.MatchEvent( local 247 std::set<int> matches = event_filter_.MatchEvent( local [all...] |
/external/iproute2/tc/ |
m_csum.c | 49 if ((matches(*argv, "iph") == 0) || 50 (matches(*argv, "ip4h") == 0) || 51 (matches(*argv, "ipv4h") == 0)) 54 else if (matches(*argv, "icmp") == 0) 57 else if (matches(*argv, "igmp") == 0) 60 else if (matches(*argv, "tcp") == 0) 63 else if (matches(*argv, "udp") == 0) 66 else if (matches(*argv, "udplite") == 0) 69 else if ((matches(*argv, "and") == 0) || 70 (matches(*argv, "or") == 0) | [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/tests/ |
rc_test_helpers.c | 30 static int match_length(regmatch_t * matches, int index) 32 return matches[index].rm_eo - matches[index].rm_so; 38 regmatch_t * matches, 53 err_code = regexec(®ex, search_str, num_matches, matches, 0); 57 matches[i].rm_so, matches[i].rm_eo); 94 regmatch_t matches[REGEX_SRC_MATCHES]; local 100 if (!regex_helper(regex_str, src_str, matches, REGEX_SRC_MATCHES)) { 106 tokens.Negate.String = src_str + matches[1].rm_so 221 regmatch_t matches[REGEX_DST_MATCHES]; local 320 regmatch_t matches[REGEX_INST_MATCHES]; local [all...] |
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
rc_test_helpers.c | 30 static int match_length(regmatch_t * matches, int index) 32 return matches[index].rm_eo - matches[index].rm_so; 38 regmatch_t * matches, 53 err_code = regexec(®ex, search_str, num_matches, matches, 0); 57 matches[i].rm_so, matches[i].rm_eo); 94 regmatch_t matches[REGEX_SRC_MATCHES]; local 100 if (!regex_helper(regex_str, src_str, matches, REGEX_SRC_MATCHES)) { 106 tokens.Negate.String = src_str + matches[1].rm_so 221 regmatch_t matches[REGEX_DST_MATCHES]; local 320 regmatch_t matches[REGEX_INST_MATCHES]; local [all...] |