| /external/python/cpython3/Lib/test/ |
| test_faulthandler.py | 29 regex = header 30 regex += ' File "<string>", line %s in func\n' % lineno1 31 regex += ' File "<string>", line %s in <module>' % lineno2 33 return '^' + (regex + '\n') * (min_count - 1) + regex 35 return '^' + regex + '$' 100 regex = r""" 106 regex = dedent(regex.format( 111 regex += '|' + other_rege [all...] |
| /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/ |
| RegexUtilitiesTest.java | 14 import java.util.regex.Matcher; 15 import java.util.regex.Pattern; 88 // verify that we can create a regex pattern and use as expected 150 UnicodeRegex regex = new UnicodeRegex(); 188 result = regex.compileBnf(lines); 190 result = regex.compileBnf(test); 197 String resolved = regex.transform(result);
|
| /external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
| RegexUtilitiesTest.java | 13 import java.util.regex.Matcher; 14 import java.util.regex.Pattern; 85 // verify that we can create a regex pattern and use as expected 147 UnicodeRegex regex = new UnicodeRegex(); 185 result = regex.compileBnf(lines); 187 result = regex.compileBnf(test); 194 String resolved = regex.transform(result);
|
| /system/extras/tools/ |
| graph_lockdep_chains | 10 echo "Usage: ${progname} [flags...] [regex...] < input-file > output-file" 20 echo " Show only primary references for regex matches" 22 echo " Cluster the primary references for regex matches" 31 echo "to hit a bug in cairo rendering at scale. Not having a set of regex matches for" 176 echo "WARNING: no regex specified will give you what you deserve!" >&2 179 echo "WARNING: --focus without regex, ignored" >&2 182 echo "WARNING: --cluster without regex, ignored" >&2
|
| /external/cn-cbor/cmake/ |
| CoverallsGenerateGcov.cmake | 66 string(REGEX REPLACE "\\*" ";" COVERAGE_SRCS ${COVERAGE_SRCS}) 130 string(REGEX REPLACE "\\.gcov$" "" SRC_FILENAME_TMP ${_GCOV_FILENAME_WEXT}) 131 string(REGEX REPLACE "\#" "/" SRC_FILENAME_TMP ${SRC_FILENAME_TMP}) 288 string(REGEX REPLACE "\"" "\\\\\"" GCOV_FILE_SOURCE "${GCOV_FILE_SOURCE}") 296 #string(REGEX REPLACE "\u([a-fA-F0-9]{4})" "\\\\u\\1" GCOV_FILE_SOURCE "${GCOV_FILE_SOURCE}") 309 string(REGEX REPLACE 316 string(REGEX MATCH "LCOV_EXCL_START" START_SKIP "${GCOV_LINE}") 317 string(REGEX MATCH "LCOV_EXCL_END" END_SKIP "${GCOV_LINE}") 318 string(REGEX MATCH "LCOV_EXCL_LINE" LINE_SKIP "${GCOV_LINE}") 375 string(REGEX REPLACE ",[ ]*$" "" GCOV_FILE_COVERAGE ${GCOV_FILE_COVERAGE} [all...] |
| /libcore/ojluni/src/main/java/javax/net/ssl/ |
| SNIHostName.java | 36 import java.util.regex.Pattern; 292 * @param regex 293 * the <a href="{@docRoot}/java/util/regex/Pattern.html#sum"> 297 * @throws NullPointerException if {@code regex} is 299 * @throws java.util.regex.PatternSyntaxException if the regular expression's 302 public static SNIMatcher createSNIMatcher(String regex) { 303 if (regex == null) { 308 return new SNIHostNameMatcher(regex); 332 * @param regex 333 * the <a href="{@docRoot}/java/util/regex/Pattern.html#sum" [all...] |
| /test/vts-testcase/kernel/api/sysfs/ |
| KernelApiSysfsTest.py | 52 def MatchRegex(self, regex, string): 53 '''Check whether a string completely matches a given regex. 58 regex: string, regex pattern to match 61 pattern = re.compile(regex) 63 message = 'String "%s" is not a complete match of regex "%s".' % ( 64 string, regex) 118 regex = '(\d+(-\d+)?)(,\d+(-\d+)?)*' 121 self.MatchRegex(regex, content)
|
| /art/tools/checker/ |
| README | 39 Actual regex patterns can be inserted enclosed in '{{' and '}}' brackets. If 40 curly brackets need to be used inside the body of the regex, they need to be 42 the invalid regex 'foo{2', but '{{(fo{2})}}' will match 'foo'. 44 Regex patterns can be named and referenced later. A new variable is defined 45 with '<<name:regex>>' and can be referenced with '<<name>>'. Variables are
|
| /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/ |
| CommonToken.cs | 35 using Regex = System.Text.RegularExpressions.Regex; 205 txt = Regex.Replace(txt, "\n", "\\\\n"); 206 txt = Regex.Replace(txt, "\r", "\\\\r"); 207 txt = Regex.Replace(txt, "\t", "\\\\t");
|
| /external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/ |
| CommonToken.cs | 36 using Regex = System.Text.RegularExpressions.Regex; 242 txt = Regex.Replace( txt, "\n", "\\\\n" ); 243 txt = Regex.Replace( txt, "\r", "\\\\r" ); 244 txt = Regex.Replace( txt, "\t", "\\\\t" );
|
| /external/autotest/site_utils/stats/ |
| apache_error_log_metrics.py | 50 @param _m: A regex match object 62 @param _m: A regex match object 75 @param _m: A regex match object 98 @param m: A regex match object 118 @param _m: A regex match object.
|
| /external/libcxx/test/std/re/re.iter/re.regiter/re.regiter.incr/ |
| post.pass.cpp | 10 // <regex> 16 #include <regex> 23 std::regex phone_numbers("\\d{3}-\\d{4}"); 61 std::regex phone_numbers("\\d{3}-\\d{4}"); 99 std::regex rex(".*");
|
| /external/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/ |
| vector.pass.cpp | 10 // <regex> 20 #include <regex> 27 std::regex phone_numbers("\\d{3}-(\\d{4})"); 58 std::regex phone_numbers("\\d{3}-(\\d{4})"); 89 std::regex phone_numbers("\\d{3}-(\\d{4})");
|
| /external/libcxx/test/std/re/re.results/re.results.form/ |
| form2.pass.cpp | 10 // <regex> 21 #include <regex> 35 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); 46 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); 58 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi")));
|
| form3.pass.cpp | 10 // <regex> 21 #include <regex> 34 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); 43 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); 52 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi")));
|
| form4.pass.cpp | 10 // <regex> 20 #include <regex> 29 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); 38 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); 47 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi")));
|
| /external/toybox/toys/pending/ |
| mdev.c | 99 // Three fields: regex, uid:gid, mode 107 // Regex to match this device 110 char *regex = strndup(pos, end2-pos); local 116 xregcomp(&match, regex, REG_EXTENDED); 119 free(regex);
|
| /external/v8/src/inspector/ |
| search-util.cc | 10 #include "src/inspector/v8-regex.h" 101 const V8Regex& regex, const String16& text) { 115 if (regex.match(line, 0, &matchLength) != -1) 145 std::unique_ptr<V8Regex> regex = createSearchRegex( local 149 scriptRegexpMatchesByLines(*regex.get(), text);
|
| /libcore/luni/src/main/native/ |
| java_util_regex_Pattern.cpp | 26 #include "unicode/regex.h" 91 ScopedJavaUnicodeString regex(env, javaRegex); 92 if (!regex.valid()) { 95 icu::UnicodeString& regexString(regex.unicodeString()); 110 jniRegisterNativeMethods(env, "java/util/regex/Pattern", gMethods, NELEM(gMethods));
|
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/re/re.iter/re.regiter/re.regiter.incr/ |
| post.pass.cpp | 10 // <regex> 16 #include <regex> 23 std::regex phone_numbers("\\d{3}-\\d{4}"); 61 std::regex phone_numbers("\\d{3}-\\d{4}"); 99 std::regex rex(".*");
|
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/re/re.iter/re.tokiter/re.tokiter.cnstr/ |
| vector.pass.cpp | 10 // <regex> 20 #include <regex> 27 std::regex phone_numbers("\\d{3}-(\\d{4})"); 58 std::regex phone_numbers("\\d{3}-(\\d{4})"); 89 std::regex phone_numbers("\\d{3}-(\\d{4})");
|
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/re/re.results/re.results.form/ |
| form2.pass.cpp | 10 // <regex> 21 #include <regex> 35 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); 46 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); 58 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi")));
|
| form3.pass.cpp | 10 // <regex> 21 #include <regex> 34 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); 43 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); 52 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi")));
|
| form4.pass.cpp | 10 // <regex> 20 #include <regex> 29 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); 38 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi"))); 47 assert(std::regex_search(s, m, std::regex("cd((e)fg)hi")));
|
| /system/tools/hidl/c2hal/ |
| Expression.cpp | 23 #include <regex> 27 static const std::regex RE_S32("[^ul]$"); 28 static const std::regex RE_U32("[^ul]u$"); 29 static const std::regex RE_S64("[^ul](l|ll)$"); 30 static const std::regex RE_U64("[^ul](ul|ull)$");
|