Skip to content

Commit

Permalink
Re-Expose UnderscoresToCapitalizedCamelCase for plugins in OSS.
Browse files Browse the repository at this point in the history
Fixes [#17439](#17439).

PiperOrigin-RevId: 716070137
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Jan 16, 2025
1 parent d054e53 commit 94ae26d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/google/protobuf/compiler/java/names.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ PROTOC_EXPORT std::string UnderscoresToCamelCase(
PROTOC_EXPORT std::string UnderscoresToCamelCaseCheckReserved(
const FieldDescriptor* field);

// Requires:
// field != NULL
// Returns:
// Same as UnderscoresToCamelCase, but capitalizes the first letter
PROTOC_EXPORT std::string UnderscoresToCapitalizedCamelCase(
const FieldDescriptor* field);


} // namespace java
} // namespace compiler
Expand Down

0 comments on commit 94ae26d

Please sign in to comment.