/external/chromium_org/third_party/closure_linter/closure_linter/common/ |
matcher.py | 17 """Regular expression based JavaScript matcher classes.""" 30 class Matcher(object): 31 """A token matcher. 41 regex: The regular expression representing this matcher. 47 """Create a new matcher template. 54 line_start: Whether this matcher should only match string at the start
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/matchers/ |
StartedMatcherTest.java | 12 import org.hamcrest.Matcher; 65 private <T> Matcher<Matcher<T>> givesFailureMessage(final T actual, final String expectedFailureMessage) { 66 return new TypeSafeMatcher<Matcher<T>>() { 70 public boolean matchesSafely(Matcher<T> tMatcher) { 72 message = "matcher to fail, but it passed";
|
StartedServiceMatcherTest.java | 10 import org.hamcrest.Matcher; 67 private <T> Matcher<Matcher<T>> givesFailureMessage(final T actual, final String expectedFailureMessage) { 68 return new TypeSafeMatcher<Matcher<T>>() { 72 public boolean matchesSafely(Matcher<T> tMatcher) { 74 message = "matcher to fail, but it passed";
|
/libcore/benchmarks/src/benchmarks/regression/ |
SchemePrefixBenchmark.java | 22 import java.util.regex.Matcher; 61 Matcher matcher = pattern.matcher(spec); local 62 if (matcher.find()) { 63 return matcher.group(1).toLowerCase(Locale.US);
|
/external/chromium/testing/gmock/include/gmock/ |
gmock-generated-matchers.h.pump | 103 // Implements the Args() matcher. 112 typedef Matcher<const SelectedArgs&> MonomorphicInnerMatcher; 179 operator Matcher<ArgsTuple>() const { 202 operator Matcher<Container>() const { 215 const Matcher<const Element&> matcher = 217 return MakeMatcher(new ElementsAreMatcherImpl<Container>(&matcher, 1)); 220 const Matcher<const Element&> matchers[] = { 256 Args(const InnerMatcher& matcher) { 257 return internal::ArgsMatcher<InnerMatcher$for j [[, k$j]]>(matcher); [all...] |
/external/llvm/utils/TableGen/ |
DAGISelMatcherOpt.cpp | 1 //===- DAGISelMatcherOpt.cpp - Optimize a DAG Matcher ---------------------===// 10 // This file implements the DAG Matcher optimizer. 23 /// ContractNodes - Turn multiple matcher node patterns like 'MoveChild+Record' 25 static void ContractNodes(OwningPtr<Matcher> &MatcherPtr, 28 Matcher *N = MatcherPtr.get(); 34 OwningPtr<Matcher> Child(Scope->takeChild(i)); 44 Matcher *New = 0; 80 Matcher *EmitNode = MatcherPtr.take(); 81 Matcher *MFR = EmitNode->takeNext(); 82 Matcher *Tail = MFR->takeNext() [all...] |
/external/clang/unittests/ASTMatchers/Dynamic/ |
ParserTest.cpp | 38 /// \brief Makes a copy of this matcher object. 43 /// \brief Returns a unique ID for the matcher. 86 DummyDynTypedMatcher Matcher(ExpectedMatchers[MatcherName]); 87 OwningPtr<DynTypedMatcher> Out(Matcher.tryBind(BindID)); 179 using ast_matchers::internal::Matcher; 188 Matcher<Decl> M = Matcher<Decl>::constructFrom(*VarDecl); 197 M = Matcher<Decl>::constructFrom(*HasParameter); 204 EXPECT_EQ("1:1: Error parsing argument 1 for matcher hasInitializer.\n" 205 "2:5: Error parsing argument 1 for matcher binaryOperator.\n [all...] |
/external/openfst/src/include/fst/ |
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: 35 // class Matcher { 40 // // data; matcher increments its reference count on construction and 42 // Matcher(const F &fst, MatchType type, MatcherData *data); 45 // // passed to a Matcher constructor. 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 [all...] |
/external/chromium/testing/gmock/test/ |
gmock_link_test.h | 153 using testing::Matcher; 238 // the Field matcher. 470 // Tests the linkage of the "_" matcher. 477 // Tests the linkage of the A matcher. 484 // Tests the linkage of the Eq and the "bare value" matcher. 505 // Tests the linkage of the NotNull matcher. 512 // Tests the linkage of the IsNull matcher. 519 // Tests the linkage of the Ref matcher. 527 // Tests the linkage of the TypedEq matcher. 548 // Tests the linkage of the ContainsRegex matcher [all...] |
/cts/libs/vogar-expect/src/vogar/util/ |
Strings.java | 32 import java.util.regex.Matcher; 107 Matcher matcher = XML_INVALID_CHARS.matcher(text); local 108 while (matcher.find()) { 109 matcher.appendReplacement(result, ""); 110 result.append(escapeCodePoint(matcher.group())); 112 matcher.appendTail(result);
|
/external/easymock/src/org/easymock/internal/ |
ILegacyMatcherMethods.java | 23 void setDefaultMatcher(org.easymock.ArgumentsMatcher matcher);
26 void setMatcher(Method method, org.easymock.ArgumentsMatcher matcher);
|
/external/hamcrest/src/org/hamcrest/core/ |
IsInstanceOf.java | 6 import org.hamcrest.Matcher; 40 public static Matcher<Object> instanceOf(Class<?> type) {
|
IsSame.java | 6 import org.hamcrest.Matcher; 36 public static <T> Matcher<T> sameInstance(T object) {
|
/external/mockito/src/org/mockito/internal/invocation/ |
MatchersBinder.java | 8 import org.hamcrest.Matcher; 26 InvocationMatcher invocationWithMatchers = new InvocationMatcher(invocation, (List<Matcher>)(List) lastMatchers);
|
ArgumentsProcessor.java | 7 import org.hamcrest.Matcher; 41 public static List<Matcher> argumentsToMatchers(Object[] arguments) { 42 List<Matcher> matchers = new ArrayList<Matcher>(arguments.length);
|
/external/mockito/src/org/mockito/internal/progress/ |
ArgumentMatcherStorageImpl.java | 8 import org.hamcrest.Matcher; 29 * @see org.mockito.internal.progress.ArgumentMatcherStorage#reportMatcher(org.hamcrest.Matcher) 31 public HandyReturnValues reportMatcher(Matcher matcher) { 32 matcherStack.push(new LocalizedMatcher(matcher)); 84 private List<Matcher> popLastArgumentMatchers(int count) { 85 List<Matcher> result = new LinkedList<Matcher>();
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/matchers/ |
CompoundButtonCheckedMatcher.java | 6 import org.hamcrest.Matcher; 25 public static <T extends CompoundButton> Matcher<T> isChecked(boolean expectedChecked) {
|
HasResourceMatcher.java | 6 import org.hamcrest.Matcher; 42 public static Matcher<ImageView> hasResource(int expectedResourceId) {
|
TextViewHasTextMatcher.java | 6 import org.hamcrest.Matcher; 39 public static <T extends TextView> Matcher<T> hasText(String expectedTextViewText) {
|
ViewHasTextMatcher.java | 6 import org.hamcrest.Matcher; 54 public static <T extends View> Matcher<T> hasText(String expectedTextViewText) { 59 public static <T extends View> Matcher<T> hasText(int expectedTextViewResourceId) {
|
/external/easymock/src/org/easymock/ |
IArgumentMatcher.java | 24 * Returns whether this matcher accepts the given argument.
35 * @return whether this matcher accepts the given argument.
40 * Appends a string representation of this matcher to the given buffer. In case
42 * matcher was used for the failing call.
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/build/ |
BaseBuilderTest.java | 19 import java.util.regex.Matcher; 30 Matcher m = p.matcher(s);
|
/external/chromium_org/extensions/common/matcher/ |
url_matcher_factory_unittest.cc | 5 #include "extensions/common/matcher/url_matcher_factory.h" 11 #include "extensions/common/matcher/url_matcher_constants.h" 20 URLMatcher matcher; local 69 matcher.condition_factory(), &invalid_condition, 1, &error); 76 matcher.condition_factory(), &invalid_condition2, 2, &error); 83 matcher.condition_factory(), &invalid_condition3, 3, &error); 89 matcher.condition_factory(), &invalid_condition4, 4, &error); 96 matcher.condition_factory(), &valid_condition, 100, &error); 102 matcher.AddConditionSets(conditions); 104 EXPECT_EQ(1u, matcher.MatchURL(GURL("http://www.example.com")).size()) 118 URLMatcher matcher; local 239 URLMatcher matcher; local [all...] |
/external/chromium_org/third_party/icu/source/tools/genrb/ |
prscmnts.cpp | 93 RegexMatcher matcher(patternString, UREGEX_DOTALL, *status); 98 matcher.reset(stringArray[i]); 99 if(matcher.lookingAt(*status)){ 100 UnicodeString out = matcher.group(1, *status); 153 RegexMatcher matcher(patternStrings[option], UREGEX_DOTALL, *status); 159 matcher.reset(stringArray[i]); 160 if(matcher.lookingAt(*status)){ 192 RegexMatcher matcher(patternStrings[option], UREGEX_DOTALL, *status); 198 matcher.reset(stringArray[i]); 199 if(matcher.lookingAt(*status)) [all...] |
/external/icu4c/tools/genrb/ |
prscmnts.cpp | 93 RegexMatcher matcher(patternString, UREGEX_DOTALL, *status); 98 matcher.reset(stringArray[i]); 99 if(matcher.lookingAt(*status)){ 100 UnicodeString out = matcher.group(1, *status); 153 RegexMatcher matcher(patternStrings[option], UREGEX_DOTALL, *status); 159 matcher.reset(stringArray[i]); 160 if(matcher.lookingAt(*status)){ 192 RegexMatcher matcher(patternStrings[option], UREGEX_DOTALL, *status); 198 matcher.reset(stringArray[i]); 199 if(matcher.lookingAt(*status)) [all...] |