| 1291 | } |
| 1292 | |
| 1293 | void Parse1CachedBacktrack(benchmark::State& state, const char* regexp, |
| 1294 | const StringPiece& text) { |
| 1295 | Prog* prog = GetCachedProg(regexp); |
| 1296 | StringPiece sp[2]; // 2 because sp[0] is whole match. |
| 1297 | for (auto _ : state) { |
| 1298 | CHECK(prog->UnsafeSearchBacktrack(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 2)); |
| 1299 | } |
| 1300 | } |
| 1301 | |
| 1302 | void Parse1CachedPCRE(benchmark::State& state, const char* regexp, |
| 1303 | const StringPiece& text) { |
nothing calls this directly
no test coverage detected