-
Notifications
You must be signed in to change notification settings - Fork 10.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convert snake case protos package names to camel case in ruby modules #8265
Conversation
latest commit copies straight from protoc code |
@@ -115,6 +115,50 @@ void PrintService(const ServiceDescriptor *service, const grpc::string &package, | |||
|
|||
} // namespace | |||
|
|||
grpc::string SnakeCaseToCamelCase(grpc::string input) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably don't need this anymore, now that you have the other implementation.
// foo_bar_baz -> FooBarBaz | ||
std::string PackageToModule(const std::string& name) { | ||
bool next_upper = true; | ||
std::string result; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should all be grpc::string
, to be consistent with the rest of the code.
test this please |
1 similar comment
test this please |
test failures here should be unrelated, merging |
First attempt to fix #8257.
Tested this with example protos files, tweaking the package names to use a similar pattern as used in the issue, and saw this work, but I think the c++ might need some tweaks.