Documentation for routine uniname
assembled from the following pages:
Class: Cool §
From Cool
(Cool) routine uniname §
Defined as:
sub uniname(Str(Cool) --> Str)method uniname(--> Str)
Interprets the invocant or first argument as a Str, and returns the Unicode codepoint name of the first codepoint of the first character. See uninames for a routine that works with multiple codepoints, and uniparse for the opposite direction.
# Camelia in Unicode say ‘»ö«’.uniname;# OUTPUT: «RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK» say "Ḍ̇".uniname; # Note, doesn't show "COMBINING DOT ABOVE" # OUTPUT: «LATIN CAPITAL LETTER D WITH DOT BELOW» # Find the char with the longest Unicode name. say (0..0x1FFFF).sort(*.uniname.chars)[].chr.uniname;# OUTPUT: «BOX DRAWINGS LIGHT DIAGONAL UPPER CENTRE TO MIDDLE RIGHT AND MIDDLE LEFT TO LOWER CENTRE»