| /tools/tradefederation/core/src/com/android/tradefed/util/ |
| ConfigCompletor.java | 21 import java.util.regex.Matcher; 22 import java.util.regex.Pattern;
|
| /cts/common/device-side/util/src/com/android/compatibility/common/util/ |
| PropertyUtil.java | 28 import java.util.regex.Matcher; 29 import java.util.regex.Pattern; 127 public static boolean propertyMatches(String property, String regex) { 128 if (regex == null || regex.isEmpty()) { 133 return (value == null) ? false : value.matches(regex);
|
| /external/caliper/caliper/src/test/resources/com/google/caliper/bridge/ |
| jdk6-compilation.txt | 150 132 java.util.regex.Pattern$BmpCharProperty::match (50 bytes) 151 133 java.util.regex.Matcher::search (109 bytes) 152 134 java.util.regex.Pattern$Curly::match0 (174 bytes) 153 132 made not entrant (2) java.util.regex.Pattern$BmpCharProperty::match (50 bytes) 158 139 java.util.regex.Pattern$Start::match (109 bytes) 160 141 java.util.regex.Pattern$Curly::match (86 bytes) 162 143 java.util.regex.Pattern::has (15 bytes) 163 144 java.util.regex.Matcher::reset (83 bytes) 164 145 java.util.regex.Pattern$Node::match (27 bytes) 165 146 java.util.regex.Pattern$CharProperty::match (56 bytes [all...] |
| /external/chromium-trace/catapult/common/py_vulcanize/third_party/rjsmin/ |
| README.rst | 30 - there is no error detection: unterminated string, regex and comment 32 - Control characters inside string and regex literals are left untouched; they 34 - Newline characters are not allowed inside string and regex literals, except 36 - "return /regex/" is recognized correctly. 37 - Line terminators after regex literals are handled more sensibly 44 Since most parts of the logic are handled by the regex engine it's way faster
|
| /external/google-benchmark/ |
| CMakeLists.txt | 39 string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" VERSION ${GIT_VERSION}) 57 string(REGEX REPLACE "[-/]W[1-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") 73 string(REGEX REPLACE "[-/]INCREMENTAL" "/INCREMENTAL:NO" CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO}") 75 string(REGEX REPLACE "[-/]INCREMENTAL" "/INCREMENTAL:NO" CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO}") 77 string(REGEX REPLACE "[-/]INCREMENTAL" "/INCREMENTAL:NO" CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO}") 195 message(WARNING "Using std::regex with exceptions disabled is not fully supported")
|
| /external/libcxx/test/std/re/re.alg/re.alg.search/ |
| egrep.pass.cpp | 10 // <regex> 19 #include <regex> 30 assert(std::regex_search(s, m, std::regex("tour\nto\ntournament", 46 assert(std::regex_search(s, m, std::regex("tour\n\ntournament", 62 assert(std::regex_search(s, m, std::regex("(tour|to|tournament)+\ntourna", 78 assert(std::regex_search(s, m, std::regex("(tour|to|tournament)+\ntourna",
|
| /external/libcxx/test/std/re/re.iter/re.tokiter/re.tokiter.incr/ |
| post.pass.cpp | 10 // <regex> 16 #include <regex> 23 std::regex phone_numbers("\\d{3}-\\d{4}"); 62 std::regex phone_numbers("\\d{3}-\\d{4}"); 105 std::regex phone_numbers("\\d{3}-\\d{4}"); 121 std::regex phone_numbers("\\d{3}-(\\d{4})");
|
| /external/libcxx/utils/google-benchmark/ |
| CMakeLists.txt | 39 string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" VERSION ${GIT_VERSION}) 57 string(REGEX REPLACE "[-/]W[1-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") 73 string(REGEX REPLACE "[-/]INCREMENTAL" "/INCREMENTAL:NO" CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO}") 75 string(REGEX REPLACE "[-/]INCREMENTAL" "/INCREMENTAL:NO" CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO}") 77 string(REGEX REPLACE "[-/]INCREMENTAL" "/INCREMENTAL:NO" CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO}") 195 message(WARNING "Using std::regex with exceptions disabled is not fully supported")
|
| /prebuilts/gdb/darwin-x86/share/gdb/python/gdb/function/ |
| caller_is.py | 57 $_caller_matches(regex [, number_of_frames]) 61 regex: The regular expression to compare the function's name with. 69 True if the function's name at the specified frame matches regex. 125 $_any_caller_matches(regex [, number_of_frames]) 129 regex: The regular expression to compare the function's name with. 137 True if any function's name matches regex.
|
| /prebuilts/gdb/linux-x86/share/gdb/python/gdb/function/ |
| caller_is.py | 57 $_caller_matches(regex [, number_of_frames]) 61 regex: The regular expression to compare the function's name with. 69 True if the function's name at the specified frame matches regex. 125 $_any_caller_matches(regex [, number_of_frames]) 129 regex: The regular expression to compare the function's name with. 137 True if any function's name matches regex.
|
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/re/re.alg/re.alg.search/ |
| egrep.pass.cpp | 10 // <regex> 19 #include <regex> 30 assert(std::regex_search(s, m, std::regex("tour\nto\ntournament", 46 assert(std::regex_search(s, m, std::regex("tour\n\ntournament", 62 assert(std::regex_search(s, m, std::regex("(tour|to|tournament)+\ntourna", 78 assert(std::regex_search(s, m, std::regex("(tour|to|tournament)+\ntourna",
|
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/re/re.iter/re.tokiter/re.tokiter.incr/ |
| post.pass.cpp | 10 // <regex> 16 #include <regex> 23 std::regex phone_numbers("\\d{3}-\\d{4}"); 62 std::regex phone_numbers("\\d{3}-\\d{4}"); 105 std::regex phone_numbers("\\d{3}-\\d{4}"); 121 std::regex phone_numbers("\\d{3}-(\\d{4})");
|
| /prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/utils/google-benchmark/ |
| CMakeLists.txt | 27 string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" VERSION ${GIT_VERSION}) 45 string(REGEX REPLACE "[-/]W[1-4]" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") 61 string(REGEX REPLACE "[-/]INCREMENTAL" "/INCREMENTAL:NO" CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO}") 63 string(REGEX REPLACE "[-/]INCREMENTAL" "/INCREMENTAL:NO" CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO}") 65 string(REGEX REPLACE "[-/]INCREMENTAL" "/INCREMENTAL:NO" CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO "${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO}") 186 message(WARNING "Using std::regex with exceptions disabled is not fully supported")
|
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/ |
| constraintquery.py | 81 def _match_expr(self, expr, criteria, indirect, regex): 90 regex If regular expression matching should be used. 100 return match_in_set(obj, criteria, regex) 108 self.log.debug("User: {0.user!r}, regex: {0.user_regex}".format(self)) 109 self.log.debug("Role: {0.role!r}, regex: {0.role_regex}".format(self)) 110 self.log.debug("Type: {0.type_!r}, regex: {0.type_regex}".format(self))
|
| /test/suite_harness/common/host-side/util/src/com/android/compatibility/common/util/ |
| PropertyUtil.java | 23 import java.util.regex.Matcher; 24 import java.util.regex.Pattern; 123 public static boolean propertyMatches(ITestDevice device, String property, String regex) 125 if (regex == null || regex.isEmpty()) { 130 return (value == null) ? false : value.matches(regex);
|
| /external/selinux/libselinux/utils/ |
| sefcontext_compile.c | 15 #include "../src/regex.h" 84 * char - char array of the original regex string including the stem. 87 * s32 - stemid associated with the regex 90 * u32 - data length of the pcre regex 91 * char - a bufer holding the raw pcre regex info 92 * u32 - data length of the pcre regex study daya 93 * char - a buffer holding the raw pcre regex study data 125 /* write version of the regex back-end */ 137 /* write regex arch string */ 183 struct regex_data *re = specs[i].regex; [all...] |
| /external/swiftshader/third_party/LLVM/utils/FileCheck/ |
| FileCheck.cpp | 23 #include "llvm/Support/Regex.h" 63 /// RegEx - If non-empty, this is a regex pattern. 125 // Check to see if this is a fixed string, or if it has regex pieces. 137 // Otherwise, there is at least one regex piece. Build up the regex pattern 138 // by escaping scary characters in fixed strings, building up one big regex. 140 // RegEx matches. 143 // Otherwise, this is the start of a regex match. Scan for the }}. 147 "found start of regex string with no end '}}'","error") [all...] |
| /external/llvm/utils/unittest/googletest/include/gtest/internal/ |
| gtest-death-test-internal.h | 79 static bool Create(const char* statement, const RE* regex, 143 virtual bool Create(const char* statement, const RE* regex, 150 bool Create(const char *statement, const RE *regex, const char *file, 185 # define GTEST_DEATH_TEST_(statement, predicate, regex, fail) \ 188 const ::testing::internal::RE& gtest_regex = (regex); \ 270 // regex - A regex that a macro such as EXPECT_DEATH would use to test 282 // statement and regex are compiled (and thus syntactically correct) but 288 # define GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, terminator) \ 295 ::testing::internal::RE::PartialMatch(".*", (regex)); \ [all...] |
| /external/protobuf/gtest/include/gtest/internal/ |
| gtest-death-test-internal.h | 77 static bool Create(const char* statement, const RE* regex, 137 virtual bool Create(const char* statement, const RE* regex, 144 virtual bool Create(const char* statement, const RE* regex, 154 #define GTEST_DEATH_TEST_(statement, predicate, regex, fail) \ 157 const ::testing::internal::RE& gtest_regex = (regex); \ 239 // regex - A regex that a macro such as EXPECT_DEATH would use to test 251 // statement and regex are compiled (and thus syntactically correct) but 257 #define GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, terminator) \ 264 ::testing::internal::RE::PartialMatch(".*", (regex)); \ [all...] |
| /external/python/cpython2/Lib/distutils/tests/ |
| test_filelist.py | 50 for glob, regex in ( 60 regex = regex % {'sep': sep} 61 self.assertEqual(glob_to_re(glob), regex) 132 # not regex 137 # is a regex 138 regex = re.compile('a') 140 translate_pattern(regex, anchor=True, is_regex=True), 141 regex) 143 # plain string flagged as regex [all...] |
| /external/python/cpython3/Lib/distutils/tests/ |
| test_filelist.py | 52 for glob, regex in ( 62 regex = regex % {'sep': sep} 63 self.assertEqual(glob_to_re(glob), regex) 134 # not regex 139 # is a regex 140 regex = re.compile('a') 142 translate_pattern(regex, anchor=True, is_regex=True), 143 regex) 145 # plain string flagged as regex [all...] |
| /external/swiftshader/third_party/LLVM/utils/unittest/googletest/include/gtest/internal/ |
| gtest-death-test-internal.h | 79 static bool Create(const char* statement, const RE* regex, 143 virtual bool Create(const char* statement, const RE* regex, 150 virtual bool Create(const char* statement, const RE* regex, 185 # define GTEST_DEATH_TEST_(statement, predicate, regex, fail) \ 188 const ::testing::internal::RE& gtest_regex = (regex); \ 272 // regex - A regex that a macro such as EXPECT_DEATH would use to test 284 // statement and regex are compiled (and thus syntactically correct) but 290 # define GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, terminator) \ 297 ::testing::internal::RE::PartialMatch(".*", (regex)); \ [all...] |
| /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/distutils/tests/ |
| test_filelist.py | 50 for glob, regex in ( 60 regex = regex % {'sep': sep} 61 self.assertEqual(glob_to_re(glob), regex) 132 # not regex 137 # is a regex 138 regex = re.compile('a') 140 translate_pattern(regex, anchor=True, is_regex=True), 141 regex) 143 # plain string flagged as regex [all...] |
| /prebuilts/python/linux-x86/2.7.5/lib/python2.7/distutils/tests/ |
| test_filelist.py | 50 for glob, regex in ( 60 regex = regex % {'sep': sep} 61 self.assertEqual(glob_to_re(glob), regex) 132 # not regex 137 # is a regex 138 regex = re.compile('a') 140 translate_pattern(regex, anchor=True, is_regex=True), 141 regex) 143 # plain string flagged as regex [all...] |
| /external/python/cpython3/Lib/test/ |
| test_regrtest.py | 346 def regex_search(self, regex, output): 347 match = re.search(regex, output, re.MULTILINE) 349 self.fail("%r not found in %r" % (regex, output)) 352 def check_line(self, output, regex): 353 regex = re.compile(r'^' + regex, re.MULTILINE) 354 self.assertRegex(output, regex) 357 regex = (r'^[0-9]+:[0-9]+:[0-9]+ \[ *[0-9]+(?:/ *[0-9]+)?\] (%s)' 359 parser = re.finditer(regex, output, re.MULTILINE) 389 regex = line_format % (count, plural(count) [all...] |