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

Method DumpWorkq

extern/re2/re2/dfa.cc:489–502  ·  view source on GitHub ↗

For debugging, returns a string representation of the work queue.

Source from the content-addressed store, hash-verified

487
488// For debugging, returns a string representation of the work queue.
489std::string DFA::DumpWorkq(Workq* q) {
490 std::string s;
491 const char* sep = "";
492 for (Workq::iterator it = q->begin(); it != q->end(); ++it) {
493 if (q->is_mark(*it)) {
494 s += "|";
495 sep = "";
496 } else {
497 s += StringPrintf("%s%d", sep, *it);
498 sep = ",";
499 }
500 }
501 return s;
502}
503
504// For debugging, returns a string representation of the state.
505std::string DFA::DumpState(State* state) {

Callers

nothing calls this directly

Calls 4

StringPrintfFunction · 0.85
is_markMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected