HomeSort by relevance Sort by last modified time
    Searched full:matcher (Results 1 - 25 of 349) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /libcore/luni/src/main/native/
java_util_regex_Matcher.cpp 17 #define LOG_TAG "Matcher"
125 MatcherAccessor matcher(env, addr, javaText, false);
126 UBool result = matcher->find(startIndex, matcher.status());
128 matcher.updateOffsets(offsets);
134 MatcherAccessor matcher(env, addr, javaText, false);
135 if (matcher.status() != U_ZERO_ERROR) {
138 UBool result = matcher->find();
140 matcher.updateOffsets(offsets);
146 MatcherAccessor matcher(env, addr)
    [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();
42 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches();
45 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches();
48 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches();
56 t = Patterns.WEB_URL.matcher("http://www.google.com").matches();
60 t = Patterns.WEB_URL.matcher("http://www.google.me").matches();
62 t = Patterns.WEB_URL.matcher("google.me").matches()
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/regex/
OldMatcherTest.java 23 import java.util.regex.Matcher;
28 value = Matcher.class,
51 Matcher m = pat.matcher("Today is XX-XX-XX ...");
61 m = pat.matcher("one-cat-two-cats-in-the-yard");
82 * @test java.util.regex.Matcher#reset(String)
96 Matcher mat = pat.matcher(testString1);
100 assertFalse("After reset matcher should not find pattern in given input", mat.find());
102 assertTrue("After reset matcher should find pattern in given input", mat.find())
    [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...]
ILegacyMatcherMethods.java 23 void setDefaultMatcher(org.easymock.ArgumentsMatcher matcher);
26 void setMatcher(Method method, org.easymock.ArgumentsMatcher matcher);
  /libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
Pattern2Test.java 25 import java.util.regex.Matcher;
32 * Tests simple Pattern compilation and Matcher methods
46 Matcher m1 = p.matcher("foo123");
51 Matcher m2 = p.matcher("fox");
66 notes = "Verifies compile(String regex) method and matcher for created pattern.",
72 notes = "Verifies compile(String regex) method and matcher for created pattern.",
73 method = "matcher",
79 Matcher m
1366 Matcher matcher = pattern.matcher(new String( local
1478 Matcher matcher = pattern.matcher(text); local
    [all...]
PatternTest.java 21 import java.util.regex.Matcher;
97 assertNotNull(p.matcher("bcde"));
98 assertNotSame(p.matcher("a"), p.matcher("a"));
278 Matcher mat;
283 mat = pat.matcher(testString);
289 mat = pat.matcher(testString);
295 mat = pat.matcher(testString);
301 mat = pat.matcher(testString);
307 mat = pat.matcher(testString)
2376 Matcher matcher = p.matcher("\\uD801\\uDC28"); local
    [all...]
ModeTest.java 26 import java.util.regex.Matcher;
52 Matcher m;
55 m = p.matcher("cAT123#dog345");
62 m = p.matcher("cAt123#doG345");
71 m = p.matcher("cAt123#doG345");
94 Matcher m;
97 m = p.matcher("foobar");
102 m = p.matcher("barfoo");
107 m = p.matcher("foobar");
110 m = p.matcher("barfoo")
    [all...]
  /external/chromium/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;
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);
ClassNameParser.java 73 // 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]); local
208 System.out.println(" -> match = "+matcher.matches(args[index]))
    [all...]
FileNameParser.java 51 // Create a matcher for the wildcard and, recursively, for the
65 // Create a matcher for the wildcard and, recursively, for the
79 // Create a matcher for the wildcard and, recursively, for the
91 // Return a matcher for the fixed first part of the regular expression,
108 StringMatcher matcher = parser.parse(args[0]); local
113 System.out.println(" -> match = "+matcher.matches(args[index]));
  /frameworks/base/tests/CoreTests/android/core/
RegexTest.java 23 import java.util.regex.Matcher;
27 * Tests basic functionality of Pattern and Matcher classes.
33 /* Tests class Matcher */
36 Matcher m = p.matcher("bcd");
41 m = p.matcher("abcdefg");
45 m = p.matcher("bcdefg");
49 m = p.matcher("abcd");
54 m = p.matcher("abc");
60 m = p.matcher("abc")
    [all...]
  /external/bluetooth/glib/gio/
gfileinfo.c 66 /* We use this nasty thing, because NULL is a valid attribute matcher (matches nothing) */
88 static gboolean g_file_attribute_matcher_matches_id (GFileAttributeMatcher *matcher,
1885 GFileAttributeMatcher *matcher; local
    [all...]
  /external/v8/test/cctest/
test-parsing.cc 64 i::KeywordMatcher matcher; local
71 CHECK_EQ(i::Token::IN, matcher.token());
73 CHECK_EQ(i::Token::IDENTIFIER, matcher.token());
75 matcher.AddChar(keyword[j]);
77 CHECK_EQ(key_token.token, matcher.token());
79 matcher.AddChar('z');
80 CHECK_EQ(i::Token::IDENTIFIER, matcher.token());
82 matcher.AddChar('i');
83 matcher.AddChar('f');
84 CHECK_EQ(i::Token::IDENTIFIER, matcher.token())
90 i::KeywordMatcher matcher; local
    [all...]
  /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/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...]
  /external/apache-http/src/org/apache/http/protocol/
HttpRequestHandlerRegistry.java 53 private final UriPatternMatcher matcher; field in class:HttpRequestHandlerRegistry
56 matcher = new UriPatternMatcher();
60 matcher.register(pattern, handler);
64 matcher.unregister(pattern);
68 matcher.setHandlers(map);
72 return (HttpRequestHandler) matcher.lookup(requestURI);
80 return matcher.matchUriRequestPattern(pattern, requestUri);
  /external/icu4c/test/intltest/
regextst.cpp 195 REMatcher = REPattern->matcher(unEscapedInput, status);
197 errln("RegexTest failure in REPattern::matcher() at line %d. Status = %s\n",
271 REMatcher = REPattern->matcher(&inputText, RegexPattern::PATTERN_IS_UTEXT, status);
273 errln("RegexTest failure in REPattern::matcher() at line %d (UTF8). Status = %s\n",
536 RegexMatcher matcher(&pattern, 0, status);
542 matcher.reset(&input);
544 REGEX_ASSERT_UTEXT("abc", matcher.inputText());
546 matcher.reset(matcher.inputText());
548 REGEX_ASSERT_UTEXT("abc", matcher.inputText())
713 RegexMatcher *matcher = pat->matcher(data, status); local
773 RegexMatcher *matcher = pat->matcher(data, status); local
827 RegexMatcher *matcher = pat->matcher(data, status); local
1134 RegexMatcher *matcher = pat->matcher(data, status); local
1749 RegexMatcher *matcher = pat->matcher(&input, RegexPattern::PATTERN_IS_UTEXT, status); local
1859 RegexMatcher *matcher = pat->matcher(&input, RegexPattern::PATTERN_IS_UTEXT, status); local
1919 RegexMatcher *matcher = pat->matcher(&input, RegexPattern::PATTERN_IS_UTEXT, status); local
2145 RegexMatcher *matcher = pat->matcher(&dataText, RegexPattern::PATTERN_IS_UTEXT, status); local
2958 RegexMatcher *matcher = NULL, *UTF8Matcher = NULL; local
    [all...]
  /external/chromium/third_party/icu/source/test/intltest/
regextst.cpp 140 REMatcher = REPattern->matcher(unEscapedInput, status);
142 errln("RegexTest failure in REPattern::matcher() at line %d. Status = %s\n",
412 // Matcher creation and reset.
414 RegexMatcher *m1 = pat2->matcher(inStr1, status);
534 RegexMatcher *matcher = pat->matcher(data, status); local
536 REGEX_ASSERT(matcher->lookingAt(status) == TRUE);
541 int32_t actualStart = matcher->start(i, status);
547 int32_t actualEnd = matcher->end(i, status);
555 REGEX_ASSERT(matcher->start(0, status) == matcher->start(status))
594 RegexMatcher *matcher = pat->matcher(data, status); local
648 RegexMatcher *matcher = pat->matcher(data, status); local
955 RegexMatcher *matcher = pat->matcher(data, status); local
1590 RegexMatcher *matcher = NULL; local
    [all...]

Completed in 461 milliseconds

1 2 3 4 5 6 7 8 91011>>