MCPcopy Create free account
hub / github.com/Tencent/phxrpc / GetServerConfigFileName

Method GetServerConfigFileName

codegen/name_render.cpp:150–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150const char *NameRender::GetServerConfigFileName(const char *name, char *dest, int size) {
151 snprintf(dest, size, "%s%c%s_server_config", prefix_, toupper(*name), name + 1);
152
153 ToLower(dest);
154
155 return dest;
156}
157
158const char *NameRender::GetServerEtcFileName(const char *name, char *dest, int size) {
159 snprintf(dest, size, "%s%s_server.conf", prefix_, name);

Callers 6

GenerateServerMainCppMethod · 0.80
GenerateMakefileMethod · 0.80
Proto2ServerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected