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

1234567891011>>

/external/libcxx/test/std/re/re.alg/re.alg.search/
H A Dlookahead.pass.cpp10 // <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 Dassign_ptr_size_flag.pass.cpp10 // <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 Dcopy.pass.cpp10 // <regex>
16 #include <regex>
21 std::regex r1("(a([bc]))");
22 std::regex r2;
24 assert(r2.flags() == std::regex::ECMAScript);
H A Dassign.il.pass.cpp10 // <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 Dassign_ptr_flag.pass.cpp10 // <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 Dil.pass.cpp10 // <regex>
16 #include <regex>
22 std::regex r2;
24 assert(r2.flags() == std::regex::ECMAScript);
H A Dptr.pass.cpp10 // <regex>
16 #include <regex>
21 std::regex r2;
23 assert(r2.flags() == std::regex::ECMAScript);
H A Dstring.pass.cpp10 // <regex>
17 #include <regex>
22 std::regex r2;
24 assert(r2.flags() == std::regex::ECMAScript);
H A Dassign_string_flag.pass.cpp10 // <regex>
18 #include <regex>
23 std::regex r2;
25 assert(r2.flags() == std::regex::ECMAScript);
28 r2.assign(std::string("(a([bc]))"), std::regex::extended);
29 assert(r2.flags() == std::regex::extended);
H A Dassign.pass.cpp10 // <regex>
16 #include <regex>
21 std::regex r1("(a([bc]))");
22 std::regex r2;
24 assert(r2.flags() == std::regex::ECMAScript);
29 try { r2.assign("(def", std::regex::extended); }
32 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>
21 std::regex r1("(a([bc]))");
22 std::regex r2 = r1;
23 assert(r2.flags() == std::regex::ECMAScript);
H A Dawk_oct.pass.cpp10 // <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 Dawk.pass.cpp10 // <regex>
20 #include <regex>
30 assert(std::regex_match(s, m, std::regex("a", std::regex_constants::awk)));
46 assert(std::regex_match(s, m, std::regex("ab", std::regex_constants::awk)));
61 assert(!std::regex_match(s, m, std::regex("ba", std::regex_constants::awk)));
68 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk)));
74 assert(!std::regex_match(s, m, std::regex("ab", std::regex_constants::awk),
81 assert(!std::regex_match(s, m, std::regex("bc", std::regex_constants::awk)));
87 assert(std::regex_match(s, m, std::regex("ab*c", std::regex_constants::awk)));
102 assert(std::regex_match(s, m, std::regex("(a
[all...]
H A Dparse_curly_brackets.pass.cpp10 // <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 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/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/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/libcxx/test/std/re/re.regex/re.regex.nonmemb/re.regex.nmswap/
H A Dswap.pass.cpp10 // <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 Dswap.pass.cpp10 // <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 DMatches.java26 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 DFind.java19 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 Dregex.pass.cpp10 // <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 DFind.java9 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("\\\\", "\\\\\\\\") + "\")");

Completed in 936 milliseconds

1234567891011>>