File indexing completed on 2025-03-01 10:26:08
0001
0002
0003
0004
0005
0006
0007
0008 #ifndef GOOGLE_PROTOBUF_COMPILER_PHP_NAMES_H__
0009 #define GOOGLE_PROTOBUF_COMPILER_PHP_NAMES_H__
0010
0011 #include "google/protobuf/descriptor.h"
0012
0013 #include <string>
0014
0015 #include "absl/strings/string_view.h"
0016 #include "google/protobuf/port_def.inc"
0017
0018 namespace google {
0019 namespace protobuf {
0020 namespace compiler {
0021 namespace php {
0022
0023
0024 PROTOC_EXPORT bool IsReservedName(absl::string_view name);
0025
0026
0027 PROTOC_EXPORT std::string ReservedNamePrefix(absl::string_view classname,
0028 const FileDescriptor* file);
0029
0030
0031 PROTOC_EXPORT std::string ClassNamePrefix(absl::string_view classname,
0032 const Descriptor* desc);
0033 PROTOC_EXPORT std::string ClassNamePrefix(absl::string_view classname,
0034 const EnumDescriptor* desc);
0035
0036
0037
0038
0039 PROTOC_EXPORT std::string GeneratedClassName(const Descriptor* desc);
0040 PROTOC_EXPORT std::string GeneratedClassName(const EnumDescriptor* desc);
0041 PROTOC_EXPORT std::string GeneratedClassName(const ServiceDescriptor* desc);
0042
0043 }
0044 }
0045 }
0046 }
0047
0048 #include "google/protobuf/port_undef.inc"
0049
0050 #endif