Go to the documentation of this file.
19 #ifndef GRPC_INTERNAL_COMPILER_PHP_GENERATOR_HELPERS_H
20 #define GRPC_INTERNAL_COMPILER_PHP_GENERATOR_HELPERS_H
33 (class_suffix ==
"" ? (is_server ?
"" :
"Client") : class_suffix) +
34 (is_server ?
"Stub" :
"");
41 while ((
pos = s.find(
search,
pos)) != std::string::npos) {
43 pos += replace.length();
52 std::ostringstream oss;
53 if (
file->options().has_php_namespace()) {
56 std::vector<std::string> tokens =
58 for (
unsigned int i = 0;
i < tokens.size();
i++) {
59 oss << (
i == 0 ?
"" :
"/")
63 return oss.str() +
"/" +
69 template <
typename DescriptorType>
78 #endif // GRPC_INTERNAL_COMPILER_PHP_GENERATOR_HELPERS_H
std::string GetPHPServiceClassname(const grpc::protobuf::ServiceDescriptor *service, const std::string &class_suffix, bool is_server)
std::string ReplaceAll(std::string s, const std::string &search, const std::string &replace)
std::string GetPHPComments(const DescriptorType *desc, std::string prefix)
GRPC_CUSTOM_FILEDESCRIPTOR FileDescriptor
std::string GetPrefixedComments(const DescriptorType *desc, bool leading, const std::string &prefix)
std::string GetPHPServiceFilename(const grpc::protobuf::FileDescriptor *file, const grpc::protobuf::ServiceDescriptor *service, const std::string &class_suffix, bool is_server)
std::vector< std::string > tokenize(const std::string &input, const std::string &delimiters)
std::string CapitalizeFirstLetter(std::string s)
static const char prefix[]
__attribute__((deprecated("Please use GRPCProtoMethod."))) @interface ProtoMethod NSString * service
GRPC_CUSTOM_SERVICEDESCRIPTOR ServiceDescriptor
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:52