MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / SearchCachedBitState

Function SearchCachedBitState

extern/re2/re2/testing/regexp_benchmark.cc:1021–1030  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019}
1020
1021void SearchCachedBitState(benchmark::State& state, const char* regexp,
1022 const StringPiece& text, Prog::Anchor anchor,
1023 bool expect_match) {
1024 Prog* prog = GetCachedProg(regexp);
1025 CHECK(prog->CanBitState());
1026 for (auto _ : state) {
1027 CHECK_EQ(prog->SearchBitState(text, text, anchor, Prog::kFirstMatch, NULL, 0),
1028 expect_match);
1029 }
1030}
1031
1032void SearchCachedPCRE(benchmark::State& state, const char* regexp,
1033 const StringPiece& text, Prog::Anchor anchor,

Callers

nothing calls this directly

Calls 3

GetCachedProgFunction · 0.85
CanBitStateMethod · 0.80
SearchBitStateMethod · 0.80

Tested by

no test coverage detected