MCPcopy Create free account
hub / github.com/apache/brpc / to_var_name

Function to_var_name

src/mcpack2pb/generator.cpp:161–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161static std::string to_var_name(const std::string& name) {
162 std::string result = name;
163 for (size_t i = 0; i < result.size(); ++i) {
164 if (result[i] == '.') {
165 result[i] = '_';
166 }
167 }
168 return result;
169}
170
171static std::string to_cpp_name(const std::string& full_name) {
172 std::string cname;

Callers 4

generate_parsingFunction · 0.85
generate_serializingFunction · 0.85
generate_registrationFunction · 0.85
GenerateMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected