Lines Matching refs:re
24 Regexp* re = Regexp::Parse("(\\d+)-(\\d+)-(\\d+)", Regexp::LikePerl, NULL);
25 CHECK(re);
26 Prog* prog = re->CompileToProg(0);
37 re->Decref();
46 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
47 CHECK(re);
53 Prog* prog = re->CompileToProg(0);
63 re->Decref();
69 PCRE re(regexp, PCRE::UTF8);
70 fprintf(stderr, "RE: %7lld bytes (peak=%lld)\n", mc.HeapGrowth(), mc.PeakHeapGrowth());
71 PCRE::FullMatch(text, re);
72 fprintf(stderr, "RE: %7lld bytes (peak=%lld)\n", mc.HeapGrowth(), mc.PeakHeapGrowth());
78 PCRE* re = new PCRE(regexp, PCRE::UTF8);
80 PCRE::FullMatch(text, *re);
82 delete re;
88 RE2 re(regexp);
90 RE2::FullMatch(text, re);
272 RE2 re("((Hello World))");
276 CHECK(RE2::FindAndConsume(&t, re, &u));
568 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
569 CHECK(re);
570 re->Decref();
576 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
577 CHECK(re);
578 Regexp* sre = re->Simplify();
581 re->Decref();
586 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
587 CHECK(re);
589 re->NullWalk();
591 re->Decref();
596 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
597 CHECK(re);
598 Regexp* sre = re->Simplify();
604 re->Decref();
610 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
611 CHECK(re);
612 Prog* prog = re->CompileToProg(0);
615 re->Decref();
620 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
621 CHECK(re);
623 Prog* prog = re->CompileToProg(0);
627 re->Decref();
631 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
632 CHECK(re);
633 Prog* prog = re->CompileToProg(0);
639 re->Decref();
644 PCRE re(regexp, PCRE::UTF8);
645 CHECK_EQ(re.error(), "");
651 RE2 re(regexp);
652 CHECK_EQ(re.error(), "");
804 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
805 CHECK(re);
806 Prog* prog = re->CompileToProg(0);
814 re->Decref();
821 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
822 CHECK(re);
823 Prog* prog = re->CompileToProg(0);
828 re->Decref();
835 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
836 CHECK(re);
837 Prog* prog = re->CompileToProg(0);
843 re->Decref();
850 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
851 CHECK(re);
852 Prog* prog = re->CompileToProg(0);
857 re->Decref();
864 PCRE re(regexp, PCRE::UTF8);
865 CHECK_EQ(re.error(), "");
867 CHECK_EQ(PCRE::FullMatch(text, re), expect_match);
869 CHECK_EQ(PCRE::PartialMatch(text, re), expect_match);
876 RE2 re(regexp);
877 CHECK_EQ(re.error(), "");
879 CHECK_EQ(RE2::FullMatch(text, re), expect_match);
881 CHECK_EQ(RE2::PartialMatch(text, re), expect_match);
891 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
892 CHECK(re);
893 Prog* prog = re->CompileToProg(1LL<<31);
903 re->Decref();
908 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
909 CHECK(re);
910 Prog* prog = re->CompileToProg(0);
917 re->Decref();
922 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
923 CHECK(re);
924 Prog* prog = re->CompileToProg(0);
931 re->Decref();
936 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
937 CHECK(re);
938 Prog* prog = re->CompileToProg(0);
944 re->Decref();
949 PCRE re(regexp, PCRE::UTF8);
950 CHECK_EQ(re.error(), "");
953 CHECK_EQ(PCRE::FullMatch(text, re), expect_match);
955 CHECK_EQ(PCRE::PartialMatch(text, re), expect_match);
961 RE2 re(regexp);
962 CHECK_EQ(re.error(), "");
965 CHECK_EQ(RE2::FullMatch(text, re), expect_match);
967 CHECK_EQ(RE2::PartialMatch(text, re), expect_match);
977 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
978 CHECK(re);
979 Prog* prog = re->CompileToProg(0);
984 re->Decref();
990 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
991 CHECK(re);
992 Prog* prog = re->CompileToProg(0);
998 re->Decref();
1004 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
1005 CHECK(re);
1006 Prog* prog = re->CompileToProg(0);
1011 re->Decref();
1017 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
1018 CHECK(re);
1019 Prog* prog = re->CompileToProg(0);
1024 re->Decref();
1030 PCRE re(regexp, PCRE::UTF8);
1031 CHECK_EQ(re.error(), "");
1033 CHECK(PCRE::FullMatch(text, re, &sp1, &sp2, &sp3));
1039 RE2 re(regexp);
1040 CHECK_EQ(re.error(), "");
1042 CHECK(RE2::FullMatch(text, re, &sp1, &sp2, &sp3));
1047 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
1048 CHECK(re);
1049 Prog* prog = re->CompileToProg(0);
1056 re->Decref();
1060 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
1061 CHECK(re);
1062 Prog* prog = re->CompileToProg(0);
1069 re->Decref();
1073 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
1074 CHECK(re);
1075 Prog* prog = re->CompileToProg(0);
1081 re->Decref();
1085 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
1086 CHECK(re);
1087 Prog* prog = re->CompileToProg(0);
1093 re->Decref();
1097 PCRE re(regexp, PCRE::UTF8);
1098 CHECK_EQ(re.error(), "");
1101 CHECK(PCRE::FullMatch(text, re, &sp1, &sp2, &sp3));
1106 RE2 re(regexp);
1107 CHECK_EQ(re.error(), "");
1110 CHECK(RE2::FullMatch(text, re, &sp1, &sp2, &sp3));
1120 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
1121 CHECK(re);
1122 Prog* prog = re->CompileToProg(0);
1127 re->Decref();
1133 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
1134 CHECK(re);
1135 Prog* prog = re->CompileToProg(0);
1141 re->Decref();
1147 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
1148 CHECK(re);
1149 Prog* prog = re->CompileToProg(0);
1154 re->Decref();
1160 PCRE re(regexp, PCRE::UTF8);
1161 CHECK_EQ(re.error(), "");
1163 CHECK(PCRE::FullMatch(text, re, &sp1));
1169 RE2 re(regexp);
1170 CHECK_EQ(re.error(), "");
1172 CHECK(RE2::FullMatch(text, re, &sp1));
1177 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
1178 CHECK(re);
1179 Prog* prog = re->CompileToProg(0);
1186 re->Decref();
1190 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
1191 CHECK(re);
1192 Prog* prog = re->CompileToProg(0);
1199 re->Decref();
1203 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
1204 CHECK(re);
1205 Prog* prog = re->CompileToProg(0);
1211 re->Decref();
1215 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
1216 CHECK(re);
1217 Prog* prog = re->CompileToProg(0);
1223 re->Decref();
1227 PCRE re(regexp, PCRE::UTF8);
1228 CHECK_EQ(re.error(), "");
1231 CHECK(PCRE::FullMatch(text, re, &sp1));
1236 RE2 re(regexp);
1237 CHECK_EQ(re.error(), "");
1240 CHECK(RE2::FullMatch(text, re, &sp1));
1246 PCRE re(regexp, PCRE::UTF8);
1247 CHECK_EQ(re.error(), "");
1250 CHECK(PCRE::PartialMatch(text, re, &sp1, &sp2));
1256 RE2 re(regexp);
1257 CHECK_EQ(re.error(), "");
1260 CHECK(RE2::PartialMatch(text, re, &sp1, &sp2));
1266 PCRE re(regexp, PCRE::UTF8);
1267 CHECK_EQ(re.error(), "");
1270 CHECK(PCRE::PartialMatch(text, re, &sp1));
1276 RE2 re(regexp);
1277 CHECK_EQ(re.error(), "");
1280 CHECK(RE2::PartialMatch(text, re, &sp1));
1285 PCRE re("");
1287 PCRE::PartialMatch("", re);
1292 RE2 re("");
1294 RE2::PartialMatch("", re);
1303 PCRE re("abcdefg");
1305 PCRE::PartialMatch("abcdefg", re);
1310 RE2 re("abcdefg");
1312 RE2::PartialMatch("abcdefg", re);
1326 PCRE re("(?-s)^(?:GET|POST) +([^ ]+) HTTP");
1328 PCRE::PartialMatch(http_text, re, &a);
1334 RE2 re("(?-s)^(?:GET|POST) +([^ ]+) HTTP");
1336 RE2::PartialMatch(http_text, re, &a);
1350 PCRE re("(?-s)^(?:GET|POST) +([^ ]+) HTTP");
1352 PCRE::PartialMatch(http_text, re, &a);
1358 RE2 re("(?-s)^(?:GET|POST) +([^ ]+) HTTP");
1360 RE2::PartialMatch(http_text, re, &a);
1371 PCRE re("(?-s)^(.+)");
1373 PCRE::PartialMatch(http_text, re, &a);
1379 RE2 re("(?-s)^(.+)");
1381 RE2::PartialMatch(http_text, re, &a);
1392 PCRE re("(?-s)^([ -~]+)");
1394 PCRE::PartialMatch(http_text, re, &a);
1400 RE2 re("(?-s)^([ -~]+)");
1402 RE2::PartialMatch(http_text, re, &a);
1417 PCRE re(regexp);
1420 CHECK(PCRE::FullMatch(s, re));
1430 RE2 re(regexp, RE2::Latin1);
1433 CHECK(RE2::FullMatch(s, re));