lower
lower <string>
Return an ASCII lower-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 lower-cased copy. The source is not modified.
Examples
after command (say) {
do "say [lower "ABC"]"
}
The mob says abc.
after command (say) {
do "say [lower $arg]"
}
This echoes the whole command line in lower case — for say HELLO There
the mob says hello there. See handlers for the $arg
binding.
See also
upper— the upper-case counterpart.substr— copy part of a string.streqi— case-insensitive comparison without re-casing.- Strings and interpolation