Index: src/google/protobuf/compiler/cpp/cpp_helpers.cc |
=================================================================== |
--- src/google/protobuf/compiler/cpp/cpp_helpers.cc (revision 374) |
+++ src/google/protobuf/compiler/cpp/cpp_helpers.cc (working copy) |
@@ -175,6 +175,14 @@ |
return result; |
} |
+string FieldCamelcaseName(const FieldDescriptor* field) { |
+ string result = field->camelcase_name(); |
+ if ('a' <= result[0] && result[0] <= 'z') { |
+ result[0] += 'A' - 'a'; |
+ } |
+ return result; |
+} |
+ |
string FieldMessageTypeName(const FieldDescriptor* field) { |
// Note: The Google-internal version of Protocol Buffers uses this function |
// as a hook point for hacks to support legacy code. |