Lines Matching refs:Prog
8 #include "re2/prog.h"
26 Prog* prog = re->CompileToProg(0);
27 CHECK(prog);
28 CHECK(prog->IsOnePass());
31 CHECK(prog->SearchOnePass(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 4));
36 delete prog;
53 Prog* prog = re->CompileToProg(0);
54 CHECK(prog);
55 CHECK(prog->IsOnePass());
56 fprintf(stderr, "Prog: %7lld bytes (peak=%lld)\n", mc.HeapGrowth(), mc.PeakHeapGrowth());
60 CHECK(prog->SearchOnePass(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 4));
62 delete prog;
94 fprintf(stderr, "sizeof: PCRE=%d RE2=%d Prog=%d Inst=%d\n",
97 static_cast<int>(sizeof(Prog)),
98 static_cast<int>(sizeof(Prog::Inst)));
106 Prog::Anchor anchor, bool expect_match);
156 search(iters, regexp, s, Prog::kUnanchored, false);
249 search(iters, regexp.c_str(), s, Prog::kUnanchored, true);
290 search(iters, regexp, s, Prog::kAnchored, true);
351 StringPiece(text, len), Prog::kAnchored, true);
600 Prog* prog = sre->CompileToProg(0);
601 CHECK(prog);
602 delete prog;
612 Prog* prog = re->CompileToProg(0);
613 CHECK(prog);
614 delete prog;
623 Prog* prog = re->CompileToProg(0);
624 CHECK(prog);
625 delete prog;
633 Prog* prog = re->CompileToProg(0);
634 CHECK(prog);
636 prog->ComputeByteMap();
638 delete prog;
759 Prog::kUnanchored, true);
802 Prog::Anchor anchor, bool expect_match) {
806 Prog* prog = re->CompileToProg(0);
807 CHECK(prog);
809 CHECK_EQ(prog->SearchDFA(text, NULL, anchor, Prog::kFirstMatch,
813 delete prog;
819 Prog::Anchor anchor, bool expect_match) {
823 Prog* prog = re->CompileToProg(0);
824 CHECK(prog);
825 CHECK_EQ(prog->SearchNFA(text, NULL, anchor, Prog::kFirstMatch, NULL, 0),
827 delete prog;
833 Prog
837 Prog* prog = re->CompileToProg(0);
838 CHECK(prog);
839 CHECK(prog->IsOnePass());
840 CHECK_EQ(prog->SearchOnePass(text, text, anchor, Prog::kFirstMatch, NULL, 0),
842 delete prog;
848 Prog::Anchor anchor, bool expect_match) {
852 Prog* prog = re->CompileToProg(0);
853 CHECK(prog);
854 CHECK_EQ(prog->SearchBitState(text, text, anchor, Prog::kFirstMatch, NULL, 0),
856 delete prog;
862 Prog::Anchor anchor, bool expect_match) {
866 if (anchor == Prog::kAnchored)
874 Prog::Anchor anchor, bool expect_match) {
878 if (anchor == Prog::kAnchored)
890 Prog::Anchor anchor, bool expect_match) {
893 Prog* prog = re->CompileToProg(1LL<<31);
894 CHECK(prog);
897 CHECK_EQ(prog->SearchDFA(text, NULL, anchor,
898 Prog::kFirstMatch, NULL, &failed, NULL),
902 delete prog;
907 Prog::Anchor anchor, bool expect_match) {
910 Prog* prog = re->CompileToProg(0);
911 CHECK(prog);
913 CHECK_EQ(prog->SearchNFA(text, NULL, anchor, Prog::kFirstMatch, NULL, 0),
916 delete prog;
921 Prog::Anchor anchor, bool expect_match) {
924 Prog* prog = re->CompileToProg(0);
925 CHECK(prog);
926 CHECK(prog->IsOnePass());
928 CHECK_EQ(prog->SearchOnePass(text, text, anchor, Prog::kFirstMatch, NULL, 0),
930 delete prog;
935 Prog::Anchor anchor, bool expect_match) {
938 Prog* prog = re->CompileToProg(0);
939 CHECK(prog);
941 CHECK_EQ(prog->SearchBitState(text, text, anchor, Prog::kFirstMatch, NULL, 0),
943 delete prog;
948 Prog::Anchor anchor, bool expect_match) {
952 if (anchor == Prog::kAnchored)
960 Prog::Anchor anchor, bool expect_match) {
964 if (anchor == Prog::kAnchored)
979 Prog* prog = re->CompileToProg(0);
980 CHECK(prog);
982 CHECK(prog->SearchNFA(text, NULL, Prog::kAnchored, Prog::kFullMatch, sp, 4));
983 delete prog;
992 Prog* prog = re->CompileToProg(0);
993 CHECK(prog);
994 CHECK(prog->IsOnePass());
996 CHECK(prog->SearchOnePass(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 4));
997 delete prog;
1006 Prog* prog = re->CompileToProg(0);
1007 CHECK(prog);
1009 CHECK(prog->SearchBitState(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 4));
1010 delete prog;
1019 Prog* prog = re->CompileToProg(0);
1020 CHECK(prog);
1022 CHECK(prog->UnsafeSearchBacktrack(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 4));
1023 delete prog;
1049 Prog* prog = re->CompileToProg(0);
1050 CHECK(prog);
1053 CHECK(prog->SearchNFA(text, NULL, Prog::kAnchored, Prog::kFullMatch, sp, 4));
1055 delete prog;
1062 Prog* prog = re->CompileToProg(0);
1063 CHECK(prog);
1064 CHECK(prog->IsOnePass());
1067 CHECK(prog->SearchOnePass(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 4));
1068 delete prog;
1075 Prog* prog = re->CompileToProg(0);
1076 CHECK(prog);
1079 CHECK(prog->SearchBitState(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 4));
1080 delete prog;
1087 Prog* prog = re->CompileToProg(0);
1088 CHECK(prog);
1091 CHECK(prog->UnsafeSearchBacktrack(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 4));
1092 delete prog;
1122 Prog* prog = re->CompileToProg(0);
1123 CHECK(prog);
1125 CHECK(prog->SearchNFA(text, NULL, Prog::kAnchored, Prog::kFullMatch, sp, 2));
1126 delete prog;
1135 Prog* prog = re->CompileToProg(0);
1136 CHECK(prog);
1137 CHECK(prog->IsOnePass());
1139 CHECK(prog->SearchOnePass(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 2));
1140 delete prog;
1149 Prog* prog = re->CompileToProg(0);
1150 CHECK(prog);
1152 CHECK(prog->SearchBitState(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 2));
1153 delete prog;
1179 Prog* prog = re->CompileToProg(0);
1180 CHECK(prog);
1183 CHECK(prog->SearchNFA(text, NULL, Prog::kAnchored, Prog::kFullMatch, sp, 2));
1185 delete prog;
1192 Prog* prog = re->CompileToProg(0);
1193 CHECK(prog);
1194 CHECK(prog->IsOnePass());
1197 CHECK(prog->SearchOnePass(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 2));
1198 delete prog;
1205 Prog* prog = re->CompileToProg(0);
1206 CHECK(prog);
1209 CHECK(prog->SearchBitState(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 2));
1210 delete prog;
1217 Prog* prog = re->CompileToProg(0);
1218 CHECK(prog);
1221 CHECK(prog->UnsafeSearchBacktrack(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 2));
1222 delete prog;