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

Function SimplifyRegexp

extern/re2/re2/testing/regexp_benchmark.cc:656–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656void SimplifyRegexp(benchmark::State& state, const std::string& regexp) {
657 for (auto _ : state) {
658 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);
659 CHECK(re);
660 Regexp* sre = re->Simplify();
661 CHECK(sre);
662 sre->Decref();
663 re->Decref();
664 }
665}
666
667void NullWalkRegexp(benchmark::State& state, const std::string& regexp) {
668 Regexp* re = Regexp::Parse(regexp, Regexp::LikePerl, NULL);

Callers

nothing calls this directly

Calls 3

ParseFunction · 0.85
SimplifyMethod · 0.45
DecrefMethod · 0.45

Tested by

no test coverage detected