Classes | Namespaces | Macros | Functions | Variables
protobuf/src/google/protobuf/text_format.cc File Reference
#include <google/protobuf/text_format.h>
#include <float.h>
#include <stdio.h>
#include <algorithm>
#include <atomic>
#include <climits>
#include <cmath>
#include <limits>
#include <vector>
#include <google/protobuf/stubs/stringprintf.h>
#include <google/protobuf/any.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/tokenizer.h>
#include <google/protobuf/io/zero_copy_stream.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/dynamic_message.h>
#include <google/protobuf/map_field.h>
#include <google/protobuf/message.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/unknown_field_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/io/strtod.h>
#include <google/protobuf/stubs/map_util.h>
#include <google/protobuf/stubs/stl_util.h>
#include <google/protobuf/port_def.inc>
#include <google/protobuf/port_undef.inc>
Include dependency graph for protobuf/src/google/protobuf/text_format.cc:

Go to the source code of this file.

Classes

class  google::protobuf::TextFormat::Printer::DebugStringFieldValuePrinter
 
class  google::protobuf::TextFormat::Printer::FastFieldValuePrinterUtf8Escaping
 
class  google::protobuf::MapEntryMessageComparator
 
class  google::protobuf.internal::MapFieldPrinterHelper
 
class  google::protobuf::TextFormat::Parser::ParserImpl::ParserErrorCollector
 
class  google::protobuf::TextFormat::Parser::ParserImpl
 
class  google::protobuf::io::Printer::TextGenerator
 

Namespaces

 google
 
 google::protobuf
 
 google.protobuf.internal
 

Macros

#define DEBUG_STRING_SILENT_MARKER   "\t "
 
#define DO(STATEMENT)
 
#define FORWARD_IMPL(fn, ...)
 
#define OUTPUT_FIELD(CPPTYPE, METHOD)
 
#define SET_FIELD(CPPTYPE, VALUE)
 

Functions

void google::protobuf::CheckFieldIndex (const FieldDescriptor *field, int index)
 

Variables

PROTOBUF_EXPORT std::atomic< boolgoogle.protobuf.internal::enable_debug_text_format_marker
 
static constexpr int google::protobuf::kUnknownFieldRecursionLimit = 10
 

Macro Definition Documentation

◆ DEBUG_STRING_SILENT_MARKER

#define DEBUG_STRING_SILENT_MARKER   "\t "

Definition at line 69 of file protobuf/src/google/protobuf/text_format.cc.

◆ DO

#define DO (   STATEMENT)
Value:
if (STATEMENT) { \
} else { \
return false; \
}

Definition at line 238 of file protobuf/src/google/protobuf/text_format.cc.

◆ FORWARD_IMPL

#define FORWARD_IMPL (   fn,
  ... 
)
Value:
StringBaseTextGenerator generator; \
delegate_.fn(__VA_ARGS__, &generator); \
return generator.Get()

Definition at line 1734 of file protobuf/src/google/protobuf/text_format.cc.

◆ OUTPUT_FIELD

#define OUTPUT_FIELD (   CPPTYPE,
  METHOD 
)
Value:
case FieldDescriptor::CPPTYPE_##CPPTYPE: \
printer->Print##METHOD( \
field->is_repeated() \
? reflection->GetRepeated##METHOD(message, field, index) \
: reflection->Get##METHOD(message, field), \
generator); \
break

◆ SET_FIELD

#define SET_FIELD (   CPPTYPE,
  VALUE 
)
Value:
if (field->is_repeated()) { \
reflection->Add##CPPTYPE(message, field, VALUE); \
} else { \
reflection->Set##CPPTYPE(message, field, VALUE); \
}

Variable Documentation

◆ delegate_

std::unique_ptr<const TextFormat::FieldValuePrinter> delegate_
private

◆ output_

std::string output_
private
message
char * message
Definition: libuv/docs/code/tty-gravity/main.c:12
field
const FieldDescriptor * field
Definition: bloaty/third_party/protobuf/src/google/protobuf/compiler/parser_unittest.cc:2692
index
int index
Definition: bloaty/third_party/protobuf/php/ext/google/protobuf/protobuf.h:1184


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:34