aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/compiler/generator_helpers.h
diff options
context:
space:
mode:
authorGravatar Jorge Canizales <jcanizales@google.com>2015-04-27 00:05:01 -0700
committerGravatar Jorge Canizales <jcanizales@google.com>2015-05-15 09:55:45 -0700
commit9a065d2e2f91df6ff836771a2105d2368a72b3b8 (patch)
tree3675c533cd40cfa90503c0d690e7377770720832 /src/compiler/generator_helpers.h
parent55e04e4e055794d400f8736c1c9a921f581a6589 (diff)
Adjusts generated header to new runtime and surface.
Diffstat (limited to 'src/compiler/generator_helpers.h')
-rw-r--r--src/compiler/generator_helpers.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compiler/generator_helpers.h b/src/compiler/generator_helpers.h
index 7ce4ec526c..a232fcc954 100644
--- a/src/compiler/generator_helpers.h
+++ b/src/compiler/generator_helpers.h
@@ -103,6 +103,14 @@ inline grpc::string CapitalizeFirstLetter(grpc::string s) {
return s;
}
+inline grpc::string LowercaseFirstLetter(grpc::string s) {
+ if (s.empty()) {
+ return s;
+ }
+ s[0] = ::tolower(s[0]);
+ return s;
+}
+
inline grpc::string LowerUnderscoreToUpperCamel(grpc::string str) {
std::vector<grpc::string> tokens = tokenize(str, "_");
grpc::string result = "";