routine uniname
Documentation for routine uniname
assembled from the following types:
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)[*-1].chr.uniname; # OUTPUT: ««ARABIC LIGATURE UIGHUR KIRGHIZ YEH WITH HAMZA ABOVE WITH ALEF MAKSURA INITIAL FORM»»