Namespaces | Enumerations | Functions
generator_helpers.h File Reference
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <vector>
#include "src/compiler/config.h"
Include dependency graph for generator_helpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 grpc_generator
 

Enumerations

enum  grpc_generator::CommentType { grpc_generator::COMMENTTYPE_LEADING, grpc_generator::COMMENTTYPE_TRAILING, grpc_generator::COMMENTTYPE_LEADING_DETACHED }
 
enum  grpc_generator::MethodType { grpc_generator::METHODTYPE_NO_STREAMING, grpc_generator::METHODTYPE_CLIENT_STREAMING, grpc_generator::METHODTYPE_SERVER_STREAMING, grpc_generator::METHODTYPE_BIDI_STREAMING }
 

Functions

std::string grpc_generator::CapitalizeFirstLetter (std::string s)
 
std::string grpc_generator::FileNameInUpperCamel (const grpc::protobuf::FileDescriptor *file)
 
std::string grpc_generator::FileNameInUpperCamel (const grpc::protobuf::FileDescriptor *file, bool include_package_path)
 
std::string grpc_generator::GenerateCommentsWithPrefix (const std::vector< std::string > &in, const std::string &prefix)
 
template<typename DescriptorType >
void grpc_generator::GetComment (const DescriptorType *desc, CommentType type, std::vector< std::string > *out)
 
template<>
void grpc_generator::GetComment (const grpc::protobuf::FileDescriptor *desc, CommentType type, std::vector< std::string > *out)
 
MethodType grpc_generator::GetMethodType (const grpc::protobuf::MethodDescriptor *method)
 
template<typename DescriptorType >
std::string grpc_generator::GetPrefixedComments (const DescriptorType *desc, bool leading, const std::string &prefix)
 
std::string grpc_generator::LowercaseFirstLetter (std::string s)
 
std::string grpc_generator::LowerUnderscoreToUpperCamel (std::string str)
 
void grpc_generator::Split (const std::string &s, char, std::vector< std::string > *append_to)
 
std::string grpc_generator::StringReplace (std::string str, const std::string &from, const std::string &to)
 
std::string grpc_generator::StringReplace (std::string str, const std::string &from, const std::string &to, bool replace_all)
 
bool grpc_generator::StripPrefix (std::string *name, const std::string &prefix)
 
std::string grpc_generator::StripProto (std::string filename)
 
bool grpc_generator::StripSuffix (std::string *filename, const std::string &suffix)
 
std::vector< std::string > grpc_generator::tokenize (const std::string &input, const std::string &delimiters)
 


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