snakeToPascal

Converts a snake_case name to a PascalCase.

This function is designed for use at compile time and is thus not careful about avoiding allocations.

string
snakeToPascal
(
string value
)

Parameters

value string

the snake_case value

Return Value

Type: string

The value in camel case

Examples

assert (snakeToPascal("") == "");
assert (snakeToPascal("a") == "A");
assert (snakeToPascal("Aaaa") == "Aaaa");
assert (snakeToPascal("aaaa_bbbbb") == "AaaaBbbbb");

Meta