Contents

Roo

Text.swapcase

Returns a new Text object where the case of each character is swapped. The original text is unaltered.

"Dr Garry Pettet".swapcase # => "dR gARRY pETTET"