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

Function Parse1CachedPCRE

extern/re2/re2/testing/regexp_benchmark.cc:1302–1309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1300}
1301
1302void Parse1CachedPCRE(benchmark::State& state, const char* regexp,
1303 const StringPiece& text) {
1304 PCRE& re = *GetCachedPCRE(regexp);
1305 StringPiece sp1;
1306 for (auto _ : state) {
1307 CHECK(PCRE::FullMatch(text, re, &sp1));
1308 }
1309}
1310
1311void Parse1CachedRE2(benchmark::State& state, const char* regexp,
1312 const StringPiece& text) {

Callers

nothing calls this directly

Calls 1

GetCachedPCREFunction · 0.85

Tested by

no test coverage detected