In Cool§

See primary documentation in context for routine uc

sub uc(Str(Cool))
method uc()

Coerces the invocant (or in sub form, its argument) to Str, and returns it case-folded to uppercase (capital letters).

say "Abc".uc;       # OUTPUT: «ABC␤»

In Str§

See primary documentation in context for routine uc

multi        uc(Str:D  --> Str:D)
multi method uc(Str:D: --> Str:D)

Returns an uppercase version of the string.

In Allomorph§

See primary documentation in context for method uc

method uc(Allomorph:D:)

Calls Str.uc on the invocant's Str value.