| 1166 | } |
| 1167 | |
| 1168 | void Parse3CachedBacktrack(benchmark::State& state, const char* regexp, |
| 1169 | const StringPiece& text) { |
| 1170 | Prog* prog = GetCachedProg(regexp); |
| 1171 | StringPiece sp[4]; // 4 because sp[0] is whole match. |
| 1172 | for (auto _ : state) { |
| 1173 | CHECK(prog->UnsafeSearchBacktrack(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 4)); |
| 1174 | } |
| 1175 | } |
| 1176 | |
| 1177 | void Parse3CachedPCRE(benchmark::State& state, const char* regexp, |
| 1178 | const StringPiece& text) { |
nothing calls this directly
no test coverage detected