Overview
/
KCL Standard Library
/
Functions
/
string::uppercase

string::uppercaseFunction in std::string

Convert all cased characters in a string to uppercase.

This conversion is Unicode-aware and locale-independent. Some characters expand into multiple characters; for example, ß becomes SS. The exact mappings follow the Unicode data bundled with KCL.

Unicode normalization is not performed. Canonically equivalent strings therefore retain their original representations. Empty strings and strings without cased characters are returned unchanged.

Arguments

NameTypeDescriptionRequired
textstringThe string to convert.Yes

Returns

string - A sequence of characters

Examples