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

Function FormatKind

extern/re2/re2/testing/tester.cc:133–145  ·  view source on GitHub ↗

Returns string representation of match kind.

Source from the content-addressed store, hash-verified

131
132// Returns string representation of match kind.
133static std::string FormatKind(Prog::MatchKind kind) {
134 switch (kind) {
135 case Prog::kFullMatch:
136 return "full match";
137 case Prog::kLongestMatch:
138 return "longest match";
139 case Prog::kFirstMatch:
140 return "first match";
141 case Prog::kManyMatch:
142 return "many match";
143 }
144 return "???";
145}
146
147// Returns string representation of anchor kind.
148static std::string FormatAnchor(Prog::Anchor anchor) {

Callers 3

TestInstanceMethod · 0.85
RunCaseMethod · 0.85
LogMatchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected