/external/libcxx/test/std/re/re.alg/re.alg.search/ |
H A D | lookahead.pass.cpp | 10 // <regex> 21 #include <regex> 26 assert(!std::regex_search("ab", std::regex("(?=^)b"))); 27 assert(!std::regex_search("ab", std::regex("a(?=^)b")));
|
/external/libcxx/test/std/re/re.regex/re.regex.assign/ |
H A D | assign_ptr_size_flag.pass.cpp | 10 // <regex> 16 #include <regex> 21 std::regex r2; 22 r2.assign("(a([bc]))", 9, std::regex::extended); 23 assert(r2.flags() == std::regex::extended);
|
H A D | copy.pass.cpp | 10 // <regex> 16 #include <regex> 21 std::regex r1("(a([bc]))"); 22 std::regex r2; 24 assert(r2.flags() == std::regex::ECMAScript);
|
H A D | assign.il.pass.cpp | 10 // <regex> 18 #include <regex> 24 std::regex r2; 26 assert(r2.flags() == std::regex::ECMAScript); 29 r2.assign({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex::extended); 30 assert(r2.flags() == std::regex::extended);
|
H A D | assign_ptr_flag.pass.cpp | 10 // <regex> 16 #include <regex> 21 std::regex r2; 23 assert(r2.flags() == std::regex::ECMAScript); 26 r2.assign("(a([bc]))", std::regex::extended); 27 assert(r2.flags() == std::regex::extended);
|
H A D | il.pass.cpp | 10 // <regex> 16 #include <regex> 22 std::regex r2; 24 assert(r2.flags() == std::regex::ECMAScript);
|
H A D | ptr.pass.cpp | 10 // <regex> 16 #include <regex> 21 std::regex r2; 23 assert(r2.flags() == std::regex::ECMAScript);
|
H A D | string.pass.cpp | 10 // <regex> 17 #include <regex> 22 std::regex r2; 24 assert(r2.flags() == std::regex::ECMAScript);
|
/external/libcxx/test/std/re/re.regex/re.regex.construct/ |
H A D | copy.pass.cpp | 10 // <regex> 16 #include <regex> 21 std::regex r1("(a([bc]))"); 22 std::regex r2 = r1; 23 assert(r2.flags() == std::regex::ECMAScript);
|
H A D | awk_oct.pass.cpp | 10 // <regex> 17 #include <regex> 24 assert(std::regex_match("\4", std::regex("\\4", awk))); 25 assert(std::regex_match("\41", std::regex("\\41", awk))); 26 assert(std::regex_match("\141", std::regex("\\141", awk))); 27 assert(std::regex_match("\1411", std::regex("\\1411", awk)));
|
/external/libcxx/test/std/re/re.alg/re.alg.match/ |
H A D | awk.pass.cpp | 10 // <regex> 20 #include <regex> 31 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::awk))); 47 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::awk))); 62 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::awk))); 69 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk))); 75 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk), 82 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::awk))); 88 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::awk))); 103 assert(std::regex_match(s, m, std::regex("(a [all...] |
H A D | parse_curly_brackets.pass.cpp | 10 // <regex> 22 #include <regex> 30 std::regex regex(re); 32 assert((std::regex_match(target, smatch, regex))); 40 std::regex regex(re, std::regex::extended); 42 assert((std::regex_match(target, smatch, regex))); 50 std::regex rege [all...] |
/external/google-breakpad/src/testing/gtest/include/gtest/ |
H A D | gtest-death-test.h | 102 // On POSIX-compliant systems (*nix), we use the <regex.h> library, 103 // which uses the POSIX extended regex syntax. 105 // On other platforms (e.g. Windows), we only support a simple regex 109 // or POSIX extended regex syntax. For example, we don't support 114 // subset of both PCRE and POSIX extended regex, so it's easy to 141 // If you accidentally use PCRE or POSIX extended regex features 147 // as a compiled regex library, but should perform well enough for a 167 // that matches regex. 168 # define ASSERT_EXIT(statement, predicate, regex) \ 169 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE [all...] |
/external/gtest/include/gtest/ |
H A D | gtest-death-test.h | 102 // On POSIX-compliant systems (*nix), we use the <regex.h> library, 103 // which uses the POSIX extended regex syntax. 105 // On other platforms (e.g. Windows), we only support a simple regex 109 // or POSIX extended regex syntax. For example, we don't support 114 // subset of both PCRE and POSIX extended regex, so it's easy to 141 // If you accidentally use PCRE or POSIX extended regex features 147 // as a compiled regex library, but should perform well enough for a 167 // that matches regex. 168 # define ASSERT_EXIT(statement, predicate, regex) \ 169 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE [all...] |
/external/vulkan-validation-layers/tests/gtest-1.7.0/include/gtest/ |
H A D | gtest-death-test.h | 102 // On POSIX-compliant systems (*nix), we use the <regex.h> library, 103 // which uses the POSIX extended regex syntax. 105 // On other platforms (e.g. Windows), we only support a simple regex 109 // or POSIX extended regex syntax. For example, we don't support 114 // subset of both PCRE and POSIX extended regex, so it's easy to 141 // If you accidentally use PCRE or POSIX extended regex features 147 // as a compiled regex library, but should perform well enough for a 167 // that matches regex. 168 # define ASSERT_EXIT(statement, predicate, regex) \ 169 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE [all...] |
/external/llvm/utils/unittest/googletest/include/gtest/ |
H A D | gtest-death-test.h | 91 // On POSIX-compliant systems (*nix), we use the <regex.h> library, 92 // which uses the POSIX extended regex syntax. 94 // On other platforms (e.g. Windows), we only support a simple regex 98 // or POSIX extended regex syntax. For example, we don't support 103 // subset of both PCRE and POSIX extended regex, so it's easy to 130 // If you accidentally use PCRE or POSIX extended regex features 136 // as a compiled regex library, but should perform well enough for a 156 // that matches regex. 157 # define ASSERT_EXIT(statement, predicate, regex) \ 158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE [all...] |
/external/mesa3d/src/gtest/include/gtest/ |
H A D | gtest-death-test.h | 91 // On POSIX-compliant systems (*nix), we use the <regex.h> library, 92 // which uses the POSIX extended regex syntax. 94 // On other platforms (e.g. Windows), we only support a simple regex 98 // or POSIX extended regex syntax. For example, we don't support 103 // subset of both PCRE and POSIX extended regex, so it's easy to 130 // If you accidentally use PCRE or POSIX extended regex features 136 // as a compiled regex library, but should perform well enough for a 156 // that matches regex. 157 # define ASSERT_EXIT(statement, predicate, regex) \ 158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE [all...] |
/external/protobuf/gtest/include/gtest/ |
H A D | gtest-death-test.h | 91 // On POSIX-compliant systems (*nix), we use the <regex.h> library, 92 // which uses the POSIX extended regex syntax. 94 // On other platforms (e.g. Windows), we only support a simple regex 98 // or POSIX extended regex syntax. For example, we don't support 103 // subset of both PCRE and POSIX extended regex, so it's easy to 130 // If you accidentally use PCRE or POSIX extended regex features 136 // as a compiled regex library, but should perform well enough for a 156 // that matches regex. 157 #define ASSERT_EXIT(statement, predicate, regex) \ 158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE [all...] |
/external/libcxx/test/std/re/re.regex/re.regex.nonmemb/re.regex.nmswap/ |
H A D | swap.pass.cpp | 10 // <regex> 17 #include <regex> 22 std::regex r1("(a([bc]))"); 23 std::regex r2; 25 assert(r1.flags() == std::regex::ECMAScript); 27 assert(r2.flags() == std::regex::ECMAScript);
|
/external/libcxx/test/std/re/re.regex/re.regex.swap/ |
H A D | swap.pass.cpp | 10 // <regex> 16 #include <regex> 21 std::regex r1("(a([bc]))"); 22 std::regex r2; 24 assert(r1.flags() == std::regex::ECMAScript); 26 assert(r2.flags() == std::regex::ECMAScript);
|
/external/easymock/src/org/easymock/internal/matchers/ |
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("\\\\", "\\\\\\\\")
|
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("\\\\", "\\\\\\\\") + "\")");
|
/external/libcxx/test/std/re/re.syn/ |
H A D | regex.pass.cpp | 10 // <regex> 12 // typedef basic_regex<char> regex; 14 #include <regex> 19 static_assert((std::is_same<std::basic_regex<char>, std::regex>::value), "");
|
/external/mockito/src/org/mockito/internal/matchers/ |
H A D | Find.java | 9 import java.util.regex.Pattern; 17 private final String regex; field in class:Find 19 public Find(String regex) { argument 20 this.regex = regex; 24 return actual != null && Pattern.compile(regex).matcher((String) actual).find(); 28 description.appendText("find(\"" + regex.replaceAll("\\\\", "\\\\\\\\") + "\")");
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/runtime/ |
H A D | WildcardMatcher.java | 14 import java.util.regex.Pattern; 33 final StringBuilder regex = new StringBuilder(expression.length() * 2); 37 regex.append('|'); 39 regex.append('(').append(toRegex(part)).append(')'); 42 pattern = Pattern.compile(regex.toString()); 46 final StringBuilder regex = new StringBuilder(expression.length() * 2); 50 regex.append(".?"); 53 regex.append(".*"); 56 regex.append(Pattern.quote(String.valueOf(c))); 60 return regex; [all...] |