upper
upper <string>
Return an ASCII upper-cased copy of a string.
Arguments
<string>— the source text. Only ASCII lettersa-zare changed; every other character is copied unchanged.
Returns
A string — the upper-cased copy. The source is not modified.
Examples
after command (say) {
do "say [upper "abc"]"
}
The mob says ABC.
after command (say) {
do "say [upper $arg]"
}
This shouts back the whole command line in upper case — for say hello there the mob says HELLO THERE. See handlers for the
$arg binding.
See also
lower— the lower-case counterpart.substr— copy part of a string.streqi— case-insensitive comparison without re-casing.- Strings and interpolation