| 62 | } |
| 63 | |
| 64 | string Message::ShortDebugString() const { |
| 65 | string debug_string; |
| 66 | |
| 67 | TextFormat::Printer printer; |
| 68 | printer.SetSingleLineMode(true); |
| 69 | |
| 70 | printer.PrintToString(*this, &debug_string); |
| 71 | // Single line mode currently might have an extra space at the end. |
| 72 | if (debug_string.size() > 0 && |
| 73 | debug_string[debug_string.size() - 1] == ' ') { |
| 74 | debug_string.resize(debug_string.size() - 1); |
| 75 | } |
| 76 | |
| 77 | return debug_string; |
| 78 | } |
| 79 | |
| 80 | string Message::Utf8DebugString() const { |
| 81 | string debug_string; |
nothing calls this directly
no test coverage detected