Logo

Programming-Idioms

  • Smalltalk
  • C#
  • Perl

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 = uc $s;
var t = s.ToUpper();
import "strings"
t := strings.ToUpper(s)

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