MCPcopy Create free account
hub / github.com/DFHack/dfhack / FieldName

Function FieldName

depends/protobuf/google/protobuf/compiler/cpp/cpp_helpers.cc:153–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153string FieldName(const FieldDescriptor* field) {
154 string result = field->name();
155 LowerString(&result);
156 if (kKeywords.count(result) > 0) {
157 result.append("_");
158 }
159 return result;
160}
161
162string FieldConstantName(const FieldDescriptor *field) {
163 string field_name = UnderscoresToCamelCase(field->name(), true);

Callers 11

SetStringVariablesFunction · 0.85
GenerateOffsetsMethod · 0.85
GenerateStructorsMethod · 0.85
GenerateClearMethod · 0.85
GenerateMergeFromMethod · 0.85
GenerateByteSizeMethod · 0.85
SetCommonFieldVariablesFunction · 0.85

Calls 2

LowerStringFunction · 0.85
countMethod · 0.45

Tested by

no test coverage detected