Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!

Idiom #328 Convert string to upper case

Assign to t the value of the string s, with all letters mapped to their upper case.

t = s.upcase
import "strings"
t := strings.ToUpper(s)
let t = s.toUpperCase();
local t = string.upper(s)
t := UpperCase(s);
$t = uc $s;
t = s.upper()
let t = s.to_uppercase();

New implementation...
< >
programming-idioms.org