/system/media/mca/filterfw/java/android/filterfw/io/ |
PatternScanner.java | 20 import java.util.regex.Matcher; 50 // Create the matcher 51 Matcher matcher = pattern.matcher(mInput); local 52 matcher.region(mOffset, mInput.length()); 56 if (matcher.lookingAt()) { 57 updateLineCount(mOffset, matcher.end()); 58 mOffset = matcher.end(); 59 result = mInput.substring(matcher.start(), matcher.end()) 85 Matcher matcher = pattern.matcher(mInput); local 93 Matcher matcher = pattern.matcher(mInput); local [all...] |
/libcore/luni/src/main/native/ |
java_util_regex_Matcher.cpp | 17 #define LOG_TAG "Matcher" 124 MatcherAccessor matcher(env, addr, javaText, false); 125 UBool result = matcher->find(startIndex, matcher.status()); 127 matcher.updateOffsets(offsets); 133 MatcherAccessor matcher(env, addr, javaText, false); 134 if (matcher.status() != U_ZERO_ERROR) { 137 UBool result = matcher->find(); 139 matcher.updateOffsets(offsets); 145 MatcherAccessor matcher(env, addr) [all...] |
/external/llvm/utils/TableGen/ |
DAGISelMatcher.h | 1 //===- DAGISelMatcher.h - Representation of DAG pattern matcher -----------===// 22 class Matcher; 31 Matcher *ConvertPatternToMatcher(const PatternToMatch &Pattern,unsigned Variant, 33 Matcher *OptimizeMatcher(Matcher *Matcher, const CodeGenDAGPatterns &CGP); 34 void EmitMatcherTable(const Matcher *Matcher, const CodeGenDAGPatterns &CGP, 38 /// Matcher - Base class for all the the DAG ISel Matcher representatio [all...] |
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 /// EmitMatcherOpcodes - 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/chromium/testing/gmock/src/ |
gmock-matchers.cc | 34 // This file implements Matcher<const string&>, Matcher<string>, and 46 // Constructs a matcher that matches a const string& whose value is 48 Matcher<const internal::string&>::Matcher(const internal::string& s) { 52 // Constructs a matcher that matches a const string& whose value is 54 Matcher<const internal::string&>::Matcher(const char* s) { 58 // Constructs a matcher that matches a string whose value is equal to s. 59 Matcher<internal::string>::Matcher(const internal::string& s) { *this = Eq(s); [all...] |
/external/apache-harmony/regex/src/test/java/org/apache/harmony/tests/java/util/regex/ |
MatcherTest.java | 20 import java.util.regex.Matcher; 46 Matcher m = p.matcher("axxxxxa"); 81 Matcher m = pat.matcher("Today is XX-XX-XX ..."); 93 Matcher m = p.matcher("xx $ equals to xx rur."); 107 Matcher mat = pat.matcher(input); 113 * Class under test for Matcher reset(CharSequence 605 Matcher matcher = pattern.matcher(input); local 651 Matcher matcher = pattern.matcher("abcde"); local 671 Matcher matcher = pattern.matcher(inputStr); local 706 Matcher matcher = pattern.matcher(s[i]); local 751 Matcher matcher = pattern.matcher(input); local [all...] |
Pattern2Test.java | 19 import java.util.regex.Matcher; 26 * Tests simple Pattern compilation and Matcher methods 33 Matcher m1 = p.matcher("foo123"); 38 Matcher m2 = p.matcher("fox"); 53 Matcher m; 58 m = p.matcher("foobar"); 108 Matcher m; 112 m = p.matcher("p1#q3p2q42p5p71p63#q888") 1059 Matcher matcher = pattern.matcher(new String( local 1150 Matcher matcher = pattern.matcher(text); local [all...] |
ModeTest.java | 19 import java.util.regex.Matcher; 32 Matcher m; 35 m = p.matcher("cAT123#dog345"); 41 m = p.matcher("cAt123#doG345"); 49 m = p.matcher("cAt123#doG345"); 59 Matcher m; 62 m = p.matcher("foobar"); 67 m = p.matcher("barfoo"); 71 m = p.matcher("foobar"); 74 m = p.matcher("barfoo") [all...] |
PatternTest.java | 21 import java.util.regex.Matcher; 51 assertTrue(p.matcher("abcd").matches()); 160 Matcher mat; 165 mat = pat.matcher(testString); 171 mat = pat.matcher(testString); 177 mat = pat.matcher(testString); 183 mat = pat.matcher(testString); 189 mat = pat.matcher(testString); 195 mat = pat.matcher(testString); 201 mat = pat.matcher(testString) 1620 Matcher matcher = p.matcher("\\uD801\\uDC28"); local [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
PatternsTest.java | 21 import java.util.regex.Matcher; 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() [all...] |
/external/chromium/testing/gmock/test/ |
gmock-matchers_test.cc | 96 using testing::Matcher; 164 Matcher<int> GreaterThan(int n) { 176 // Returns the description of the given matcher. 178 string Describe(const Matcher<T>& m) { 184 // Returns the description of the negation of the given matcher. 186 string DescribeNegation(const Matcher<T>& m) { 248 // Tests implementing a monomorphic matcher using MatchAndExplain(). 270 Matcher<int> m = MakeMatcher(new NewEvenMatcherImpl); 277 // Tests default-constructing a matcher. 279 Matcher<double> m 3236 Matcher<int> matcher = ResultOf(&IntToStringFunction, Eq(string("foo"))); local 3244 Matcher<int> matcher = ResultOf(&IntToStringFunction, StrEq("foo")); local 3256 Matcher<int> matcher = ResultOf(&IntFunction, Ge(85)); local 3268 Matcher<int> matcher = ResultOf(&IntFunction, Eq(80)); local 3285 Matcher<double&> matcher = ResultOf(&DoubleFunction, Ref(x)); local 3307 Matcher<const string&> matcher = ResultOf(&StringFunction, Ref(s)); local 3317 Matcher<int> matcher = ResultOf(IntFunction, Matcher<signed char>(Ge(85))); local 3334 Matcher<int> matcher = ResultOf(IntToStringFunction, StrEq("foo")); local 3348 Matcher<int> matcher = ResultOf(Functor(), Eq(string("foo"))); local [all...] |
gmock-generated-internal-utils_test.cc | 43 using ::testing::Matcher; 56 CompileAssertTypesEqual<tuple<Matcher<int> >, 61 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char> >, 66 CompileAssertTypesEqual<tuple<Matcher<int>, Matcher<char>, Matcher<bool>, 67 Matcher<double>, Matcher<char*> >, 88 CompileAssertTypesEqual<tuple<Matcher<bool> >, F::ArgumentMatcherTuple>() [all...] |
/libcore/luni/src/test/java/libcore/java/util/regex/ |
OldMatcherTest.java | 20 import java.util.regex.Matcher; 30 Matcher m = pat.matcher("Today is XX-XX-XX ..."); 40 m = pat.matcher("one-cat-two-cats-in-the-yard"); 65 Matcher mat = pat.matcher(testString1); 69 assertFalse("After reset matcher should not find pattern in given input", mat.find()); 71 assertTrue("After reset matcher should find pattern in given input", mat.find()); 76 Matcher m = p.matcher("one-cat-two-cats-in-the-yard") [all...] |
/external/easymock/src/org/easymock/internal/ |
LegacyMatcherProvider.java | 48 public void setDefaultMatcher(ArgumentsMatcher matcher) {
52 "default matcher can only be set once directly after creation of the MockControl"));
54 defaultMatcher = matcher;
58 public void setMatcher(Method method, ArgumentsMatcher matcher) {
59 if (matchers.containsKey(method) && matchers.get(method) != matcher) {
66 + "), a matcher has already been set"));
68 matchers.put(method, matcher);
96 for (Map.Entry<Method, ArgumentsMatcher> matcher : matchers.entrySet()) {
97 map.put(new MethodSerializationWrapper(matcher.getKey()), matcher
[all...] |
ExpectedInvocation.java | 34 private final org.easymock.ArgumentsMatcher matcher;
field in class:ExpectedInvocation 45 org.easymock.ArgumentsMatcher matcher) {
47 this.matcher = matcher;
48 this.matchers = (matcher == null) ? createMissingMatchers(invocation,
77 && ((this.matcher == null && other.matcher == null) || (this.matcher != null && this.matcher
78 .equals(other.matcher)))
[all...] |
/external/chromium/testing/gmock/include/gmock/ |
gmock-matchers.h | 55 // To implement a matcher Foo for type T, define: 58 // 2. a factory function that creates a Matcher<T> object from a 62 // to write "v" instead of "Eq(v)" where a Matcher is expected, which 64 // ownership management as Matcher objects can now be copied like 68 // used by a matcher to explain why a value matches or doesn't match. 94 // the match result. A matcher's MatchAndExplain() method can use 108 // The implementation of a matcher. 114 // Returns true iff the matcher matches x; also explains the match 117 // example, the MatchAndExplain() method of the Pointee(...) matcher 120 // You should override this method when defining a new matcher 535 typename tuple_element<N - 1, MatcherTuple>::type matcher = local 1479 const Matcher<const T&> matcher = MatcherCast<const T&>(matcher_); local [all...] |
/external/chromium/testing/gmock/include/gmock/internal/ |
gmock-generated-internal-utils.h | 47 class Matcher; 64 // MatcherTuple<T>::type is a tuple type where each field is a Matcher 76 typedef ::std::tr1::tuple<Matcher<A1> > type; 81 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2> > type; 86 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3> > type; 91 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3> [all...] |
/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) 1757 Matcher matcher = p.matcher("\\uD801\\uDC28"); local [all...] |
Pattern2Test.java | 19 import java.util.regex.Matcher; 26 * Tests simple Pattern compilation and Matcher methods 34 Matcher m1 = p.matcher("foo123"); 39 Matcher m2 = p.matcher("fox"); 53 Matcher m; 58 m = p.matcher("foobar"); 107 Matcher m; 111 m = p.matcher("p1#q3p2q42p5p71p63#q888") 1214 Matcher matcher = pattern.matcher(new String( local 1306 Matcher matcher = pattern.matcher(text); local [all...] |
/external/icu4c/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/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);
|
/sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/ |
LogCatStackTraceParser.java | 18 import java.util.regex.Matcher; 42 return EXCEPTION_LINE_PATTERN.matcher(line).find(); 52 Matcher m = EXCEPTION_LINE_PATTERN.matcher(line); 62 Matcher m = EXCEPTION_LINE_PATTERN.matcher(line); 72 Matcher m = EXCEPTION_LINE_PATTERN.matcher(line);
|
/ndk/sources/host-tools/sed-4.2.1/testsuite/ |
recall2.sed | 2 # if they are used in an address, so that the matcher does not
|