llvm::convertToSnakeFromCamelCase

Converts a string from camel-case to snake-case by replacing all uppercase letters with '_' followed by the letter in lowercase, except if the uppercase letter is the first character of the string.

Synopsis

Declared in <llvm/ADT/StringExtras.h>

std::string
convertToSnakeFromCamelCase(StringRef input);

Parameters

NameDescription
inputRepresent a constant reference to a string, i.e. a character array and a length, which need not be null terminated.