ΒΆstd::string convertToCamelFromSnakeCase(
llvm::StringRef input,
bool capitalizeFirst = false)
std::string convertToCamelFromSnakeCase(
llvm::StringRef input,
bool capitalizeFirst = false)
Description
Converts a string from snake-case to camel-case by replacing all occurrences of '_' followed by a lowercase letter with the letter in uppercase. Optionally allow capitalization of the first letter (if it is a lowercase letter)
Declared at: llvm/include/llvm/ADT/StringExtras.h:388
Parameters
- llvm::StringRef input
- bool capitalizeFirst = false