Lines Matching refs:re
24 Regexp* re = Regexp::Parse("(\\d+)-(\\d+)-(\\d+)", Regexp::LikePerl, NULL); in Test() local
25 CHECK(re); in Test()
26 Prog* prog = re->CompileToProg(0); in Test()
37 re->Decref(); in Test()
46 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in MemoryUsage() local
47 CHECK(re); in MemoryUsage()
53 Prog* prog = re->CompileToProg(0); in MemoryUsage()
63 re->Decref(); in MemoryUsage()
69 PCRE re(regexp, PCRE::UTF8); in MemoryUsage() local
71 PCRE::FullMatch(text, re); in MemoryUsage()
78 PCRE* re = new PCRE(regexp, PCRE::UTF8); in MemoryUsage() local
80 PCRE::FullMatch(text, *re); in MemoryUsage()
82 delete re; in MemoryUsage()
88 RE2 re(regexp); in MemoryUsage() local
90 RE2::FullMatch(text, re); in MemoryUsage()
272 RE2 re("((Hello World))"); in FindAndConsume() local
276 CHECK(RE2::FindAndConsume(&t, re, &u)); in FindAndConsume()
568 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in ParseRegexp() local
569 CHECK(re); in ParseRegexp()
570 re->Decref(); in ParseRegexp()
576 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in SimplifyRegexp() local
577 CHECK(re); in SimplifyRegexp()
578 Regexp* sre = re->Simplify(); in SimplifyRegexp()
581 re->Decref(); in SimplifyRegexp()
586 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in NullWalkRegexp() local
587 CHECK(re); in NullWalkRegexp()
589 re->NullWalk(); in NullWalkRegexp()
591 re->Decref(); in NullWalkRegexp()
596 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in SimplifyCompileRegexp() local
597 CHECK(re); in SimplifyCompileRegexp()
598 Regexp* sre = re->Simplify(); in SimplifyCompileRegexp()
604 re->Decref(); in SimplifyCompileRegexp()
610 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in CompileRegexp() local
611 CHECK(re); in CompileRegexp()
612 Prog* prog = re->CompileToProg(0); in CompileRegexp()
615 re->Decref(); in CompileRegexp()
620 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in CompileToProg() local
621 CHECK(re); in CompileToProg()
623 Prog* prog = re->CompileToProg(0); in CompileToProg()
627 re->Decref(); in CompileToProg()
631 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in CompileByteMap() local
632 CHECK(re); in CompileByteMap()
633 Prog* prog = re->CompileToProg(0); in CompileByteMap()
639 re->Decref(); in CompileByteMap()
644 PCRE re(regexp, PCRE::UTF8); in CompilePCRE() local
645 CHECK_EQ(re.error(), ""); in CompilePCRE()
651 RE2 re(regexp); in CompileRE2() local
652 CHECK_EQ(re.error(), ""); in CompileRE2()
804 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in SearchDFA() local
805 CHECK(re); in SearchDFA()
806 Prog* prog = re->CompileToProg(0); in SearchDFA()
814 re->Decref(); in SearchDFA()
821 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in SearchNFA() local
822 CHECK(re); in SearchNFA()
823 Prog* prog = re->CompileToProg(0); in SearchNFA()
828 re->Decref(); in SearchNFA()
835 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in SearchOnePass() local
836 CHECK(re); in SearchOnePass()
837 Prog* prog = re->CompileToProg(0); in SearchOnePass()
843 re->Decref(); in SearchOnePass()
850 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in SearchBitState() local
851 CHECK(re); in SearchBitState()
852 Prog* prog = re->CompileToProg(0); in SearchBitState()
857 re->Decref(); in SearchBitState()
864 PCRE re(regexp, PCRE::UTF8); in SearchPCRE() local
865 CHECK_EQ(re.error(), ""); in SearchPCRE()
867 CHECK_EQ(PCRE::FullMatch(text, re), expect_match); in SearchPCRE()
869 CHECK_EQ(PCRE::PartialMatch(text, re), expect_match); in SearchPCRE()
876 RE2 re(regexp); in SearchRE2() local
877 CHECK_EQ(re.error(), ""); in SearchRE2()
879 CHECK_EQ(RE2::FullMatch(text, re), expect_match); in SearchRE2()
881 CHECK_EQ(RE2::PartialMatch(text, re), expect_match); in SearchRE2()
891 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in SearchCachedDFA() local
892 CHECK(re); in SearchCachedDFA()
893 Prog* prog = re->CompileToProg(1LL<<31); in SearchCachedDFA()
903 re->Decref(); in SearchCachedDFA()
908 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in SearchCachedNFA() local
909 CHECK(re); in SearchCachedNFA()
910 Prog* prog = re->CompileToProg(0); in SearchCachedNFA()
917 re->Decref(); in SearchCachedNFA()
922 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in SearchCachedOnePass() local
923 CHECK(re); in SearchCachedOnePass()
924 Prog* prog = re->CompileToProg(0); in SearchCachedOnePass()
931 re->Decref(); in SearchCachedOnePass()
936 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in SearchCachedBitState() local
937 CHECK(re); in SearchCachedBitState()
938 Prog* prog = re->CompileToProg(0); in SearchCachedBitState()
944 re->Decref(); in SearchCachedBitState()
949 PCRE re(regexp, PCRE::UTF8); in SearchCachedPCRE() local
950 CHECK_EQ(re.error(), ""); in SearchCachedPCRE()
953 CHECK_EQ(PCRE::FullMatch(text, re), expect_match); in SearchCachedPCRE()
955 CHECK_EQ(PCRE::PartialMatch(text, re), expect_match); in SearchCachedPCRE()
961 RE2 re(regexp); in SearchCachedRE2() local
962 CHECK_EQ(re.error(), ""); in SearchCachedRE2()
965 CHECK_EQ(RE2::FullMatch(text, re), expect_match); in SearchCachedRE2()
967 CHECK_EQ(RE2::PartialMatch(text, re), expect_match); in SearchCachedRE2()
977 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse3NFA() local
978 CHECK(re); in Parse3NFA()
979 Prog* prog = re->CompileToProg(0); in Parse3NFA()
984 re->Decref(); in Parse3NFA()
990 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse3OnePass() local
991 CHECK(re); in Parse3OnePass()
992 Prog* prog = re->CompileToProg(0); in Parse3OnePass()
998 re->Decref(); in Parse3OnePass()
1004 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse3BitState() local
1005 CHECK(re); in Parse3BitState()
1006 Prog* prog = re->CompileToProg(0); in Parse3BitState()
1011 re->Decref(); in Parse3BitState()
1017 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse3Backtrack() local
1018 CHECK(re); in Parse3Backtrack()
1019 Prog* prog = re->CompileToProg(0); in Parse3Backtrack()
1024 re->Decref(); in Parse3Backtrack()
1030 PCRE re(regexp, PCRE::UTF8); in Parse3PCRE() local
1031 CHECK_EQ(re.error(), ""); in Parse3PCRE()
1033 CHECK(PCRE::FullMatch(text, re, &sp1, &sp2, &sp3)); in Parse3PCRE()
1039 RE2 re(regexp); in Parse3RE2() local
1040 CHECK_EQ(re.error(), ""); in Parse3RE2()
1042 CHECK(RE2::FullMatch(text, re, &sp1, &sp2, &sp3)); in Parse3RE2()
1047 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse3CachedNFA() local
1048 CHECK(re); in Parse3CachedNFA()
1049 Prog* prog = re->CompileToProg(0); in Parse3CachedNFA()
1056 re->Decref(); in Parse3CachedNFA()
1060 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse3CachedOnePass() local
1061 CHECK(re); in Parse3CachedOnePass()
1062 Prog* prog = re->CompileToProg(0); in Parse3CachedOnePass()
1069 re->Decref(); in Parse3CachedOnePass()
1073 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse3CachedBitState() local
1074 CHECK(re); in Parse3CachedBitState()
1075 Prog* prog = re->CompileToProg(0); in Parse3CachedBitState()
1081 re->Decref(); in Parse3CachedBitState()
1085 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse3CachedBacktrack() local
1086 CHECK(re); in Parse3CachedBacktrack()
1087 Prog* prog = re->CompileToProg(0); in Parse3CachedBacktrack()
1093 re->Decref(); in Parse3CachedBacktrack()
1097 PCRE re(regexp, PCRE::UTF8); in Parse3CachedPCRE() local
1098 CHECK_EQ(re.error(), ""); in Parse3CachedPCRE()
1101 CHECK(PCRE::FullMatch(text, re, &sp1, &sp2, &sp3)); in Parse3CachedPCRE()
1106 RE2 re(regexp); in Parse3CachedRE2() local
1107 CHECK_EQ(re.error(), ""); in Parse3CachedRE2()
1110 CHECK(RE2::FullMatch(text, re, &sp1, &sp2, &sp3)); in Parse3CachedRE2()
1120 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse1NFA() local
1121 CHECK(re); in Parse1NFA()
1122 Prog* prog = re->CompileToProg(0); in Parse1NFA()
1127 re->Decref(); in Parse1NFA()
1133 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse1OnePass() local
1134 CHECK(re); in Parse1OnePass()
1135 Prog* prog = re->CompileToProg(0); in Parse1OnePass()
1141 re->Decref(); in Parse1OnePass()
1147 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse1BitState() local
1148 CHECK(re); in Parse1BitState()
1149 Prog* prog = re->CompileToProg(0); in Parse1BitState()
1154 re->Decref(); in Parse1BitState()
1160 PCRE re(regexp, PCRE::UTF8); in Parse1PCRE() local
1161 CHECK_EQ(re.error(), ""); in Parse1PCRE()
1163 CHECK(PCRE::FullMatch(text, re, &sp1)); in Parse1PCRE()
1169 RE2 re(regexp); in Parse1RE2() local
1170 CHECK_EQ(re.error(), ""); in Parse1RE2()
1172 CHECK(RE2::FullMatch(text, re, &sp1)); in Parse1RE2()
1177 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse1CachedNFA() local
1178 CHECK(re); in Parse1CachedNFA()
1179 Prog* prog = re->CompileToProg(0); in Parse1CachedNFA()
1186 re->Decref(); in Parse1CachedNFA()
1190 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse1CachedOnePass() local
1191 CHECK(re); in Parse1CachedOnePass()
1192 Prog* prog = re->CompileToProg(0); in Parse1CachedOnePass()
1199 re->Decref(); in Parse1CachedOnePass()
1203 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse1CachedBitState() local
1204 CHECK(re); in Parse1CachedBitState()
1205 Prog* prog = re->CompileToProg(0); in Parse1CachedBitState()
1211 re->Decref(); in Parse1CachedBitState()
1215 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL); in Parse1CachedBacktrack() local
1216 CHECK(re); in Parse1CachedBacktrack()
1217 Prog* prog = re->CompileToProg(0); in Parse1CachedBacktrack()
1223 re->Decref(); in Parse1CachedBacktrack()
1227 PCRE re(regexp, PCRE::UTF8); in Parse1CachedPCRE() local
1228 CHECK_EQ(re.error(), ""); in Parse1CachedPCRE()
1231 CHECK(PCRE::FullMatch(text, re, &sp1)); in Parse1CachedPCRE()
1236 RE2 re(regexp); in Parse1CachedRE2() local
1237 CHECK_EQ(re.error(), ""); in Parse1CachedRE2()
1240 CHECK(RE2::FullMatch(text, re, &sp1)); in Parse1CachedRE2()
1246 PCRE re(regexp, PCRE::UTF8); in SearchParse2CachedPCRE() local
1247 CHECK_EQ(re.error(), ""); in SearchParse2CachedPCRE()
1250 CHECK(PCRE::PartialMatch(text, re, &sp1, &sp2)); in SearchParse2CachedPCRE()
1256 RE2 re(regexp); in SearchParse2CachedRE2() local
1257 CHECK_EQ(re.error(), ""); in SearchParse2CachedRE2()
1260 CHECK(RE2::PartialMatch(text, re, &sp1, &sp2)); in SearchParse2CachedRE2()
1266 PCRE re(regexp, PCRE::UTF8); in SearchParse1CachedPCRE() local
1267 CHECK_EQ(re.error(), ""); in SearchParse1CachedPCRE()
1270 CHECK(PCRE::PartialMatch(text, re, &sp1)); in SearchParse1CachedPCRE()
1276 RE2 re(regexp); in SearchParse1CachedRE2() local
1277 CHECK_EQ(re.error(), ""); in SearchParse1CachedRE2()
1280 CHECK(RE2::PartialMatch(text, re, &sp1)); in SearchParse1CachedRE2()
1285 PCRE re(""); in EmptyPartialMatchPCRE() local
1287 PCRE::PartialMatch("", re); in EmptyPartialMatchPCRE()
1292 RE2 re(""); in EmptyPartialMatchRE2() local
1294 RE2::PartialMatch("", re); in EmptyPartialMatchRE2()
1303 PCRE re("abcdefg"); in SimplePartialMatchPCRE() local
1305 PCRE::PartialMatch("abcdefg", re); in SimplePartialMatchPCRE()
1310 RE2 re("abcdefg"); in SimplePartialMatchRE2() local
1312 RE2::PartialMatch("abcdefg", re); in SimplePartialMatchRE2()
1326 PCRE re("(?-s)^(?:GET|POST) +([^ ]+) HTTP"); in HTTPPartialMatchPCRE() local
1328 PCRE::PartialMatch(http_text, re, &a); in HTTPPartialMatchPCRE()
1334 RE2 re("(?-s)^(?:GET|POST) +([^ ]+) HTTP"); in HTTPPartialMatchRE2() local
1336 RE2::PartialMatch(http_text, re, &a); in HTTPPartialMatchRE2()
1350 PCRE re("(?-s)^(?:GET|POST) +([^ ]+) HTTP"); in SmallHTTPPartialMatchPCRE() local
1352 PCRE::PartialMatch(http_text, re, &a); in SmallHTTPPartialMatchPCRE()
1358 RE2 re("(?-s)^(?:GET|POST) +([^ ]+) HTTP"); in SmallHTTPPartialMatchRE2() local
1360 RE2::PartialMatch(http_text, re, &a); in SmallHTTPPartialMatchRE2()
1371 PCRE re("(?-s)^(.+)"); in DotMatchPCRE() local
1373 PCRE::PartialMatch(http_text, re, &a); in DotMatchPCRE()
1379 RE2 re("(?-s)^(.+)"); in DotMatchRE2() local
1381 RE2::PartialMatch(http_text, re, &a); in DotMatchRE2()
1392 PCRE re("(?-s)^([ -~]+)"); in ASCIIMatchPCRE() local
1394 PCRE::PartialMatch(http_text, re, &a); in ASCIIMatchPCRE()
1400 RE2 re("(?-s)^([ -~]+)"); in ASCIIMatchRE2() local
1402 RE2::PartialMatch(http_text, re, &a); in ASCIIMatchRE2()
1417 PCRE re(regexp); in FullMatchPCRE() local
1420 CHECK(PCRE::FullMatch(s, re)); in FullMatchPCRE()
1430 RE2 re(regexp, RE2::Latin1); in FullMatchRE2() local
1433 CHECK(RE2::FullMatch(s, re)); in FullMatchRE2()