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

Method PrintFieldValueToString

depends/protobuf/google/protobuf/text_format.cc:952–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

950}
951
952void TextFormat::Printer::PrintFieldValueToString(
953 const Message& message,
954 const FieldDescriptor* field,
955 int index,
956 string* output) const {
957
958 GOOGLE_DCHECK(output) << "output specified is NULL";
959
960 output->clear();
961 io::StringOutputStream output_stream(output);
962 TextGenerator generator(&output_stream, initial_indent_level_);
963
964 PrintFieldValue(message, message.GetReflection(), field, index, generator);
965}
966
967void TextFormat::Printer::PrintField(const Message& message,
968 const Reflection* reflection,

Callers

nothing calls this directly

Calls 2

PrinterClass · 0.50
clearMethod · 0.45

Tested by

no test coverage detected