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

Function Parse3CachedPCRE

extern/re2/re2/testing/regexp_benchmark.cc:1177–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1175}
1176
1177void Parse3CachedPCRE(benchmark::State& state, const char* regexp,
1178 const StringPiece& text) {
1179 PCRE& re = *GetCachedPCRE(regexp);
1180 StringPiece sp1, sp2, sp3;
1181 for (auto _ : state) {
1182 CHECK(PCRE::FullMatch(text, re, &sp1, &sp2, &sp3));
1183 }
1184}
1185
1186void Parse3CachedRE2(benchmark::State& state, const char* regexp,
1187 const StringPiece& text) {

Callers

nothing calls this directly

Calls 1

GetCachedPCREFunction · 0.85

Tested by

no test coverage detected