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

Function SearchParse1CachedPCRE

extern/re2/re2/testing/regexp_benchmark.cc:1338–1345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1336}
1337
1338void SearchParse1CachedPCRE(benchmark::State& state, const char* regexp,
1339 const StringPiece& text) {
1340 PCRE& re = *GetCachedPCRE(regexp);
1341 for (auto _ : state) {
1342 StringPiece sp1;
1343 CHECK(PCRE::PartialMatch(text, re, &sp1));
1344 }
1345}
1346
1347void SearchParse1CachedRE2(benchmark::State& state, const char* regexp,
1348 const StringPiece& text) {

Callers

nothing calls this directly

Calls 1

GetCachedPCREFunction · 0.85

Tested by

no test coverage detected