Home | History | Annotate | Download | only in testing

Lines Matching full:regexp

15 #include "re2/regexp.h"
98 const char *regexp;
177 VLOG(1) << StringPrintf("\"%s\" =~ s/%s/%s/g", t->original, t->regexp, t->rewrite);
179 CHECK(RE2::Replace(&one, t->regexp, t->rewrite));
182 CHECK_EQ(RE2::GlobalReplace(&all, t->regexp, t->rewrite), t->greplace_count)
188 static void TestCheckRewriteString(const char* regexp, const char* rewrite,
191 RE2 exp(regexp);
463 RE2 re_simple("simple regexp");
464 RE2 re_medium("medium.*regexp");
465 RE2 re_complex("hard.{1,128}regexp");
1082 // Test that using a bad regexp doesn't crash.
1089 // Test that using an enormous regexp doesn't crash
1096 // Test that a crazy regexp still compiles and runs.
1185 // Check that RE2 returns correct regexp pieces on error.
1190 const char *regexp;
1213 RE2 re(error_tests[i].regexp, RE2::Quiet);
1221 const char* regexp;
1236 RE2 re(t.regexp, opt);
1365 EXPECT_EQ(RE2("^[a-c]at", RE2::POSIX).Regexp()->ToString(), "^[a-c]at");
1366 EXPECT_EQ(RE2("^[a-c]at").Regexp()->ToString(), "(?-m:^)[a-c]at");
1367 EXPECT_EQ(RE2("ca[t-z]$", RE2::POSIX).Regexp()->ToString(), "ca[t-z]$");
1368 EXPECT_EQ(RE2("ca[t-z]$").Regexp()->ToString(), "ca[t-z](?-m:$)");