/external/skia/gn/ |
H A D | highest_version_dir.py | 13 regex = re.compile(sys.argv[2]) variable 15 print sorted(filter(regex.match, os.listdir(dirpath)))[-1]
|
/external/skqp/gn/ |
H A D | highest_version_dir.py | 13 regex = re.compile(sys.argv[2]) variable 15 print sorted(filter(regex.match, os.listdir(dirpath)))[-1]
|
/external/mockito/src/main/java/org/mockito/internal/matchers/ |
H A D | Find.java | 9 import java.util.regex.Pattern; 15 private final String regex; field in class:Find 17 public Find(String regex) { argument 18 this.regex = regex; 22 return actual != null && Pattern.compile(regex).matcher(actual).find(); 26 return "find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")";
|
H A D | Matches.java | 9 import java.util.regex.Pattern; 16 public Matches(String regex) { argument 17 this(Pattern.compile(regex));
|
/external/easymock/src/org/easymock/internal/matchers/ |
H A D | Find.java | 19 import java.util.regex.Pattern;
27 private final String regex;
field in class:Find 29 public Find(String regex) {
argument 30 this.regex = regex;
35 && Pattern.compile(regex).matcher((String) actual).find();
39 buffer.append("find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")");
|
H A D | Matches.java | 26 private final String regex;
field in class:Matches 28 public Matches(String regex) {
argument 29 this.regex = regex;
33 return (actual instanceof String) && ((String) actual).matches(regex);
37 buffer.append("matches(\"" + regex.replaceAll("\\\\", "\\\\\\\\")
|
/external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/text/ |
H A D | MatchesPattern.java | 7 import java.util.regex.Pattern; 28 * exactly matches the given {@link java.util.regex.Pattern}. 36 * exactly matches the given regular expression, treated as a {@link java.util.regex.Pattern}. 38 public static Matcher<String> matchesPattern(String regex) { argument 39 return new MatchesPattern(Pattern.compile(regex));
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
H A D | UnicodeRegex.java | 27 import java.util.regex.Pattern; 46 // particularly for the regex style supported. 71 * regex pattern string and interpreting the character classes (\p{...}, 73 * this utility, Java regex expressions can be updated to work with the 76 * consistent with Java regex, so be careful of the differences. 78 * <p>In the future, we may extend this to support other regex packages. 80 * @regex A modified Java regex pattern, as in the input to 84 * @return A processed Java regex pattern, suitable for input to 88 public String transform(String regex) { argument [all...] |
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | UnicodeRegex.java | 26 import java.util.regex.Pattern; 44 // particularly for the regex style supported. 69 * regex pattern string and interpreting the character classes (\p{...}, 71 * this utility, Java regex expressions can be updated to work with the 74 * consistent with Java regex, so be careful of the differences. 76 * <p>In the future, we may extend this to support other regex packages. 78 * @regex A modified Java regex pattern, as in the input to 82 * @return A processed Java regex pattern, suitable for input to 86 public String transform(String regex) { argument [all...] |
/external/llvm/include/llvm/Support/ |
H A D | Regex.h | 49 Regex &operator=(Regex regex) { argument 50 std::swap(preg, regex.preg); 51 std::swap(error, regex.error); 54 Regex(Regex &®ex) { argument 55 preg = regex.preg; 56 error = regex.error; 57 regex.preg = nullptr; 61 /// isValid - returns the error encountered during regex compilation, or 65 /// getNumMatches - In a valid regex, return the number of parenthesized 67 /// many entries plus one for the whole regex (a [all...] |
/external/skia/src/sksl/lex/ |
H A D | NFA.h | 23 int addRegex(const RegexNode& regex) { argument 27 std::vector<int> startStates = regex.createStates(this, accept);
|
H A D | RegexParser.cpp | 16 this->regex(); 108 this->regex(); 159 void RegexParser::regex() { function in class:RegexParser 164 this->regex();
|
/external/skqp/src/sksl/lex/ |
H A D | NFA.h | 23 int addRegex(const RegexNode& regex) { argument 27 std::vector<int> startStates = regex.createStates(this, accept);
|
H A D | RegexParser.cpp | 16 this->regex(); 108 this->regex(); 159 void RegexParser::regex() { function in class:RegexParser 164 this->regex();
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
H A D | Regex.h | 50 Regex &operator=(Regex regex) { argument 51 std::swap(preg, regex.preg); 52 std::swap(error, regex.error); 55 Regex(Regex &®ex); 58 /// isValid - returns the error encountered during regex compilation, or 62 /// getNumMatches - In a valid regex, return the number of parenthesized 64 /// many entries plus one for the whole regex (as element 0). 67 /// matches - Match the regex against a given \p String. 76 /// sub - Return the result of replacing the first match of the regex in 93 /// \brief Turn String into a regex b [all...] |
/external/tensorflow/tensorflow/compiler/xla/client/ |
H A D | executable_build_options.cc | 69 string regex) { 70 generate_hlo_graph_ = std::move(regex); 68 set_generate_hlo_graph( string regex) argument
|
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/internal/ |
H A D | RegexCache.java | 21 import java.util.regex.Pattern; 35 public Pattern getPatternForRegex(String regex) { argument 36 Pattern pattern = cache.get(regex); 38 pattern = Pattern.compile(regex); 39 cache.put(regex, pattern); 45 boolean containsRegex(String regex) { argument 46 return cache.containsKey(regex);
|
/external/libtextclassifier/datetime/ |
H A D | extractor.h | 37 const DatetimeModelPattern_::Regex* regex; member in struct:libtextclassifier2::CompiledRule 39 // DatetimeModelPattern which 'regex' is part of and comes from.
|
/external/v8/src/inspector/ |
H A D | v8-regex.cc | 5 #include "src/inspector/v8-regex.h" 29 v8::Local<v8::RegExp> regex; local 32 .ToLocal(®ex)) 33 m_regex.Reset(isolate, regex); 56 v8::Local<v8::RegExp> regex = m_regex.Get(isolate); local 58 if (!regex->Get(context, toV8StringInternalized(isolate, "exec")) 65 ->Call(context, regex, arraysize(argv), argv)
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.JavaExtensions/ |
H A D | StringExtensions.cs | 107 public static string replaceAll( string str, string regex, string newValue ) argument 109 return System.Text.RegularExpressions.Regex.Replace( str, regex, newValue ); 112 public static string replaceFirst( string str, string regex, string replacement ) argument 114 return System.Text.RegularExpressions.Regex.Replace( str, regex, replacement );
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.JavaExtensions/ |
H A D | StringExtensions.cs | 103 public static string replaceAll( this string str, string regex, string newValue ) argument 105 return Regex.Replace( str, regex, newValue ); 108 public static string replaceFirst( this string str, string regex, string replacement ) argument 110 return Regex.Replace( str, regex, replacement );
|
/external/guice/extensions/servlet/src/com/google/inject/servlet/ |
H A D | ServletModule.java | 258 * @param regex Any Java-style regular expression. 261 protected final FilterKeyBindingBuilder filterRegex(String regex, String... regexes) { argument 263 .filterRegex(ImmutableList.<String>builder().add(regex).add(regexes).build()); 276 * @param regex Any Java-style regular expression. 279 protected final ServletKeyBindingBuilder serveRegex(String regex, String... regexes) { argument 281 .serveRegex(ImmutableList.<String>builder().add(regex).add(regexes).build());
|
/external/llvm/lib/Support/ |
H A D | Regex.cpp | 22 Regex::Regex(StringRef regex, unsigned Flags) { argument 25 preg->re_endp = regex.end(); 32 error = llvm_regcomp(preg, regex.data(), flags|REG_PEND); 53 /// getNumMatches - In a valid regex, return the number of parenthesized 178 // Check for regex metacharacters. This list was derived from our regex
|
/external/mockito/src/main/java/org/mockito/ |
H A D | AdditionalMatchers.java | 455 * @param regex 459 public static String find(String regex) { argument 460 reportMatcher(new Find(regex));
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
H A D | Regex.cpp | 22 Regex::Regex(StringRef regex, unsigned Flags) { argument 25 preg->re_endp = regex.end(); 30 error = llvm_regcomp(preg, regex.data(), flags|REG_EXTENDED|REG_PEND); 49 /// getNumMatches - In a valid regex, return the number of parenthesized
|