/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
ModeTest.java | 21 import java.util.regex.Matcher; 32 Matcher m; 35 m = p.matcher("cAT123#dog345"); 42 m = p.matcher("cAt123#doG345"); 51 m = p.matcher("cAt123#doG345"); 60 Matcher m; 63 m = p.matcher("foobar"); 68 m = p.matcher("barfoo"); 73 m = p.matcher("foobar"); 76 m = p.matcher("barfoo") [all...] |
PatternTest.java | 21 import java.util.regex.Matcher; 75 assertNotNull(p.matcher("bcde")); 76 assertNotSame(p.matcher("a"), p.matcher("a")); 220 Matcher mat; 225 mat = pat.matcher(testString); 231 mat = pat.matcher(testString); 237 mat = pat.matcher(testString); 243 mat = pat.matcher(testString); 249 mat = pat.matcher(testString) 1479 Matcher matcher = p.matcher("\\uD801\\uDC28"); local [all...] |
/external/chromium_org/chrome_frame/test/ |
mock_ie_event_sink_actions.h | 34 MATCHER_P(AccSatisfies, matcher, "satisfies the given AccObjectMatcher") { 35 return matcher.DoesMatch(arg); 136 ACTION_P(AccDoDefaultAction, matcher) { 138 if (FindAccObjectInWindow(arg0, matcher, &object)) { 143 ACTION_P2(DelayAccDoDefaultAction, matcher, delay) { 146 if (FindAccObjectInWindow(arg0, matcher, &object)) { 151 ACTION_P(AccLeftClick, matcher) { 153 if (FindAccObjectInWindow(arg0, matcher, &object)) { 158 ACTION_P(AccSendCommand, matcher) { 160 if (FindAccObjectInWindow(arg0, matcher, &object)) [all...] |
/external/llvm/utils/TableGen/ |
DAGISelMatcherEmitter.cpp | 1 //===- DAGISelMatcherEmitter.cpp - Matcher Emitter ------------------------===// 10 // This file contains code to generate C++ code for a matcher. 54 unsigned EmitMatcherList(const Matcher *N, unsigned Indent, 59 void EmitHistogram(const Matcher *N, formatted_raw_ostream &OS); 61 unsigned EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx, 135 /// EmitMatcher - Emit bytes for the specified matcher and return 138 EmitMatcher(const Matcher *N, unsigned Indent, unsigned CurrentIdx, 143 case Matcher::Scope: { 205 case Matcher::RecordNode: 214 case Matcher::RecordChild [all...] |
/external/clang/include/clang/ASTMatchers/ |
ASTMatchersMacros.h | 11 // Since a matcher is a function which returns a Matcher<T> object, where 12 // T is the type of the actual implementation of the matcher, the macros allow 16 // Note that when you define a matcher with an AST_MATCHER* macro, only the 17 // function which creates the matcher goes into the current namespace - the 18 // class that implements the actual matcher, which gets returned by the 23 // To define a matcher in user code, always put it into the clang::ast_matchers 29 // internal::Matcher<ValueDecl>, InnerMatcher) { 42 /// Matcher<Type> object. 53 class matcher_##DefineMatcher##Matcher : public MatcherInterface<Type> { [all...] |
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/ |
regexp_adapter_icu.cc | 130 const scoped_ptr<RegexMatcher> matcher( 131 utf8_regexp_->matcher(*input->Data(), status)); 133 ? matcher->lookingAt(input->position(), status) 134 : matcher->find(input->position(), status); 146 if (group_index > matcher->groupCount()) { 150 UnicodeStringToUtf8String(matcher->group(group_index, status)); 153 input->set_position(matcher->end(status)); 165 const scoped_ptr<RegexMatcher> matcher( 166 utf8_regexp_->matcher(*input.Data(), status)); 168 ? matcher->matches(input.position(), status [all...] |
/external/clang/include/clang/ASTMatchers/Dynamic/ |
Registry.h | 1 //===--- Registry.h - Matcher registry -----*- C++ -*-===// 13 /// The registry provides a generic interface to construct any matcher by name. 32 /// \brief Construct a matcher from the registry by name. 35 /// matcher by name. 37 /// \param MatcherName The name of the matcher to instantiate. 39 /// \param NameRange The location of the name in the matcher source. 42 /// \param Args The argument list for the matcher. The number and types of the 43 /// values must be valid for the matcher requested. Otherwise, the function 46 /// \return The matcher objects constructed if no error was found. 47 /// An empty list if the matcher is not found, or if the number o [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
quant.cpp | 27 matcher = adoptedMatcher; 35 matcher(o.matcher->clone()), 42 delete matcher; 68 UMatchDegree m = matcher->toMatcher()->matches(text, offset, limit, incremental); 98 matcher->toMatcher()->toPattern(result, escapeUnprintable); 123 return (minCount == 0) || matcher->toMatcher()->matchesIndexValue(v); 131 matcher->toMatcher()->addMatchSetTo(toUnionTo); 139 matcher->setData(d);
|
/external/icu4c/i18n/ |
quant.cpp | 27 matcher = adoptedMatcher; 35 matcher(o.matcher->clone()), 42 delete matcher; 71 UMatchDegree m = matcher->toMatcher()->matches(text, offset, limit, incremental); 101 matcher->toMatcher()->toPattern(result, escapeUnprintable); 126 return (minCount == 0) || matcher->toMatcher()->matchesIndexValue(v); 134 matcher->toMatcher()->addMatchSetTo(toUnionTo); 142 matcher->setData(d);
|
/external/junit/src/org/junit/rules/ |
ErrorCollector.java | 12 import org.hamcrest.Matcher; 51 * Adds a failure to the table if {@code matcher} does not match {@code value}. 54 public <T> void checkThat(final T value, final Matcher<T> matcher) { 55 checkThat("", value, matcher); 60 * to the table if {@code matcher} does not match {@code value}. 63 public <T> void checkThat(final String reason, final T value, final Matcher<T> matcher) { 66 assertThat(reason, value, matcher);
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
UserAgentTest.java | 9 import java.util.regex.Matcher; 44 Matcher matcher = Pattern.compile("Android_[^;]+;_[^_]").matcher(ua); local 45 assertTrue(matcher.find());
|
/external/hamcrest/src/org/hamcrest/core/ |
IsNull.java | 7 import org.hamcrest.Matcher; 27 public static <T> Matcher<T> nullValue() { 35 public static <T> Matcher<T> notNullValue() { 43 public static <T> Matcher<T> nullValue(@SuppressWarnings("unused") Class<T> type) { 51 public static <T> Matcher<T> notNullValue(@SuppressWarnings("unused") Class<T> type) {
|
/external/junit/src/org/junit/experimental/results/ |
ResultMatchers.java | 5 import org.hamcrest.Matcher; 20 public static Matcher<PrintableResult> isSuccessful() { 27 public static Matcher<PrintableResult> failureCountIs(final int count) { 43 public static Matcher<Object> hasSingleFailureContaining(final String string) { 59 public static Matcher<PrintableResult> hasFailureContaining(final String string) {
|
/external/mockito/src/org/mockito/internal/verification/argumentmatching/ |
ArgumentMatchingTool.java | 10 import org.hamcrest.Matcher;
20 public Integer[] getSuspiciouslyNotMatchingArgsIndexes(List<Matcher> matchers, Object[] arguments) {
27 for (Matcher m : matchers) {
39 private boolean safelyMatches(Matcher m, Object arg) {
47 private boolean toStringEquals(Matcher m, Object arg) {
|
/external/proguard/src/proguard/util/ |
NotMatcher.java | 31 private final StringMatcher matcher; field in class:NotMatcher 34 public NotMatcher(StringMatcher matcher) 36 this.matcher = matcher; 44 return !matcher.matches(string);
|
SettableMatcher.java | 31 private StringMatcher matcher; field in class:SettableMatcher 34 public void setMatcher(StringMatcher matcher) 36 this.matcher = matcher; 44 return matcher.matches(string);
|
/external/chromium-trace/trace-viewer/third_party/closure_linter/closure_linter/ |
javascripttokenizer.py | 26 from closure_linter.common import matcher namespace 31 Matcher = matcher.Matcher 35 """Enumeration of the different matcher modes used for JavaScript.""" 197 Matcher(END_BLOCK_COMMENT, Type.END_DOC_COMMENT, 201 Matcher(DOC_INLINE_FLAG, Type.DOC_INLINE_FLAG), 202 Matcher(DOC_FLAG_LEX_SPACES, Type.DOC_FLAG, 206 Matcher(DOC_FLAG, Type.DOC_FLAG, JavaScriptModes.DOC_COMMENT_MODE), 209 Matcher(START_BLOCK, Type.DOC_START_BRACE) [all...] |
/external/chromium_org/third_party/closure_linter/closure_linter/ |
javascripttokenizer.py | 26 from closure_linter.common import matcher namespace 31 Matcher = matcher.Matcher 35 """Enumeration of the different matcher modes used for JavaScript.""" 197 Matcher(END_BLOCK_COMMENT, Type.END_DOC_COMMENT, 201 Matcher(DOC_INLINE_FLAG, Type.DOC_INLINE_FLAG), 202 Matcher(DOC_FLAG_LEX_SPACES, Type.DOC_FLAG, 206 Matcher(DOC_FLAG, Type.DOC_FLAG, JavaScriptModes.DOC_COMMENT_MODE), 209 Matcher(START_BLOCK, Type.DOC_START_BRACE) [all...] |
/external/chromium_org/extensions/common/ |
event_filter.h | 14 #include "extensions/common/matcher/url_matcher.h" 27 // Adds an event matcher that will be used in calls to MatchEvent(). Returns 28 // the id of the matcher, or -1 if there was an error. 30 scoped_ptr<EventMatcher> matcher); 39 // Removes an event matcher, returning the name of the event that it was for. 88 // Maps from a matcher id to an event matcher entry. 94 // Adds the list of URL filters in |matcher| to the URL matcher, having 97 EventMatcher* matcher, [all...] |
/external/hamcrest/src/org/hamcrest/ |
Description.java | 4 * A description of a Matcher. A Matcher will describe itself to a description
7 * @see Matcher#describeTo(Description)
|
/cts/hostsidetests/monkey/src/com/android/cts/monkey/ |
PackageTest.java | 33 assertTrue(out, ALLOW_MONKEY.matcher(out).find()); 34 assertFalse(out, ALLOW_CHIMP.matcher(out).find()); 37 assertFalse(out, ALLOW_MONKEY.matcher(out).find()); 38 assertTrue(out, ALLOW_CHIMP.matcher(out).find()); 44 assertTrue(out, ALLOW_MONKEY.matcher(out).find()); 45 assertTrue(out, ALLOW_CHIMP.matcher(out).find());
|
/external/chromium_org/components/autofill/core/browser/ |
autofill_regexes.cc | 24 // Returns the compiled regex matcher corresponding to |pattern|. 56 icu::RegexMatcher* matcher = new icu::RegexMatcher(icu_pattern, local 61 matchers_.insert(std::make_pair(pattern, matcher)); 73 icu::RegexMatcher* matcher = local 76 matcher->reset(icu_input); 79 UBool match = matcher->find(0, status);
|
/external/clang/docs/ |
LibASTMatchers.rst | 29 For example, to create a matcher that matches all class or union declarations 33 insert a `hasName <LibASTMatchersReference.html#hasName0Anchor>`_ matcher: the 34 call ``recordDecl(hasName("Foo"))`` returns a matcher that matches classes or 41 How to create a matcher 45 when trying to figure out how to create a matcher for a specific pattern. This 47 matcher you are interested in. Note that there will always be matchers missing 64 #. Look at the `AST Matcher Reference <LibASTMatchersReference.html>`_ for 69 #. Repeat until the matcher is finished. 76 Matcher expressions allow you to specify which parts of the AST are interesting 92 There are multiple different ways to define a matcher, depending on its typ [all...] |
LibASTMatchersReference.html | 5 <title>AST Matcher Reference</title> 38 <h1>AST Matcher Reference</h1> 41 by category and node type they match. You can click on matcher names to show the 42 matcher's source documentation.</p> 53 Note that if a matcher can match multiple node types, it will it will appear 54 multiple times. This means that by searching for Matcher<Stmt> you can 61 them into matcher expressions. You will usually want to form matcher expressions 76 <p>Node matchers are at the core of matcher expressions - they specify the type 77 of node that is expected. Every match expression starts with a node matcher, [all...] |
/libcore/luni/src/test/java/libcore/java/util/regex/ |
OldAndroidRegexTest.java | 19 import java.util.regex.Matcher; 25 /* Tests class Matcher */ 28 Matcher m = p.matcher("bcd"); 33 m = p.matcher("abcdefg"); 37 m = p.matcher("bcdefg"); 41 m = p.matcher("abcd"); 46 m = p.matcher("abc"); 52 m = p.matcher("abc"); 89 Matcher m = p.matcher("1 (919) 555-1212") [all...] |