Capitalize

Capitalizes the first character of the given string. This function is locale independent. It only converts lowercase characters in the standard 7-bit ASCII range. This is a feature, not a limitation.

Synopsis

Declared in <util/strencodings.h>

std::string
Capitalize(std::string str);

Return Value

string with the first letter capitalized.

Parameters

NameDescription
str [in]the string to capitalize.