tc
ErrorsCollection

tc

Synthesised documentation from type/Allomorph type/Cool type/Str

From type/Allomorph

See Original text in context

method tc(Allomorph:D:)

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

From type/Cool

See Original text in context

sub tc(Str(Cool))
method tc()

Coerces the invocant (or in sub form, its argument) to Str, and returns it with the first letter case-folded to title case (or where not available, upper case).

say "abC".tc;       # OUTPUT: «AbC␤»

From type/Str

See Original text in context

multi sub    tc(Str:D  --> Str:D)
multi method tc(Str:D: --> Str:D)

Does a Unicode "titlecase" operation, that is changes the first character in the string to title case, or to upper case if the character has no title case mapping