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

Method LogMatch

extern/re2/re2/testing/tester.cc:597–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

595}
596
597void TestInstance::LogMatch(const char* prefix, Engine e,
598 const StringPiece& text, const StringPiece& context,
599 Prog::Anchor anchor) {
600 LOG(INFO) << prefix
601 << EngineName(e)
602 << " regexp "
603 << CEscape(regexp_str_)
604 << " "
605 << CEscape(regexp_->ToString())
606 << " text "
607 << CEscape(text)
608 << " ("
609 << text.begin() - context.begin()
610 << ","
611 << text.end() - context.begin()
612 << ") of context "
613 << CEscape(context)
614 << " (" << FormatKind(kind_)
615 << ", " << FormatAnchor(anchor)
616 << ", " << FormatMode(flags_)
617 << ")";
618}
619
620static Prog::MatchKind kinds[] = {
621 Prog::kFirstMatch,

Callers

nothing calls this directly

Calls 7

CEscapeFunction · 0.85
FormatKindFunction · 0.85
FormatAnchorFunction · 0.85
FormatModeFunction · 0.85
ToStringMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected