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

Function FlattenedProgToString

extern/re2/re2/prog.cc:152–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152static std::string FlattenedProgToString(Prog* prog, int start) {
153 std::string s;
154 for (int id = start; id < prog->size(); id++) {
155 Prog::Inst* ip = prog->inst(id);
156 if (ip->last())
157 s += StringPrintf("%d. %s\n", id, ip->Dump().c_str());
158 else
159 s += StringPrintf("%d+ %s\n", id, ip->Dump().c_str());
160 }
161 return s;
162}
163
164std::string Prog::Dump() {
165 if (did_flatten_)

Callers 2

DumpMethod · 0.85
DumpUnanchoredMethod · 0.85

Calls 6

StringPrintfFunction · 0.85
instMethod · 0.80
sizeMethod · 0.45
lastMethod · 0.45
c_strMethod · 0.45
DumpMethod · 0.45

Tested by

no test coverage detected