/external/chromium_org/third_party/icu/source/i18n/ |
H A D | rbt_rule.cpp | 536 const UnicodeMatcher* matcher = data->lookupMatcher(ch); local 537 if (matcher == NULL) { 540 matcher->addMatchSetTo(toUnionTo);
|
H A D | repattrn.cpp | 429 // 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...] |
H A D | strmatch.cpp | 206 const UnicodeMatcher* matcher = data->lookupMatcher(ch); local 207 if (matcher == NULL) { 210 matcher->addMatchSetTo(toUnionTo);
|
H A D | dtptngen_impl.h | 226 DateTimeMatcher *matcher; member in class:PatternMapIterator
|
/external/chromium_org/third_party/icu/source/samples/ugrep/ |
H A D | ugrep.cpp | 120 RegexMatcher *matcher = rePat->matcher(empty, status); local 138 matcher->reset(s); 139 if (matcher->find()) { 149 delete matcher;
|
/external/easymock/src/org/easymock/ |
H A D | MockControl.java | 320 * 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...] |
H A D | EasyMock.java | 1635 * Reports an argument matcher. This method is needed to define own argument
1638 * @param matcher
1640 public static void reportMatcher(IArgumentMatcher matcher) {
argument 1641 LastControl.reportMatcher(matcher);
|
/external/easymock/src/org/easymock/internal/ |
H A D | MocksControl.java | 279 public void setLegacyDefaultMatcher(org.easymock.ArgumentsMatcher matcher) {
argument 281 state.setDefaultMatcher(matcher);
288 public void setLegacyMatcher(org.easymock.ArgumentsMatcher matcher) {
argument 290 state.setMatcher(null, matcher);
|
H A D | RecordState.java | 84 throw new IllegalStateException("matcher calls were used outside expectations");
380 public void setDefaultMatcher(org.easymock.ArgumentsMatcher matcher) {
argument 381 behavior.setDefaultMatcher(matcher);
385 public void setMatcher(Method method, org.easymock.ArgumentsMatcher matcher) {
argument 386 requireMethodCall("matcher");
387 behavior.setMatcher(lastInvocation.getMethod(), matcher);
|
H A D | ReplayState.java | 136 public void setMatcher(Method method, org.easymock.ArgumentsMatcher matcher) {
argument 141 public void setDefaultMatcher(org.easymock.ArgumentsMatcher matcher) {
argument
|
/external/guava/guava-tests/test/com/google/common/base/ |
H A D | CharMatcherTest.java | 126 private void doTestEmpty(CharMatcher matcher) throws Exception { argument 127 reallyTestEmpty(matcher); 128 reallyTestEmpty(matcher.negate()); 129 reallyTestEmpty(matcher.precomputed()); 132 private void reallyTestEmpty(CharMatcher matcher) throws Exception { argument 133 assertEquals(-1, matcher.indexIn("")); 134 assertEquals(-1, matcher.indexIn("", 0)); 136 matcher.indexIn("", 1); 141 matcher.indexIn("", -1); 145 assertEquals(-1, matcher 157 doTestNull(CharMatcher matcher) argument 180 doTestNoMatches(CharMatcher matcher, String s) argument 207 doTestAllMatches(CharMatcher matcher, String s) argument 218 reallyTestNoMatches(CharMatcher matcher, CharSequence s) argument 246 reallyTestAllMatches(CharMatcher matcher, CharSequence s) argument 275 doTestGeneral(CharMatcher matcher, char match, char noMatch) argument 282 doTestOneCharMatch(CharMatcher matcher, String s) argument 290 doTestOneCharNoMatch(CharMatcher matcher, String s) argument 298 doTestMatchThenNoMatch(CharMatcher matcher, String s) argument 306 doTestNoMatchThenMatch(CharMatcher matcher, String s) argument 314 reallyTestOneCharMatch(CharMatcher matcher, String s) argument 331 reallyTestOneCharNoMatch(CharMatcher matcher, String s) argument 352 reallyTestMatchThenNoMatch(CharMatcher matcher, String s) argument 368 reallyTestNoMatchThenMatch(CharMatcher matcher, String s) argument [all...] |
/external/hamcrest/library/src/org/hamcrest/ |
H A D | Matchers.java | 13 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/icu/icu4c/source/common/ |
H A D | util.cpp | 395 * Given a matcher reference, which may be null, append its 399 const UnicodeMatcher* matcher, 402 if (matcher != NULL) { 404 appendToRule(rule, matcher->toPattern(pat, escapeUnprintable), 398 appendToRule(UnicodeString& rule, const UnicodeMatcher* matcher, UBool escapeUnprintable, UnicodeString& quoteBuf) argument
|
/external/icu/icu4c/source/i18n/ |
H A D | rbt_rule.cpp | 536 const UnicodeMatcher* matcher = data->lookupMatcher(ch); local 537 if (matcher == NULL) { 540 matcher->addMatchSetTo(toUnionTo);
|
H A D | repattrn.cpp | 429 // 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...] |
H A D | strmatch.cpp | 206 const UnicodeMatcher* matcher = data->lookupMatcher(ch); local 207 if (matcher == NULL) { 210 matcher->addMatchSetTo(toUnionTo);
|
/external/icu/icu4c/source/samples/ugrep/ |
H A D | ugrep.cpp | 120 RegexMatcher *matcher = rePat->matcher(empty, status); local 138 matcher->reset(s); 139 if (matcher->find()) { 149 delete matcher;
|
/external/mockito/src/org/mockito/ |
H A D | Matchers.java | 24 * //stubbing using anyInt() argument matcher
30 * //you can also verify using argument matcher
42 * //above is correct - eq() is also an argument matcher
45 * //above is incorrect - exception will be thrown because third argument is given without argument matcher.
49 * Internally, they record a matcher on a stack and return a dummy value (usually null).
64 * Before you start implementing your own custom argument matcher, make sure you check out {@link ArgumentCaptor} api.
66 * So, how to implement your own argument matcher?
67 * First, you might want to subclass {@link ArgumentMatcher} which is an hamcrest matcher with predefined describeTo() method.
100 * Also, <b>sometimes {@link ArgumentCaptor} may be a better fit</b> than custom matcher.
101 * For example, if custom argument matcher i 777 argThat(Matcher<T> matcher) argument 789 charThat(Matcher<Character> matcher) argument 801 booleanThat(Matcher<Boolean> matcher) argument 813 byteThat(Matcher<Byte> matcher) argument 825 shortThat(Matcher<Short> matcher) argument 837 intThat(Matcher<Integer> matcher) argument 849 longThat(Matcher<Long> matcher) argument 861 floatThat(Matcher<Float> matcher) argument 873 doubleThat(Matcher<Double> matcher) argument 877 reportMatcher(Matcher<?> matcher) argument [all...] |
/external/chromium_org/chrome/browser/extensions/api/declarative_webrequest/ |
H A D | webrequest_rules_registry_unittest.cc | 705 URLMatcher matcher; local 708 NULL, matcher.condition_factory(), rule.conditions, &error); 798 URLMatcher matcher; local
|
/external/openfst/src/include/fst/ |
H A D | matcher-fst.h | 0 // matcher-fst.h 19 // Class to add a matcher to an FST. 26 #include <fst/lookahead-matcher.h> 32 // matcher.h) and these additional methods: 40 // // data; matcher increments its reference count on construction and 49 // The matcher initialization data class must have the form: 74 // Class to add a matcher M to an Fst F. Creates a new Fst of type name N. 216 Matcher(const Matcher<FST> &matcher) { argument 217 matcher_ = matcher.matcher_->Copy(); 256 LookAheadMatcher(const LookAheadMatcher<FST> &matcher, boo argument [all...] |
H A D | lookahead-matcher.h | 1 // lookahead-matcher.h 29 #include <fst/matcher.h> 38 // matcher.h) and these additional methods: 53 // LookAheadMatcher(const LookAheadMatcher &matcher, bool safe = false); 60 // // LABEL LOOKAHEAD: Can 'label' be read from the current matcher state 67 // // transducer, this looks on the side different from the matcher 71 // // the cur. matcher state? 75 // // lookahead and matcher FSTs for the last call to LookAheadFst. 96 // LOOK-AHEAD FLAGS (see also kMatcherFlags in matcher.h): 98 // Matcher is a lookahead matcher whe 724 LookAheadMatcher(const LookAheadMatcher<F> &matcher, bool safe = false) argument [all...] |
H A D | matcher.h | 0 // matcher.h 52 // Matcher(const Matcher &matcher, bool safe = false); 81 // // Return matcher FST. 84 // // matcher. It takes as argument the input Fst's known properties. 89 // MATCHER FLAGS (see also kLookAheadFlags in lookahead-matcher.h) 101 // for matcher specializations that are returned by the 132 // A matcher that expects sorted labels on the side to be matched. 173 SortedMatcher(const SortedMatcher<F> &matcher, bool safe = false) argument 174 : fst_(matcher.fst_->Copy(safe)), 177 match_type_(matcher 431 RhoMatcher(const RhoMatcher<M> &matcher, bool safe = false) argument 605 SigmaMatcher(const SigmaMatcher<M> &matcher, bool safe = false) argument 792 PhiMatcher(const PhiMatcher<M> &matcher, bool safe = false) argument 1015 MultiEpsMatcher(const MultiEpsMatcher<M> &matcher, bool safe = false) argument 1172 Matcher(const Matcher<F> &matcher, bool safe = false) argument [all...] |
/external/ltrace/ |
H A D | options.c | 191 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/openfst/src/include/fst/extensions/pdt/ |
H A D | compose.h | 37 // This class is a matcher that treats parens as multi-epsilon labels. 66 ParenMatcher(const ParenMatcher<F> &matcher, bool safe = false) argument 67 : matcher_(matcher.matcher_, safe), 68 match_type_(matcher.match_type_), 69 flags_(matcher.flags_), 70 open_parens_(matcher.open_parens_), 71 close_parens_(matcher.close_parens_), 72 loop_(matcher.loop_) { 154 // Advances matcher to next open paren if it exists, returning true. 158 // Advances matcher t [all...] |
/external/protobuf/java/src/main/java/com/google/protobuf/ |
H A D | TextFormat.java | 409 private final Matcher matcher; field in class:TextFormat.Tokenizer 425 // regex matcher has stack overflows on large inputs. 448 this.matcher = WHITESPACE.matcher(text); 464 while (pos < matcher.regionStart()) { 475 if (matcher.regionStart() == matcher.regionEnd()) { 479 matcher.usePattern(TOKEN); 480 if (matcher.lookingAt()) { 481 currentToken = matcher [all...] |