| 1261 | } |
| 1262 | |
| 1263 | void Parse1CachedNFA(benchmark::State& state, const char* regexp, |
| 1264 | const StringPiece& text) { |
| 1265 | Prog* prog = GetCachedProg(regexp); |
| 1266 | StringPiece sp[2]; // 2 because sp[0] is whole match. |
| 1267 | for (auto _ : state) { |
| 1268 | CHECK(prog->SearchNFA(text, StringPiece(), Prog::kAnchored, |
| 1269 | Prog::kFullMatch, sp, 2)); |
| 1270 | } |
| 1271 | } |
| 1272 | |
| 1273 | void Parse1CachedOnePass(benchmark::State& state, const char* regexp, |
| 1274 | const StringPiece& text) { |
nothing calls this directly
no test coverage detected