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

1234567891011>>

/external/proguard/src/proguard/util/
H A DConstantMatcher.java24 * This StringMatcher matches any string or no string at all.
30 private boolean matches; field in class:ConstantMatcher
36 public ConstantMatcher(boolean matches) argument
38 this.matches = matches;
44 public boolean matches(String string) method in class:ConstantMatcher
46 return matches;
H A DStringMatcher.java33 * 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
H A DNotMatcher.java42 public boolean matches(String string) method in class:NotMatcher
44 return !matcher.matches(string);
H A DSettableMatcher.java42 public boolean matches(String string) method in class:SettableMatcher
44 return matcher.matches(string);
H A DEmptyStringMatcher.java32 public boolean matches(String string) method in class:EmptyStringMatcher
H A DAndMatcher.java24 * 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);
H A DOrMatcher.java24 * 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);
/external/chromium_org/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/
H A Dcontentscript.js6 matches = document.body.innerText.match(regex);
7 if (matches) {
9 count: matches.length // Pass the number of matches back.
/external/easymock/src/org/easymock/
H A DIArgumentMatcher.java37 boolean matches(Object argument); method in interface:IArgumentMatcher
H A DArgumentsMatcher.java43 boolean matches(Object[] expected, Object[] actual); method in interface:ArgumentsMatcher
/external/hamcrest/src/org/hamcrest/
H A DMatcher.java26 * 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_org/components/url_matcher/
H A Dsubstring_set_matcher_unittest.cc28 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
140 std::set<int> matches; local
165 std::set<int> matches; local
[all...]
/external/chromium_org/chrome/browser/resources/options/chromeos/
H A Dinternet_detail_ip_address_field.js9 * The regular expression that matches an IP address. String to match against
61 var matches = singleIp_.exec(fieldValue);
63 if (matches != null) {
64 for (var i = 1; i < matches.length; ++i) {
65 var value = parseInt(matches[i], 10);
72 return this.editField.validity.valid && matches != null &&
73 rangeCorrect && matches.length == 5;
95 var matches = singleIp_.exec(fieldValue);
98 // If we got this far, matches shouldn't be null, but make sure.
99 if (matches !
[all...]
H A Daccounts_user_name_edit.js78 var matches = format1.exec(str);
79 if (matches) {
81 name: matches[1],
82 email: matches[1] + '@gmail.com'
86 matches = format2.exec(str);
87 if (matches) {
89 name: matches[1],
90 email: matches[1] + '@' + matches[2]
94 matches
[all...]
/external/chromium_org/extensions/common/manifest_handlers/
H A Dexternally_connectable_unittest.cc52 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
[all...]
/external/chromium_org/rlz/lib/
H A Dcrc8_unittest.cc32 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);
/external/chromium_org/v8/test/webkit/
H A Dregexp-in-and-foreach-handling.js43 matches = re.exec(str);
45 for (var j = 0; j < matches.length; j++) {
46 if (j in matches) {
47 inArray.push(matches[j]);
58 matches = re.exec(str);
60 matches.forEach(function(m) {
/external/clang/unittests/ASTMatchers/
H A DASTMatchersTest.cpp60 EXPECT_TRUE(matches("namespace x { class X {}; } using x::X;",
66 EXPECT_TRUE(matches("typedef int X;", NamedX));
67 EXPECT_TRUE(matches("int X;", NamedX));
68 EXPECT_TRUE(matches("class foo { virtual void X(); };", NamedX));
69 EXPECT_TRUE(matches("void foo() try { } catch(int X) { }", NamedX));
70 EXPECT_TRUE(matches("void foo() { int X; }", NamedX));
71 EXPECT_TRUE(matches("namespace X { }", NamedX));
72 EXPECT_TRUE(matches("enum X { A, B, C };", NamedX));
79 EXPECT_TRUE(matches("typedef int Xa;", NamedX));
80 EXPECT_TRUE(matches("in
[all...]
/external/chromium_org/components/history/core/browser/
H A Dhistory_types_unittest.cc20 const size_t* matches = result.MatchesForURL(result[i].url(), &match_count); local
24 if (matches[match] == i) {
64 const size_t* matches = results.MatchesForURL(url1, &match_count); local
66 EXPECT_TRUE((matches[0] == 0 && matches[1] == 1) ||
67 (matches[0] == 1 && matches[1] == 0));
70 matches = results.MatchesForURL(url2, &match_count);
72 EXPECT_TRUE(matches[0] == 2);
79 matches
108 const size_t* matches = results.MatchesForURL(url2, &match_count); local
[all...]
/external/chromium_org/tools/gn/
H A Dcommand_ls.cc77 std::vector<const Target*> matches; local
81 &matches))
85 matches = setup->builder()->GetAllResolvedTargets();
92 matches.push_back(all_targets[i]);
98 for (size_t i = 0; i < matches.size(); i++) {
99 OutputString(matches[i]->dependency_output_file().value());
105 for (size_t i = 0; i < matches.size(); i++)
106 sorted_matches.push_back(matches[i]->label());
/external/chromium_org/v8/test/mjsunit/regress/
H A Dregress-regexp-construct-result.js41 var matches = regexp.exec("a");
43 matches.forEach(function() { count++; });
/external/iproute2/ip/
H A Drtm_map.c68 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/
H A Devent_filter_unittest.cc69 std::set<int> matches = event_filter_.MatchEvent("some-event", local
72 ASSERT_EQ(0u, matches.size());
82 std::set<int> matches = event_filter_.MatchEvent("event2", local
85 ASSERT_EQ(0u, matches.size());
90 std::set<int> matches = event_filter_.MatchEvent("event1", local
92 ASSERT_EQ(1u, matches.size());
93 ASSERT_EQ(1u, matches.count(id));
100 std::set<int> matches = event_filter_.MatchEvent( local
102 ASSERT_TRUE(matches.empty());
108 std::set<int> matches local
117 std::set<int> matches = event_filter_.MatchEvent("event1", local
129 std::set<int> matches = event_filter_.MatchEvent( local
144 std::set<int> matches = event_filter_.MatchEvent("event1", local
150 std::set<int> matches = event_filter_.MatchEvent("event1", local
156 std::set<int> matches = event_filter_.MatchEvent("event1", local
168 std::set<int> matches = event_filter_.MatchEvent("event1", local
180 std::set<int> matches = event_filter_.MatchEvent("event1", local
224 std::set<int> matches = event_filter_.MatchEvent("event1", local
242 std::set<int> matches = event_filter_.MatchEvent( local
253 std::set<int> matches = event_filter_.MatchEvent( local
[all...]
/external/iproute2/tc/
H A Dm_csum.c49 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(*arg
[all...]
/external/chromium_org/components/omnibox/
H A Dautocomplete_result_unittest.cc47 // Adds |count| AutocompleteMatches to |matches|.
51 ACMatches* matches) {
52 ASSERT_TRUE(matches != NULL);
57 matches->empty() ? 1300 : (matches->back().relevance - 100);
60 matches->push_back(match);
79 // Duplicate matches.
105 // Adds |count| AutocompleteMatches to |matches|.
108 ACMatches* matches);
110 // Asserts that |result| has |expected_count| matches matchin
48 PopulateAutocompleteMatchesFromTestData( const AutocompleteMatchTestData* data, size_t count, ACMatches* matches) argument
144 PopulateAutocompleteMatches( const TestData* data, size_t count, ACMatches* matches) argument
209 ACMatches matches; local
288 ACMatches matches; local
333 ACMatches matches; local
385 ACMatches matches; local
425 ACMatches matches; local
472 ACMatches matches; local
532 ACMatches matches; local
547 ACMatches matches; local
580 ACMatches matches; local
606 ACMatches matches; local
628 ACMatches matches; local
644 ACMatches matches; local
665 ACMatches matches; local
689 ACMatches matches; local
711 ACMatches matches; local
736 ACMatches matches; local
768 ACMatches matches; local
799 ACMatches matches; local
808 ACMatches matches; local
[all...]

Completed in 598 milliseconds

1234567891011>>