/libcore/luni/src/main/java/java/util/regex/ |
Splitter.java | 93 Matcher matcher = new Matcher(pattern, input); local 95 while (matcher.find() && list.size() + 1 < maxSize) { 96 list.add(input.substring(begin, matcher.start())); 97 begin = matcher.end();
|
/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/protobuf/java/src/main/java/com/google/protobuf/ |
TextFormat.java | 45 import java.util.regex.Matcher; 403 * us. (Barely: We need {@code Matcher.usePattern()}, which is new in 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()) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/editors/xml/ |
HyperlinksTest.java | 56 assertTrue(Hyperlinks.CLASS_PATTERN.matcher("com.android.Foo").matches()); 57 assertTrue(Hyperlinks.CLASS_PATTERN.matcher("com.android.pk_g.Foo_Bar1"). 59 assertTrue(Hyperlinks.CLASS_PATTERN.matcher("com.android.Foo$Inner").matches()); 63 //assertFalse(XmlHyperlinkResolver.CLASS_PATTERN.matcher("Foo.bar").matches()); 64 assertTrue(Hyperlinks.CLASS_PATTERN.matcher("Foo.bar").matches()); 66 assertFalse(Hyperlinks.CLASS_PATTERN.matcher("LinearLayout").matches()); 67 assertFalse(Hyperlinks.CLASS_PATTERN.matcher(".").matches()); 68 assertFalse(Hyperlinks.CLASS_PATTERN.matcher(".F").matches()); 69 assertFalse(Hyperlinks.CLASS_PATTERN.matcher("f.").matches()); 70 assertFalse(Hyperlinks.CLASS_PATTERN.matcher("Foo").matches()) [all...] |
/external/proguard/src/proguard/util/ |
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]));
|
ListParser.java | 77 // Prepend the entry matcher. 98 // Wrap the matcher if the regular expression starts with a '!' negator. 124 StringMatcher matcher = parser.parse(args[0]); local 129 System.out.println(" -> match = "+matcher.matches(args[index]));
|
NameParser.java | 50 // Create a matcher for the wildcard and, recursively, for the 64 // Create a matcher for the wildcard and, recursively, for the 76 // Return a matcher for the fixed first part of the regular expression, 93 StringMatcher matcher = parser.parse(args[0]); local 98 System.out.println(" -> match = "+matcher.matches(args[index]));
|
/external/v8/test/cctest/ |
test-log.cc | 251 static void CheckThatProfilerWorks(LogBufferMatcher* matcher) { 260 CHECK_GT(matcher->GetNextChunk(), 0); 262 CHECK_NE(NULL, matcher->Find(code_creation)); 269 matcher->log_pos(), matcher->log_pos(), matcher->log_pos()); 287 CHECK_GT(matcher->GetNextChunk(), 0); 288 matcher->PrintBuffer(); 289 CHECK_NE(NULL, matcher->Find(code_creation)); 291 const bool ticks_found = matcher->Find(tick) != NULL 306 LogBufferMatcher matcher; local 536 LogBufferMatcher matcher; local 586 LogBufferMatcher matcher; local 621 LogBufferMatcher matcher; local [all...] |
/development/samples/Wiktionary/src/com/example/android/wiktionary/ |
ExtendedWikiHelper.java | 30 import java.util.regex.Matcher; 111 * simplify {@link Matcher#replaceAll(String)}. 148 Matcher m = mPattern.matcher(input); 217 !sInvalidWord.matcher(foundWord).find()) { 251 Matcher sectionMatcher = sSectionSplit.matcher(wikiText); 255 sValidSections.matcher(title).matches()) {
|
/external/apache-harmony/regex/src/test/java/org/apache/harmony/tests/java/util/regex/ |
Matcher2Test.java | 19 import java.util.regex.Matcher; 26 * Tests Matcher methods 32 Matcher m = p.matcher("bar"); 39 Matcher m = p.matcher("bar"); 90 Matcher m = p.matcher("foo1barzfoo2baryfoozbar5"); 227 Matcher mat = pat.matcher(str) [all...] |
/external/icu4c/i18n/ |
quant.h | 117 UnicodeFunctor* matcher; // owned member in class:Quantifier
|
repattrn.cpp | 432 // matcher(UnicodeString, err) 435 RegexMatcher *RegexPattern::matcher(const UnicodeString &input, function in class:RegexPattern 437 RegexMatcher *retMatcher = matcher(status); 446 // matcher, UText mode 448 RegexMatcher *RegexPattern::matcher(UText *input, function in class:RegexPattern 451 RegexMatcher *retMatcher = matcher(status); 460 RegexMatcher *RegexPattern::matcher(const UChar * /*input*/, 473 // matcher(status) 476 RegexMatcher *RegexPattern::matcher(UErrorCode &status) const { function in class:RegexPattern 512 RegexMatcher *matcher = NULL local 536 RegexMatcher *matcher = NULL; local [all...] |
/external/jsr305/ri/src/main/java/javax/annotation/ |
MatchesPattern.java | 24 if (p.matcher(((String) value)).matches())
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
Matcher2Test.java | 23 * Tests Matcher methods 30 Matcher m = p.matcher("bar"); 37 Matcher m = p.matcher("bar"); 88 Matcher m = p.matcher("foo1barzfoo2baryfoozbar5"); 225 Matcher mat = pat.matcher(str);
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
BaseImageList.java | 28 import java.util.regex.Matcher; 170 Matcher matcher = sPathWithId.matcher(path); local 171 return matcher.matches() ? matcher.group(1) : path;
|
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/ |
GetPropReceiver.java | 19 import java.util.regex.Matcher; 54 Matcher m = GETPROP_PATTERN.matcher(line);
|
NativeStackCallInfo.java | 19 import java.util.regex.Matcher; 60 Matcher m = SOURCE_NAME_PATTERN.matcher(sourceFile);
|
/frameworks/base/test-runner/src/android/test/ |
MoreAsserts.java | 29 import java.util.regex.Matcher; 224 Matcher matcher = getMatcher(expectedRegex, actual); local 225 if (!matcher.matches()) { 228 return matcher; 242 * and fails with {@code message} if it does not. The Matcher is returned in 252 Matcher matcher = getMatcher(expectedRegex, actual); local 253 if (!matcher.find()) { 256 return matcher; 276 Matcher matcher = getMatcher(expectedRegex, actual); local 299 Matcher matcher = getMatcher(expectedRegex, actual); local [all...] |
/external/easymock/src/org/easymock/internal/ |
ReplayState.java | 136 public void setMatcher(Method method, org.easymock.ArgumentsMatcher matcher) {
141 public void setDefaultMatcher(org.easymock.ArgumentsMatcher matcher) {
|
/sdk/ide_common/src/com/android/ide/common/resources/configuration/ |
LanguageQualifier.java | 39 if (sLanguagePattern.matcher(segment).matches()) { 55 if (sLanguagePattern.matcher(segment).matches()) {
|
NetworkCodeQualifier.java | 19 import java.util.regex.Matcher; 42 Matcher m = sNetworkCodePattern.matcher(segment); 108 Matcher m = sNetworkCodePattern.matcher(value);
|
RegionQualifier.java | 19 import java.util.regex.Matcher; 40 Matcher m = sRegionPattern.matcher(segment); 58 if (sRegionPattern.matcher(segment).matches()) {
|
/external/bluetooth/glib/gio/ |
gfileinfo.h | [all...] |
/external/guava/src/com/google/common/base/ |
Splitter.java | 26 import java.util.regex.Matcher; 127 * @return a splitter, with default settings, that uses this matcher 202 checkArgument(!separatorPattern.matcher("").matches(), 208 final Matcher matcher = separatorPattern.matcher(toSplit); 211 return matcher.find(start) ? matcher.start() : -1; 215 return matcher.end();
|
/libcore/luni/src/main/java/java/lang/ |
HexStringParser.java | 20 import java.util.regex.Matcher; 104 Matcher matcher = PATTERN.matcher(hexString); local 105 if (!matcher.matches()) { 110 String signStr = matcher.group(1); 111 String significantStr = matcher.group(2); 112 String exponentStr = matcher.group(3);
|