Go to the documentation of this file.
74 "abstract",
"and",
"array",
"as",
"break",
75 "callable",
"case",
"catch",
"class",
"clone",
76 "const",
"continue",
"declare",
"default",
"die",
77 "do",
"echo",
"else",
"elseif",
"empty",
78 "enddeclare",
"endfor",
"endforeach",
"endif",
"endswitch",
79 "endwhile",
"eval",
"exit",
"extends",
"final",
80 "finally",
"fn",
"for",
"foreach",
"function",
81 "if",
"implements",
"include",
"include_once",
"instanceof",
82 "global",
"goto",
"insteadof",
"interface",
"isset",
83 "list",
"match",
"namespace",
"new",
"object",
84 "or",
"print",
"private",
"protected",
"public",
85 "require",
"require_once",
"return",
"static",
"switch",
86 "throw",
"trait",
"try",
"unset",
"use",
87 "var",
"while",
"xor",
"yield",
"int",
88 "float",
"bool",
"string",
"true",
"false",
89 "null",
"void",
"iterable", NULL};
102 if (
ch >=
'A' &&
ch <=
'Z') {
103 return ch - (
'A' -
'a');
110 if (
ch >=
'a' &&
ch <=
'z') {
111 return ch - (
'a' -
'A');
119 char* lower = calloc(1,
length + 1);
133 const char *prefix_given,
134 const char *package_name,
136 if (prefix_given != NULL && strcmp(prefix_given,
"") != 0) {
140 if (package_name != NULL &&
141 strcmp(
"google.protobuf", package_name) == 0) {
152 if (use_camel && (segment[0] <
'A' || segment[0] >
'Z')) {
163 if (php_namespace != NULL) {
164 if (strlen(php_namespace) != 0) {
168 }
else if (package != NULL) {
170 size_t package_len = strlen(package);
171 while (
i < package_len) {
173 while (j < package_len && package[j] !=
'.') {
188 int classname_start = 0;
189 if (package != NULL) {
190 size_t package_len = strlen(package);
191 classname_start = package_len == 0 ? 0 : package_len + 1;
193 size_t fullname_len = strlen(fullname);
195 int i = classname_start, j;
196 while (
i < fullname_len) {
198 while (j < fullname_len && fullname[j] !=
'.') {
203 if (j != fullname_len) {
214 const char *
package = upb_filedef_package(file);
const char * upb_filedef_phpprefix(const upb_filedef *f)
static size_t stringsink_string(stringsink *sink, const char *ptr, size_t len)
static char nolocale_tolower(char ch)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
const char *const kReservedNames[]
static void fill_prefix(const char *segment, int length, const char *prefix_given, const char *package_name, stringsink *classname)
const char * upb_filedef_phpnamespace(const upb_filedef *f)
static void stringsink_init(stringsink *sink)
static void fill_namespace(const char *package, const char *php_namespace, stringsink *classname)
bool is_reserved_name(const char *name)
static bool is_reserved(const char *segment, int length)
static void stringsink_uninit(stringsink *sink)
UniquePtr< SSL_SESSION > ret
static const char prefix[]
static void fill_segment(const char *segment, int length, stringsink *classname, bool use_camel)
char * GetPhpClassname(const upb_filedef *file, const char *fullname)
static char nolocale_toupper(char ch)
static void fill_classname(const char *fullname, const char *package, const char *prefix, stringsink *classname)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:42