For debugging, returns a string representation of the work queue.
| 487 | |
| 488 | // For debugging, returns a string representation of the work queue. |
| 489 | std::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. |
| 505 | std::string DFA::DumpState(State* state) { |
nothing calls this directly
no test coverage detected