| 53 | }; |
| 54 | |
| 55 | std::string Regexp::ToString() { |
| 56 | std::string t; |
| 57 | ToStringWalker w(&t); |
| 58 | w.WalkExponential(this, PrecToplevel, 100000); |
| 59 | if (w.stopped_early()) |
| 60 | t += " [truncated]"; |
| 61 | return t; |
| 62 | } |
| 63 | |
| 64 | #define ToString DontCallToString // Avoid accidental recursion. |
| 65 |