upper

upper <string>

Return an ASCII upper-cased copy of a string.

Arguments

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