MCPcopy Create free account
hub / github.com/DFHack/dfhack / ShortDebugString

Method ShortDebugString

depends/protobuf/google/protobuf/text_format.cc:64–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64string 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
80string Message::Utf8DebugString() const {
81 string debug_string;

Callers

nothing calls this directly

Calls 3

PrintToStringMethod · 0.80
sizeMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected