| 950 | } |
| 951 | |
| 952 | void 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 | |
| 967 | void TextFormat::Printer::PrintField(const Message& message, |
| 968 | const Reflection* reflection, |