The corresponding uppercase letter, if c is a lowercase ASCII character, otherwise c itself.
assert(toUpper('a') == 'A'); assert(toUpper('A') == 'A'); assert(toUpper('#') == '#'); // N.B.: Non-ASCII Unicode lowercase letters are not converted. assert(toUpper('á') == 'á');
Converts an ASCII letter to uppercase.