Searched refs:regex (Results 1 - 25 of 623) sorted by relevance

1234567891011>>

/external/libcxx/test/std/re/re.alg/re.alg.match/
H A Dawk.pass.cpp10 // <regex>
20 #include <regex>
32 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::awk)));
48 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::awk)));
63 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::awk)));
70 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk)));
76 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk),
83 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::awk)));
89 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::awk)));
104 assert(std::regex_match(s, m, std::regex("(a
[all...]
/external/libchrome/base/task_scheduler/
H A Dtest_utils.h14 #define EXPECT_DCHECK_DEATH(statement, regex) EXPECT_DEATH(statement, regex)
16 #define EXPECT_DCHECK_DEATH(statement, regex)
/external/libcxx/test/std/re/re.alg/re.alg.search/
H A Dlookahead.pass.cpp10 // <regex>
21 #include <regex>
27 assert(!std::regex_search("ab", std::regex("(?=^)b")));
28 assert(!std::regex_search("ab", std::regex("a(?=^)b")));
/external/fmtlib/test/
H A Dassert-test.cc32 # define EXPECT_DEBUG_DEATH_IF_SUPPORTED(statement, regex) \
33 EXPECT_DEBUG_DEATH(statement, regex)
35 # define EXPECT_DEBUG_DEATH_IF_SUPPORTED(statement, regex) \
36 GTEST_UNSUPPORTED_DEATH_TEST_(statement, regex, )
/external/libcxx/test/std/re/re.regex/re.regex.assign/
H A Dassign_ptr_size_flag.pass.cpp10 // <regex>
16 #include <regex>
22 std::regex r2;
23 r2.assign("(a([bc]))", 9, std::regex::extended);
24 assert(r2.flags() == std::regex::extended);
H A Dcopy.pass.cpp10 // <regex>
16 #include <regex>
22 std::regex r1("(a([bc]))");
23 std::regex r2;
25 assert(r2.flags() == std::regex::ECMAScript);
H A Dassign.il.pass.cpp10 // <regex>
18 #include <regex>
25 std::regex r2;
27 assert(r2.flags() == std::regex::ECMAScript);
30 r2.assign({'(', 'a', '(', '[', 'b', 'c', ']', ')', ')'}, std::regex::extended);
31 assert(r2.flags() == std::regex::extended);
H A Dassign_ptr_flag.pass.cpp10 // <regex>
16 #include <regex>
22 std::regex r2;
24 assert(r2.flags() == std::regex::ECMAScript);
27 r2.assign("(a([bc]))", std::regex::extended);
28 assert(r2.flags() == std::regex::extended);
H A Dil.pass.cpp10 // <regex>
16 #include <regex>
23 std::regex r2;
25 assert(r2.flags() == std::regex::ECMAScript);
/external/libcxx/test/std/re/re.regex/re.regex.construct/
H A Dcopy.pass.cpp10 // <regex>
16 #include <regex>
22 std::regex r1("(a([bc]))");
23 std::regex r2 = r1;
24 assert(r2.flags() == std::regex::ECMAScript);
H A Dawk_oct.pass.cpp10 // <regex>
17 #include <regex>
25 assert(std::regex_match("\4", std::regex("\\4", awk)));
26 assert(std::regex_match("\41", std::regex("\\41", awk)));
27 assert(std::regex_match("\141", std::regex("\\141", awk)));
28 assert(std::regex_match("\141" "1", std::regex("\\1411", awk)));
/external/google-breakpad/src/testing/gtest/include/gtest/
H A Dgtest-death-test.h102 // 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/googletest/googletest/include/gtest/
H A Dgtest-death-test.h102 // 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/libvpx/libvpx/third_party/googletest/src/include/gtest/
H A Dgtest-death-test.h102 // 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/v8/testing/gtest/include/gtest/
H A Dgtest-death-test.h102 // 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 Dgtest-death-test.h102 // 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 Dgtest-death-test.h91 // 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 Dgtest-death-test.h91 // 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 Dgtest-death-test.h91 // 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/swiftshader/third_party/LLVM/utils/unittest/googletest/include/gtest/
H A Dgtest-death-test.h91 // 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/mockito/src/main/java/org/mockito/internal/matchers/
H A DFind.java9 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("\\\\", "\\\\\\\\") + "\")";
/external/libcxx/test/std/re/re.regex/re.regex.nonmemb/re.regex.nmswap/
H A Dswap.pass.cpp10 // <regex>
17 #include <regex>
23 std::regex r1("(a([bc]))");
24 std::regex r2;
26 assert(r1.flags() == std::regex::ECMAScript);
28 assert(r2.flags() == std::regex::ECMAScript);
/external/libcxx/test/std/re/re.regex/re.regex.swap/
H A Dswap.pass.cpp10 // <regex>
16 #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.iter/re.tokiter/re.tokiter.cnstr/
H A Dinit.fail.cpp10 // <regex>
20 #include <regex>
31 std::regex phone_numbers("\\d{3}-(\\d{4})");
34 std::regex("\\d{3}-\\d{4}"), {-1, 0, 1});
H A Dint.fail.cpp10 // <regex>
19 #include <regex>
30 std::regex phone_numbers("\\d{3}-\\d{4}");
33 std::regex("\\d{3}-\\d{4}"), -1);

Completed in 550 milliseconds

1234567891011>>