HomeSort by relevance Sort by last modified time
    Searched refs:matches (Results 1 - 25 of 771) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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);
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/RegExp/
regress-001.js 33 for ( var matches = 0; matches < matches_array.length; matches++ ) {
35 "( " + str_regexp + " )[" + matches +"]",
36 matches_array[matches],
37 regexp[matches] );
unicode-001.js 47 for ( var matches = 0; matches < matches_array.length; matches++ ) {
49 str_regexp + " .exec(" + str_pattern +")[" + matches +"]",
50 matches_array[matches],
51 regexp.exec(pattern)[matches] );
  /sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/
TypographyDetectorTest.java 56 assertTrue(SINGLE_QUOTE.matcher("Foo: 'bar'").matches()); method
57 assertTrue(SINGLE_QUOTE.matcher("'Foo': bar").matches()); method
58 assertTrue(SINGLE_QUOTE.matcher("\"'foo'\"").matches()); method
59 assertTrue(SINGLE_QUOTE.matcher("\"'foo bar'\"").matches()); method
61 assertFalse(SINGLE_QUOTE.matcher("foo bar'").matches()); method
62 assertFalse(SINGLE_QUOTE.matcher("Mind your P's and Q's").matches()); method
67 //assertFalse(SINGLE_QUOTE.matcher("'foo bar'").matches());
71 assertTrue(GRAVE_QUOTATION.matcher("`a'").matches()); method
72 assertTrue(GRAVE_QUOTATION.matcher(" `a' ").matches()); method
73 assertTrue(GRAVE_QUOTATION.matcher(" ``a'' ").matches()); method
74 assertFalse(GRAVE_QUOTATION.matcher("`a''").matches()); method
78 assertTrue(FRACTION_PATTERN.matcher("fraction 1\/2.").matches()); method
79 assertTrue(FRACTION_PATTERN.matcher("1\/2").matches()); method
80 assertTrue(FRACTION_PATTERN.matcher("1\/3").matches()); method
81 assertTrue(FRACTION_PATTERN.matcher("1\/4").matches()); method
82 assertTrue(FRACTION_PATTERN.matcher("3\/4").matches()); method
83 assertTrue(FRACTION_PATTERN.matcher("1 \/ 2").matches()); method
84 assertTrue(FRACTION_PATTERN.matcher("1 \/ 3").matches()); method
85 assertTrue(FRACTION_PATTERN.matcher("1 \/ 4").matches()); method
86 assertTrue(FRACTION_PATTERN.matcher("3 \/ 4").matches()); method
88 assertFalse(FRACTION_PATTERN.matcher("3 \/\/ 4").matches()); method
89 assertFalse(FRACTION_PATTERN.matcher("11 \/ 2").matches()); method
90 assertFalse(FRACTION_PATTERN.matcher("1 \/ 22").matches()); method
94 assertTrue(HYPHEN_RANGE_PATTERN.matcher("3-4").matches()); method
95 assertTrue(HYPHEN_RANGE_PATTERN.matcher("13- 14").matches()); method
96 assertTrue(HYPHEN_RANGE_PATTERN.matcher("13 - 14").matches()); method
97 assertTrue(HYPHEN_RANGE_PATTERN.matcher("The range is 13 - 14").matches()); method
98 assertTrue(HYPHEN_RANGE_PATTERN.matcher("13 - 14.").matches()); method
100 assertFalse(HYPHEN_RANGE_PATTERN.matcher("13 - x").matches()); method
101 assertFalse(HYPHEN_RANGE_PATTERN.matcher("x - 14").matches()); method
102 assertFalse(HYPHEN_RANGE_PATTERN.matcher("x-y").matches()); method
103 assertFalse(HYPHEN_RANGE_PATTERN.matcher("-y").matches()); method
104 assertFalse(HYPHEN_RANGE_PATTERN.matcher("x-").matches()); method
    [all...]
  /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/webkit/Source/JavaScriptCore/tests/mozilla/ecma_2/String/
match-001.js 78 for ( var matches = 0; matches < matches_array.length; matches++ ) {
80 "( " + string + " ).match(" + str_regexp +")[" + matches +"]",
81 matches_array[matches],
82 string.match(regexp)[matches] );
94 for ( var matches = 0; matches < matches_array.length; matches++ ) {
96 "( " + string + " ).match(" + str_regexp +")[" + matches +"]"
    [all...]
split-001.js 72 for ( var matches = 0; matches < split_array.length; matches++ ) {
74 "( " + string + " ).split(" + str_sep +")[" + matches +"]",
75 split_array[matches],
76 string.split( separator )[matches] );
100 for ( var matches = 0; matches < split_array.length; matches++ ) {
102 "( " + string + " ).split(" + str_sep +", " + str_limit + " )[" + matches +"]"
    [all...]
match-004.js 130 for ( var matches = 0; matches < limit; matches++ ) {
132 "( " + string + " ).match(" + str_regexp +")[" + matches +"]",
133 matches_array[matches],
134 string.match(regexp)[matches] );
161 for ( var matches = 0; matches < limit; matches++ ) {
163 "( " + string + " ).match(" + str_regexp +")[" + matches +"]"
    [all...]
split-003.js 80 for ( var matches = 0; matches < split_array.length; matches++ ) {
82 "( " + string + " ).split(" + str_sep +")[" + matches +"]",
83 split_array[matches],
84 string.split( separator )[matches] );
111 for ( var matches = 0; matches < slimit; matches++ ) {
113 "( " + string + " ).split(" + str_sep +", " + limit + " )[" + matches +"]"
    [all...]
match-002.js 131 for ( var matches = 0; matches < limit; matches++ ) {
133 "( " + string + " ).match(" + str_regexp +")[" + matches +"]",
134 matches_array[matches],
135 string.match(regexp)[matches] );
162 for ( var matches = 0; matches < limit; matches++ ) {
164 "( " + string + " ).match(" + str_regexp +")[" + matches +"]"
    [all...]
  /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/chrome/browser/history/
visit_database_unittest.cc 88 std::vector<VisitRow> matches; local
89 EXPECT_TRUE(GetVisitsForURL(visit_info1.url_id, &matches));
90 EXPECT_EQ(static_cast<size_t>(2), matches.size());
93 EXPECT_TRUE(IsVisitInfoEqual(matches[0], visit_info1) &&
94 IsVisitInfoEqual(matches[1], visit_info2));
117 std::vector<VisitRow> matches; local
118 EXPECT_TRUE(GetVisitsForURL(visit_info1.url_id, &matches));
119 EXPECT_EQ(static_cast<size_t>(3), matches.size());
120 EXPECT_TRUE(IsVisitInfoEqual(matches[0], visit_info1) &&
121 IsVisitInfoEqual(matches[1], visit_info2) &
240 std::vector<VisitRow> matches; local
    [all...]
  /device/samsung/crespo4g/
releasetools.py 32 matches = []
36 matches.append((name, m.group(1)))
37 if len(matches) > 1:
39 if matches:
40 matches = matches[0]
41 print "using %s as %s" % matches
42 return common.File(matches[1], zipfile.read(matches[0]))
  /external/apache-http/src/org/apache/http/conn/util/
InetAddressUtils.java 57 return IPV4_PATTERN.matcher(input).matches();
61 return IPV6_STD_PATTERN.matcher(input).matches();
65 return IPV6_HEX_COMPRESSED_PATTERN.matcher(input).matches();
  /external/chromium/chrome/browser/bookmarks/
bookmark_index_unittest.cc 53 std::vector<bookmark_utils::TitleMatch> matches; local
54 model_->GetBookmarksWithTitlesMatching(ASCIIToUTF16(query), 1000, &matches); local
55 ASSERT_EQ(expected_titles.size(), matches.size());
58 for (size_t j = 0; j < matches.size(); ++j) {
59 if (ASCIIToUTF16(expected_titles[i]) == matches[j].node->GetTitle()) {
60 matches.erase(matches.begin() + j);
70 Snippet::MatchPositions* matches) {
77 matches->push_back(Snippet::MatchPosition());
81 matches->back().first = chunks0
88 std::vector<bookmark_utils::TitleMatch> matches; local
89 model_->GetBookmarksWithTitlesMatching(ASCIIToUTF16(query), 1000, &matches); local
203 std::vector<bookmark_utils::TitleMatch> matches; local
215 std::vector<bookmark_utils::TitleMatch> matches; local
282 std::vector<bookmark_utils::TitleMatch> matches; local
    [all...]

Completed in 482 milliseconds

1 2 3 4 5 6 7 8 91011>>