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

Method BuildInfo

extern/re2/re2/prefilter.cc:504–518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502};
503
504Prefilter::Info* Prefilter::BuildInfo(Regexp* re) {
505 if (ExtraDebug)
506 LOG(ERROR) << "BuildPrefilter::Info: " << re->ToString();
507
508 bool latin1 = (re->parse_flags() & Regexp::Latin1) != 0;
509 Prefilter::Info::Walker w(latin1);
510 Prefilter::Info* info = w.WalkExponential(re, NULL, 100000);
511
512 if (w.stopped_early()) {
513 delete info;
514 return NULL;
515 }
516
517 return info;
518}
519
520Prefilter::Info* Prefilter::Info::Walker::ShortVisit(
521 Regexp* re, Prefilter::Info* parent_arg) {

Callers

nothing calls this directly

Calls 4

parse_flagsMethod · 0.80
WalkExponentialMethod · 0.80
stopped_earlyMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected