| 1156 | } |
| 1157 | |
| 1158 | void Parse3CachedBitState(benchmark::State& state, const char* regexp, |
| 1159 | const StringPiece& text) { |
| 1160 | Prog* prog = GetCachedProg(regexp); |
| 1161 | CHECK(prog->CanBitState()); |
| 1162 | StringPiece sp[4]; // 4 because sp[0] is whole match. |
| 1163 | for (auto _ : state) { |
| 1164 | CHECK(prog->SearchBitState(text, text, Prog::kAnchored, Prog::kFullMatch, sp, 4)); |
| 1165 | } |
| 1166 | } |
| 1167 | |
| 1168 | void Parse3CachedBacktrack(benchmark::State& state, const char* regexp, |
| 1169 | const StringPiece& text) { |
nothing calls this directly
no test coverage detected