Capitalize the first character of s and convert the rest of s to lowercase.
The string to capitalize.
The capitalized string.
assert(capitalize("hello") == "Hello"); assert(capitalize("World") == "World");
std.uni.asCapitalized for a lazy range version that doesn't allocate memory
See Implementation
Capitalize the first character of s and convert the rest of s to lowercase.