diff options
author | Jisi Liu <jisi.liu@gmail.com> | 2015-02-17 18:03:59 -0800 |
---|---|---|
committer | Jisi Liu <jisi.liu@gmail.com> | 2015-02-19 16:43:07 -0800 |
commit | 33222b5a024821df499eaf9060206ea70ebe4574 (patch) | |
tree | 9306e0661a19b8a8e270cebaa01f7cb1d4509daf /src/google/protobuf/compiler/javanano/javanano_helpers.h | |
parent | f0e08fd4e4c33c87bbfb309b5baa4d6e976ddcc7 (diff) |
Initial check in for primitive oneof fields.
Diffstat (limited to 'src/google/protobuf/compiler/javanano/javanano_helpers.h')
-rw-r--r-- | src/google/protobuf/compiler/javanano/javanano_helpers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/google/protobuf/compiler/javanano/javanano_helpers.h b/src/google/protobuf/compiler/javanano/javanano_helpers.h index b4fee649..b47ee4a4 100644 --- a/src/google/protobuf/compiler/javanano/javanano_helpers.h +++ b/src/google/protobuf/compiler/javanano/javanano_helpers.h @@ -54,7 +54,9 @@ extern const char kThinSeparator[]; // Converts the field's name to camel-case, e.g. "foo_bar_baz" becomes // "fooBarBaz" or "FooBarBaz", respectively. string UnderscoresToCamelCase(const FieldDescriptor* field); +string UnderscoresToCamelCase(const OneofDescriptor* oneof); string UnderscoresToCapitalizedCamelCase(const FieldDescriptor* field); +string UnderscoresToCapitalizedCamelCase(const OneofDescriptor* oneof); // Appends an "_" to the end of a field where the name is a reserved java // keyword. For example int32 public = 1 will generate int public_. @@ -189,6 +191,9 @@ inline bool IsMapEntry(const Descriptor* descriptor) { bool HasMapField(const Descriptor* descriptor); +void SetCommonOneofVariables(const FieldDescriptor* field, + map<string, string>* variables); + } // namespace javanano } // namespace compiler } // namespace protobuf |