camelCase

expect fun camelCase(string: String, upperCamel: Boolean = false): String

Convert string, from snake case to camel case.

When upperCamel is true, this should mirror the logic of fieldNameToJsonName in com/google/protobuf/Descriptors.java, except it lower cases the first character as well (protoc seems to do this step earlier).

See https://github.com/protocolbuffers/protobuf/blob/master/java/core/src/main/java/com/google/protobuf/Descriptors.java

Parameters

upperCamel

true to uppercase the first character.

actual fun camelCase(string: String, upperCamel: Boolean): String
actual fun camelCase(string: String, upperCamel: Boolean): String
actual fun camelCase(string: String, upperCamel: Boolean): String