#include <printer.h>
Classes | |
| class | TextGenerator |
Public Member Functions | |
| template<typename SomeDescriptor > | |
| void | Annotate (const char *begin_varname, const char *end_varname, const SomeDescriptor *descriptor) |
| template<typename SomeDescriptor > | |
| void | Annotate (const char *begin_varname, const char *end_varname, const SomeDescriptor *descriptor) |
| void | Annotate (const char *begin_varname, const char *end_varname, const std::string &file_name) |
| void | Annotate (const char *begin_varname, const char *end_varname, const std::string &file_name) |
| template<typename SomeDescriptor > | |
| void | Annotate (const char *varname, const SomeDescriptor *descriptor) |
| template<typename SomeDescriptor > | |
| void | Annotate (const char *varname, const SomeDescriptor *descriptor) |
| void | Annotate (const char *varname, const std::string &file_name) |
| void | Annotate (const char *varname, const std::string &file_name) |
| bool | failed () const |
| bool | failed () const |
| void | FormatInternal (const std::vector< std::string > &args, const std::map< std::string, std::string > &vars, const char *format) |
| void | FormatInternal (const std::vector< std::string > &args, const std::map< std::string, std::string > &vars, const char *format) |
| void | Indent () |
| void | Indent () |
| void | Outdent () |
| void | Outdent () |
| template<typename... Args> | |
| void | Print (const char *text, const Args &... args) |
| template<typename... Args> | |
| void | Print (const char *text, const Args &... args) |
| void | Print (const std::map< std::string, std::string > &variables, const char *text) |
| void | Print (const std::map< std::string, std::string > &variables, const char *text) |
| Printer (ZeroCopyOutputStream *output, char variable_delimiter) | |
| Printer (ZeroCopyOutputStream *output, char variable_delimiter) | |
| Printer (ZeroCopyOutputStream *output, char variable_delimiter, AnnotationCollector *annotation_collector) | |
| Printer (ZeroCopyOutputStream *output, char variable_delimiter, AnnotationCollector *annotation_collector) | |
| void | PrintRaw (const char *data) |
| void | PrintRaw (const char *data) |
| void | PrintRaw (const std::string &data) |
| void | PrintRaw (const std::string &data) |
| void | WriteRaw (const char *data, int size) |
| void | WriteRaw (const char *data, int size) |
| ~Printer () | |
| ~Printer () | |
Private Member Functions | |
| void | Annotate (const char *begin_varname, const char *end_varname, const std::string &file_path, const std::vector< int > &path) |
| void | Annotate (const char *begin_varname, const char *end_varname, const std::string &file_path, const std::vector< int > &path) |
| void | CopyToBuffer (const char *data, int size) |
| void | CopyToBuffer (const char *data, int size) |
| bool | GetSubstitutionRange (const char *varname, std::pair< size_t, size_t > *range) |
| bool | GetSubstitutionRange (const char *varname, std::pair< size_t, size_t > *range) |
| GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Printer) | |
| GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (Printer) | |
| void | IndentIfAtStart () |
| void | IndentIfAtStart () |
| bool | Next () |
| bool | Next () |
| void | PrintInternal (std::map< std::string, std::string > *vars, const char *text) |
| void | PrintInternal (std::map< std::string, std::string > *vars, const char *text) |
| template<typename... Args> | |
| void | PrintInternal (std::map< std::string, std::string > *vars, const char *text, const char *key, const std::string &value, const Args &... args) |
| template<typename... Args> | |
| void | PrintInternal (std::map< std::string, std::string > *vars, const char *text, const char *key, const std::string &value, const Args &... args) |
| void | push_back (char c) |
| void | push_back (char c) |
| const char * | WriteVariable (const std::vector< std::string > &args, const std::map< std::string, std::string > &vars, const char *format, int *arg_index, std::vector< AnnotationCollector::Annotation > *annotations) |
| const char * | WriteVariable (const std::vector< std::string > &args, const std::map< std::string, std::string > &vars, const char *format, int *arg_index, std::vector< AnnotationCollector::Annotation > *annotations) |
Private Attributes | |
| AnnotationCollector *const | annotation_collector_ |
| bool | at_start_of_line_ |
| char * | buffer_ |
| int | buffer_size_ |
| bool | failed_ |
| std::string | indent_ |
| std::vector< std::string > | line_start_variables_ |
| size_t | offset_ |
| ZeroCopyOutputStream *const | output_ |
| std::map< std::string, std::pair< size_t, size_t > > | substitutions_ |
| const char | variable_delimiter_ |
Definition at line 181 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
| google::protobuf::io::Printer::Printer | ( | ZeroCopyOutputStream * | output, |
| char | variable_delimiter | ||
| ) |
Definition at line 47 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
| google::protobuf::io::Printer::Printer | ( | ZeroCopyOutputStream * | output, |
| char | variable_delimiter, | ||
| AnnotationCollector * | annotation_collector | ||
| ) |
Definition at line 57 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
| google::protobuf::io::Printer::~Printer | ( | ) |
Definition at line 68 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
| google::protobuf::io::Printer::Printer | ( | ZeroCopyOutputStream * | output, |
| char | variable_delimiter | ||
| ) |
| google::protobuf::io::Printer::Printer | ( | ZeroCopyOutputStream * | output, |
| char | variable_delimiter, | ||
| AnnotationCollector * | annotation_collector | ||
| ) |
| google::protobuf::io::Printer::~Printer | ( | ) |
|
inline |
Definition at line 208 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
inline |
Definition at line 209 of file protobuf/src/google/protobuf/io/printer.h.
|
inline |
Definition at line 230 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
inline |
Definition at line 231 of file protobuf/src/google/protobuf/io/printer.h.
|
private |
Definition at line 92 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
|
private |
|
inline |
Definition at line 199 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
inline |
Definition at line 200 of file protobuf/src/google/protobuf/io/printer.h.
|
inline |
Definition at line 222 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
inline |
Definition at line 223 of file protobuf/src/google/protobuf/io/printer.h.
Definition at line 244 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
|
inline |
Definition at line 288 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
inline |
Definition at line 289 of file protobuf/src/google/protobuf/io/printer.h.
| void google::protobuf::io::Printer::FormatInternal | ( | const std::vector< std::string > & | args, |
| const std::map< std::string, std::string > & | vars, | ||
| const char * | format | ||
| ) |
Definition at line 277 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
| void google::protobuf::io::Printer::FormatInternal | ( | const std::vector< std::string > & | args, |
| const std::map< std::string, std::string > & | vars, | ||
| const char * | format | ||
| ) |
|
private |
Definition at line 75 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
|
private |
|
private |
|
private |
| void google::protobuf::io::Printer::Indent | ( | ) |
Definition at line 186 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
| void google::protobuf::io::Printer::Indent | ( | ) |
|
inlineprivate |
Definition at line 270 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
|
inlineprivate |
|
private |
Definition at line 232 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
|
private |
| void google::protobuf::io::Printer::Outdent | ( | ) |
Definition at line 188 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
| void google::protobuf::io::Printer::Outdent | ( | ) |
|
inline |
Definition at line 250 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
inline |
Definition at line 251 of file protobuf/src/google/protobuf/io/printer.h.
| void google::protobuf::io::Printer::Print | ( | const std::map< std::string, std::string > & | variables, |
| const char * | text | ||
| ) |
Definition at line 113 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
| void google::protobuf::io::Printer::Print | ( | const std::map< std::string, std::string > & | variables, |
| const char * | text | ||
| ) |
|
inlineprivate |
Definition at line 301 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
inlineprivate |
Definition at line 302 of file protobuf/src/google/protobuf/io/printer.h.
|
inlineprivate |
Definition at line 307 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
inlineprivate |
Definition at line 308 of file protobuf/src/google/protobuf/io/printer.h.
| void google::protobuf::io::Printer::PrintRaw | ( | const char * | data | ) |
Definition at line 201 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
| void google::protobuf::io::Printer::PrintRaw | ( | const char * | data | ) |
| void google::protobuf::io::Printer::PrintRaw | ( | const std::string & | data | ) |
Definition at line 197 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
| void google::protobuf::io::Printer::PrintRaw | ( | const std::string & | data | ) |
|
inlineprivate |
Definition at line 317 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
inlineprivate |
Definition at line 318 of file protobuf/src/google/protobuf/io/printer.h.
Definition at line 206 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.cc.
|
private |
Definition at line 307 of file protobuf/src/google/protobuf/io/printer.cc.
|
private |
|
private |
Definition at line 373 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
private |
Definition at line 347 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
private |
Definition at line 339 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
private |
Definition at line 340 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
private |
Definition at line 348 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
private |
Definition at line 346 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
private |
Definition at line 362 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
private |
Definition at line 344 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
private |
Definition at line 338 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
private |
Definition at line 357 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.
|
private |
Definition at line 336 of file bloaty/third_party/protobuf/src/google/protobuf/io/printer.h.