/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | Globs.java | 28 import java.util.regex.PatternSyntaxException; 59 StringBuilder regex = new StringBuilder("^"); in toRegexPattern() local 73 regex.append('\\'); in toRegexPattern() 75 regex.append(next); in toRegexPattern() 79 regex.append("\\\\"); in toRegexPattern() 81 regex.append(c); in toRegexPattern() 87 regex.append("[[^\\\\]&&["); in toRegexPattern() 89 regex.append("[[^/]&&["); in toRegexPattern() 93 regex.append("\\^"); in toRegexPattern() 98 regex.append('^'); in toRegexPattern() [all …]
|
D | MimeTypesFileTypeDetector.java | 38 import java.util.regex.Matcher; 39 import java.util.regex.Pattern;
|
/libcore/ojluni/annotations/hiddenapi/java/util/regex/ |
D | Matcher.java | 27 package java.util.regex; 32 public final class Matcher implements java.util.regex.MatchResult { 34 Matcher(java.util.regex.Pattern parent, java.lang.CharSequence text) { in Matcher() 38 public java.util.regex.Pattern pattern() { in pattern() 42 public java.util.regex.MatchResult toMatchResult() { in toMatchResult() 46 public java.util.regex.Matcher usePattern(java.util.regex.Pattern newPattern) { in usePattern() 50 public java.util.regex.Matcher reset() { in reset() 54 public java.util.regex.Matcher reset(java.lang.CharSequence input) { in reset() 118 public java.util.regex.Matcher appendReplacement( in appendReplacement() 139 public java.util.regex.Matcher region(int start, int end) { in region() [all …]
|
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/ |
D | Matcher.annotated.java | 28 package java.util.regex; 32 public final class Matcher implements java.util.regex.MatchResult { 34 Matcher(@libcore.util.NonNull java.util.regex.Pattern parent, @libcore.util.NonNull java.lang.CharS… in Matcher() 36 @libcore.util.NonNull public java.util.regex.Pattern pattern() { throw new RuntimeException("Stub!"… in pattern() 38 @libcore.util.NonNull public java.util.regex.MatchResult toMatchResult() { throw new RuntimeExcepti… in toMatchResult() 40 @libcore.util.NonNull public java.util.regex.Matcher usePattern(@libcore.util.NonNull java.util.reg… in usePattern() 42 @libcore.util.NonNull public java.util.regex.Matcher reset() { throw new RuntimeException("Stub!");… in reset() 44 @libcore.util.NonNull public java.util.regex.Matcher reset(@libcore.util.NonNull java.lang.CharSequ… in reset() 76 @libcore.util.NonNull public java.util.regex.Matcher appendReplacement(@libcore.util.NonNull java.l… in appendReplacement() 84 @libcore.util.NonNull public java.util.regex.Matcher region(int start, int end) { throw new Runtime… in region() [all …]
|
D | Pattern.annotated.java | 28 package java.util.regex; 36 …bcore.util.NonNull public static java.util.regex.Pattern compile(@libcore.util.NonNull java.lang.S… in compile() argument 38 …bcore.util.NonNull public static java.util.regex.Pattern compile(@libcore.util.NonNull java.lang.S… in compile() argument 44 @libcore.util.NonNull public java.util.regex.Matcher matcher(@libcore.util.NonNull java.lang.CharSe… in matcher() 48 public static boolean matches(@libcore.util.NonNull java.lang.String regex, @libcore.util.NonNull j… in matches() argument
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | PatternSyntaxExceptionTest.java | 17 package org.apache.harmony.regex.tests.java.util.regex; 21 import java.util.regex.Pattern; 22 import java.util.regex.PatternSyntaxException; 92 String regex = "("; in testCase() local 94 Pattern.compile(regex); in testCase() 98 assertEquals(regex, e.getPattern()); in testCase() 103 String regex = "[4-"; in testCase2() local 105 Pattern.compile(regex); in testCase2() 109 assertEquals(regex, e.getPattern()); in testCase2()
|
D | Pattern2Test.java | 17 package org.apache.harmony.regex.tests.java.util.regex; 19 import java.util.regex.Matcher; 20 import java.util.regex.Pattern; 21 import java.util.regex.PatternSyntaxException;
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | TEST_MAPPING | 7 "include-filter": "org.apache.harmony.regex.tests.java.util.regex" 10 "include-filter": "libcore.java.util.regex" 13 "include-filter": "org.apache.harmony.tests.java.util.regex"
|
D | PatternSyntaxException.java | 26 package java.util.regex; 62 public PatternSyntaxException(String desc, String regex, int index) { in PatternSyntaxException() argument 64 this.pattern = regex; in PatternSyntaxException()
|
D | Pattern.java | 27 package java.util.regex; 29 import com.android.icu.util.regex.PatternNative; 961 public static Pattern compile(String regex) { in compile() argument 962 return new Pattern(regex, 0); in compile() 987 public static Pattern compile(String regex, int flags) { in compile() argument 988 return new Pattern(regex, flags); in compile() 1069 public static boolean matches(String regex, CharSequence input) { in matches() argument 1070 Pattern p = Pattern.compile(regex); in matches()
|
D | MatchResult.java | 26 package java.util.regex;
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | SNIHostName.java | 36 import java.util.regex.Pattern; 302 public static SNIMatcher createSNIMatcher(String regex) { in createSNIMatcher() argument 303 if (regex == null) { in createSNIMatcher() 308 return new SNIHostNameMatcher(regex); in createSNIMatcher() 341 SNIHostNameMatcher(String regex) { in SNIHostNameMatcher() argument 343 pattern = Pattern.compile(regex, Pattern.CASE_INSENSITIVE); in SNIHostNameMatcher()
|
/libcore/ojluni/src/main/java/sun/net/spi/ |
D | DefaultProxySelector.java | 40 import java.util.regex.Pattern; 43 import static java.util.regex.Pattern.quote; 390 String regex = disjunctToRegex(disjunct.toLowerCase()); in toPattern() local 391 joiner.add(regex); in toPattern() 401 String regex; in disjunctToRegex() local 403 regex = ".*" + quote(disjunct.substring(1)); in disjunctToRegex() 405 regex = quote(disjunct.substring(0, disjunct.length() - 1)) + ".*"; in disjunctToRegex() 407 regex = quote(disjunct); in disjunctToRegex() 409 return regex; in disjunctToRegex()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | ReplaceTest.java | 17 package org.apache.harmony.tests.java.util.regex; 19 import java.util.regex.Matcher; 20 import java.util.regex.Pattern; 21 import java.util.regex.PatternSyntaxException;
|
D | ModeTest.java | 17 package org.apache.harmony.tests.java.util.regex; 19 import java.util.regex.Matcher; 20 import java.util.regex.Pattern; 21 import java.util.regex.PatternSyntaxException;
|
D | Matcher2Test.java | 17 package org.apache.harmony.tests.java.util.regex; 19 import java.util.regex.Matcher; 20 import java.util.regex.Pattern; 21 import java.util.regex.PatternSyntaxException;
|
D | PatternErrorTest.java | 17 package org.apache.harmony.tests.java.util.regex; 19 import java.util.regex.Pattern;
|
D | SplitTest.java | 18 package org.apache.harmony.tests.java.util.regex; 21 import java.util.regex.Pattern; 22 import java.util.regex.PatternSyntaxException; 25 import java.util.regex.*;
|
/libcore/ojluni/src/main/java/java/lang/ |
D | String.java | 39 import java.util.regex.Pattern; 40 import java.util.regex.PatternSyntaxException; 2211 public boolean matches(String regex) { in matches() argument 2212 return Pattern.matches(regex, this); in matches() 2268 public String replaceFirst(String regex, String replacement) { in replaceFirst() argument 2269 return Pattern.compile(regex).matcher(this).replaceFirst(replacement); in replaceFirst() 2313 public String replaceAll(String regex, String replacement) { in replaceAll() argument 2314 return Pattern.compile(regex).matcher(this).replaceAll(replacement); in replaceAll() 2475 public String[] split(String regex, int limit) { in split() argument 2478 String[] fast = Pattern.fastSplit(regex, this, limit); in split() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SchemePrefixBenchmark.java | 21 import java.util.regex.Matcher; 22 import java.util.regex.Pattern;
|
/libcore/metrictests/memory/apps/src/libcore/heapdumper/ |
D | Actions.java | 22 import java.util.regex.Matcher; 23 import java.util.regex.Pattern;
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/ |
D | String.annotated.java | 32 import java.util.regex.Pattern; 33 import java.util.regex.PatternSyntaxException; 146 public boolean matches(@libcore.util.NonNull java.lang.String regex) { throw new RuntimeException("… in matches() argument 150 …blic java.lang.String replaceFirst(@libcore.util.NonNull java.lang.String regex, @libcore.util.Non… in replaceFirst() argument 152 …public java.lang.String replaceAll(@libcore.util.NonNull java.lang.String regex, @libcore.util.Non… in replaceAll() argument 156 …ing @libcore.util.NonNull [] split(@libcore.util.NonNull java.lang.String regex, int limit) { thro… in split() argument 158 …ing @libcore.util.NonNull [] split(@libcore.util.NonNull java.lang.String regex) { throw new Runti… in split() argument
|
/libcore/support/src/test/java/libcore/java/security/ |
D | CpuFeatures.java | 150 String regex = "^" + fieldName + "\\s*:.*\\baes\\b.*"; in cpuFieldContainsAes() local 153 if (line.matches(regex)) { in cpuFieldContainsAes()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | String.java | 326 public boolean matches(java.lang.String regex) { in matches() argument 334 public java.lang.String replaceFirst(java.lang.String regex, java.lang.String replacement) { in replaceFirst() argument 338 public java.lang.String replaceAll(java.lang.String regex, java.lang.String replacement) { in replaceAll() argument 347 public java.lang.String[] split(java.lang.String regex, int limit) { in split() argument 351 public java.lang.String[] split(java.lang.String regex) { in split() argument
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
D | OldAndroidRegexTest.java | 17 package libcore.java.util.regex; 19 import java.util.regex.Matcher; 20 import java.util.regex.Pattern;
|