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

Function SearchParse2CachedPCRE

extern/re2/re2/testing/regexp_benchmark.cc:1320–1327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1318}
1319
1320void SearchParse2CachedPCRE(benchmark::State& state, const char* regexp,
1321 const StringPiece& text) {
1322 PCRE& re = *GetCachedPCRE(regexp);
1323 for (auto _ : state) {
1324 StringPiece sp1, sp2;
1325 CHECK(PCRE::PartialMatch(text, re, &sp1, &sp2));
1326 }
1327}
1328
1329void SearchParse2CachedRE2(benchmark::State& state, const char* regexp,
1330 const StringPiece& text) {

Callers

nothing calls this directly

Calls 1

GetCachedPCREFunction · 0.85

Tested by

no test coverage detected