Go to the documentation of this file.
19 #ifndef GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_HELPERS_H
20 #define GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_HELPERS_H
24 #include <google/protobuf/compiler/objectivec/objectivec_helpers.h>
72 std::size_t
pos =
import.rfind(
"/");
84 return invert ?
"!defined(" + symbol +
") || !" + symbol
85 :
"defined(" + symbol +
") && " + symbol;
91 if_true +
"#endif\n");
97 if_true +
"#endif\n");
104 if_true +
"#else\n" + if_false +
"#endif\n");
111 if_true +
"#else\n" + if_false +
"#endif\n");
115 #endif // GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_HELPERS_H
inline ::std::string LocalImport(const ::std::string &import)
string FileClassPrefix(const FileDescriptor *file)
inline ::std::string ServiceClassName(const ServiceDescriptor *service)
inline ::std::string SystemImport(const ::std::string &import)
string MessageHeaderName(const FileDescriptor *file)
inline ::std::string PreprocIf(const ::std::string &symbol, const ::std::string &if_true)
bool AsciiIsUpper(char c)
inline ::std::string PreprocIfElse(const ::std::string &symbol, const ::std::string &if_true, const ::std::string &if_false)
inline ::std::string FrameworkImport(const ::std::string &import, const ::std::string &framework)
static const char * class_name(int dnsclass)
inline ::std::string PreprocIfNotElse(const ::std::string &symbol, const ::std::string &if_true, const ::std::string &if_false)
static const char prefix[]
struct FileDescriptor FileDescriptor
inline ::std::string PreprocConditional(::std::string symbol, bool invert)
__attribute__((deprecated("Please use GRPCProtoMethod."))) @interface ProtoMethod NSString * service
string FilePath(const FileDescriptor *file)
GRPC_CUSTOM_SERVICEDESCRIPTOR ServiceDescriptor
inline ::std::string PreprocIfNot(const ::std::string &symbol, const ::std::string &if_true)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:44