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

Method PrintToString

depends/protobuf/google/protobuf/text_format.cc:898–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896TextFormat::Printer::~Printer() {}
897
898bool TextFormat::Printer::PrintToString(const Message& message,
899 string* output) const {
900 GOOGLE_DCHECK(output) << "output specified is NULL";
901
902 output->clear();
903 io::StringOutputStream output_stream(output);
904
905 bool result = Print(message, &output_stream);
906
907 return result;
908}
909
910bool TextFormat::Printer::PrintUnknownFieldsToString(
911 const UnknownFieldSet& unknown_fields,

Callers 2

ShortDebugStringMethod · 0.80
Utf8DebugStringMethod · 0.80

Calls 2

PrinterClass · 0.50
clearMethod · 0.45

Tested by

no test coverage detected