Searched refs:matcher (Results 101 - 125 of 282) sorted by relevance

1234567891011>>

/external/guava/guava/src/com/google/common/base/
H A DSplitter.java136 * @return a splitter, with default settings, that uses this matcher
212 checkArgument(!separatorPattern.matcher("").matches(),
218 final Matcher matcher = separatorPattern.matcher(toSplit);
221 return matcher.find(start) ? matcher.start() : -1;
225 return matcher.end();
/external/hamcrest/src/org/hamcrest/
H A DCoreMatchers.java13 public static <T> org.hamcrest.Matcher<T> is(org.hamcrest.Matcher<T> matcher) { argument
14 return org.hamcrest.core.Is.is(matcher);
40 public static <T> org.hamcrest.Matcher<T> not(org.hamcrest.Matcher<T> matcher) { argument
41 return org.hamcrest.core.IsNot.not(matcher);
108 * This matcher always evaluates to true.
115 * This matcher always evaluates to true.
124 * This matcher always evaluates to true. With type inference.
159 * Wraps an existing matcher and overrides the description when it fails.
161 public static <T> org.hamcrest.Matcher<T> describedAs(java.lang.String description, org.hamcrest.Matcher<T> matcher, java.lang.Object... values) { argument
162 return org.hamcrest.core.DescribedAs.describedAs(description, matcher, value
[all...]
/external/chromium_org/extensions/browser/api/declarative/
H A Ddeclarative_rule_unittest.cc71 URLMatcher matcher; local
78 NULL, matcher.condition_factory(), conditions, &error);
84 URLMatcher matcher; local
92 NULL, matcher.condition_factory(), conditions, &error);
97 EXPECT_EQ(matcher.condition_factory(), result->conditions()[0]->factory);
193 << "Tests a condition with a url matcher, for a matching value.";
196 << "Tests a condition with a url matcher, for a non-matching value "
337 URLMatcher matcher; local
339 scoped_ptr<Rule> rule(Rule::Create(matcher.condition_factory(),
384 URLMatcher matcher; local
[all...]
/external/chromium_org/third_party/icu/source/i18n/
H A Drepattrn.cpp429 // matcher(UnicodeString, err)
432 RegexMatcher *RegexPattern::matcher(const UnicodeString &input, function in class:RegexPattern
434 RegexMatcher *retMatcher = matcher(status);
445 // matcher(status)
448 RegexMatcher *RegexPattern::matcher(UErrorCode &status) const { function in class:RegexPattern
484 RegexMatcher *matcher = NULL; local
487 matcher = pat->matcher(input, status);
488 retVal = matcher->matches(status);
490 delete matcher;
508 RegexMatcher *matcher = NULL; local
[all...]
/external/icu/icu4c/source/i18n/
H A Drepattrn.cpp429 // matcher(UnicodeString, err)
432 RegexMatcher *RegexPattern::matcher(const UnicodeString &input, function in class:RegexPattern
434 RegexMatcher *retMatcher = matcher(status);
445 // matcher(status)
448 RegexMatcher *RegexPattern::matcher(UErrorCode &status) const { function in class:RegexPattern
484 RegexMatcher *matcher = NULL; local
487 matcher = pat->matcher(input, status);
488 retVal = matcher->matches(status);
490 delete matcher;
508 RegexMatcher *matcher = NULL; local
[all...]
/external/libphonenumber/java/src/com/android/i18n/phonenumbers/
H A DPhoneNumberMatcher.java249 Matcher matcher = PATTERN.matcher(text);
250 while ((maxTries > 0) && matcher.find(index)) {
251 int start = matcher.start();
252 CharSequence candidate = text.subSequence(start, matcher.end());
276 Matcher trailingCharsMatcher = pattern.matcher(candidate);
316 if (SLASH_SEPARATED_DATES.matcher(candidate).find()) {
321 if (TIME_STAMPS.matcher(candidate).find()) {
323 if (TIME_STAMPS_SUFFIX.matcher(followingText).lookingAt()) {
351 Matcher groupMatcher = possibleInnerMatch.matcher(candidat
[all...]
H A DPhoneNumberUtil.java686 Matcher m = VALID_START_CHAR_PATTERN.matcher(number);
690 Matcher trailingCharsMatcher = UNWANTED_END_CHAR_PATTERN.matcher(number);
696 Matcher secondNumber = SECOND_NUMBER_START_PATTERN.matcher(number);
721 Matcher m = VALID_PHONE_NUMBER_PATTERN.matcher(number);
742 Matcher m = VALID_ALPHA_PHONE_PATTERN.matcher(number);
1047 FIRST_GROUP_ONLY_PREFIX_PATTERN.matcher(nationalPrefixFormattingRule).matches();
1195 NP_PATTERN.matcher(nationalPrefixFormattingRule).replaceFirst(nationalPrefix);
1197 FG_PATTERN.matcher(nationalPrefixFormattingRule).replaceFirst("\\$1");
1422 if (UNIQUE_INTERNATIONAL_PREFIX.matcher(internationalPrefix).matches()) {
1689 UNIQUE_INTERNATIONAL_PREFIX.matcher(internationalPrefi
[all...]
/external/doclava/src/com/google/doclava/
H A DLinkReference.java354 Matcher matcher = QUOTE_PATTERN.matcher(text);
355 if (!matcher.matches()) {
361 result.label = matcher.group(1);
366 Matcher matcher = HREF_PATTERN.matcher(text);
367 if (!matcher.matches()) {
372 result.href = matcher.group(1);
373 result.label = matcher.group(2);
H A DDocFile.java82 Matcher lines = LINE.matcher(filedata);
91 Matcher prop = PROP.matcher(line);
127 Matcher lines = LINE.matcher(filedata);
136 Matcher prop = PROP.matcher(line);
/external/ltrace/
H A Doptions.c191 struct filter_lib_matcher *matcher)
194 filter_lib_matcher_main_init(matcher);
212 filter_lib_matcher_name_init(matcher, type, lib_re);
224 struct filter_lib_matcher *matcher = malloc(sizeof(*matcher)); local
226 if (rule == NULL || matcher == NULL) {
229 free(matcher);
251 if (compile_libname(expr, a_lib, lib_re_p, matcher) < 0) {
256 filter_rule_init(rule, type, matcher, symbol_re);
190 compile_libname(const char *expr, const char *a_lib, int lib_re_p, struct filter_lib_matcher *matcher) argument
/external/chromium_org/third_party/icu/source/samples/ugrep/
H A Dugrep.cpp120 RegexMatcher *matcher = rePat->matcher(empty, status); local
138 matcher->reset(s);
139 if (matcher->find()) {
149 delete matcher;
/external/icu/icu4c/source/samples/ugrep/
H A Dugrep.cpp120 RegexMatcher *matcher = rePat->matcher(empty, status); local
138 matcher->reset(s);
139 if (matcher->find()) {
149 delete matcher;
/external/openfst/src/include/fst/
H A Dfstlib.h118 #include <fst/lookahead-matcher.h>
119 #include <fst/matcher-fst.h>
120 #include <fst/matcher.h>
/external/chromium_org/chrome/common/extensions/docs/examples/api/downloads/download_filename_controller/
H A Doptions.js14 this.getElement('matcher').value = data.matcher;
26 this.getElement('matcher').onchange = storeRules;
83 return {matcher: node.rule.getElement('matcher').value,
/external/chromium_org/third_party/libaddressinput/src/java/src/com/android/i18n/addressinput/
H A DAddressVerificationData.java90 Matcher sm = SEPARATOR_PATTERN.matcher(json);
102 Matcher m = KEY_VALUES_PATTERN.matcher(pair);
/external/mockito/src/org/mockito/internal/progress/
H A DArgumentMatcherStorageImpl.java31 public HandyReturnValues reportMatcher(Matcher matcher) { argument
32 matcherStack.push(new LocalizedMatcher(matcher));
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DMediaType.java51 Matcher typeSubtype = TYPE_SUBTYPE.matcher(string);
57 Matcher parameter = PARAMETER.matcher(string);
/external/owasp/sanitizer/src/tests/org/owasp/html/
H A DAntiSamyTest.java419 assertFalse(p.matcher(s1).matches());
422 assertFalse(p.matcher(s1).matches());
423 assertFalse(p.matcher(s2).matches());
426 assertFalse(p.matcher(s1).matches());
427 assertFalse(p.matcher(s2).matches());
430 assertFalse(p.matcher(s1).matches());
431 assertFalse(p.matcher(s2).matches());
801 .matcher(contentType);
/external/proguard/src/proguard/retrace/
H A DReTrace.java199 Matcher matcher = pattern.matcher(line);
201 if (matcher.matches())
211 int startIndex = matcher.start(expressionTypeIndex + 1);
214 String match = matcher.group(expressionTypeIndex + 1);
250 int startIndex = matcher.start(expressionTypeIndex + 1);
253 int endIndex = matcher.end(expressionTypeIndex + 1);
254 String match = matcher.group(expressionTypeIndex + 1);
/external/proguard/src/proguard/util/
H A DClassNameParser.java73 // Create a matcher, recursively, for the remainder of the
87 // Create a matcher for the wildcard and, recursively, for the
97 // Create a matcher for the wildcard and, recursively, for the
111 // Create a matcher for the wildcard and, recursively, for the
125 // Create a matcher for the wildcard and, recursively, for the
139 // Create a matcher for the wildcard and, recursively, for the
151 // Return a matcher for the fixed first part of the regular expression,
164 * array or non-array) and then the given matcher.
203 StringMatcher matcher = parser.parse(args[0]);
208 System.out.println(" -> match = "+matcher
[all...]
/external/chromium_org/third_party/icu/source/common/
H A Dutil.h227 const UnicodeMatcher* matcher,
/external/chromium_org/third_party/libaddressinput/src/cpp/src/
H A Drule.cc212 RE2* matcher = new RE2("^(" + value + ")", options); local
213 if (matcher->ok()) {
214 postal_code_matcher_.reset(new RE2ptr(matcher));
217 delete matcher;
H A Dvalidation_task.cc236 matcher = matchers.begin();
237 matcher != matchers.end(); ++matcher) {
238 if (RE2::PartialMatch(*line, *(*matcher)->ptr)) {
/external/easymock/src/org/easymock/
H A DMockControl.java320 * The matcher must be set before any behavior for the method is defined.
322 * @param matcher the matcher for the last method called
327 public void setMatcher(ArgumentsMatcher matcher) { argument
328 ctrl.setLegacyMatcher(matcher);
446 * matcher must be set before any behavior is defined on the mock object.
448 * @param matcher the default matcher for this control
453 public void setDefaultMatcher(ArgumentsMatcher matcher) { argument
454 ctrl.setLegacyDefaultMatcher(matcher);
[all...]
/external/easymock/src/org/easymock/internal/
H A DInvocation.java135 public boolean matches(Invocation actual, org.easymock.ArgumentsMatcher matcher) { argument
138 && matcher.matches(this.arguments, actual.arguments);
142 public String toString(org.easymock.ArgumentsMatcher matcher) { argument
143 return getMockAndMethodName() + "(" + matcher.toString(arguments) + ")";

Completed in 673 milliseconds

1234567891011>>