| 151 | } |
| 152 | |
| 153 | string 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 | |
| 162 | string FieldConstantName(const FieldDescriptor *field) { |
| 163 | string field_name = UnderscoresToCamelCase(field->name(), true); |
no test coverage detected