Documentation for routine
uniparse assembled from the following types:
sub uniparse(Str --> Str)method uniparse(Str : --> Str)
Takes string with comma-separated Unicode names of characters and returns a string composed of those characters. Will
fail if any of the characters' names are empty or not recognized. Whitespace around character names is ignored.
say "I Perl"; # OUTPUT: «I 💕 Perl␤»'TWO HEARTS, BUTTERFLY'.uniparse.say; # OUTPUT: «💕🦋␤»
Note that unlike
\c[...] construct available in string interpolation,
uniparse does not accept decimal numerical values. Use chr routine to convert those:
say "\c"; # OUTPUT: «Թ␤»say '1337'.chr; # OUTPUT: «Թ␤»
Note: before being standardized in 2017.12, this routine was known under its working name of parse-names. This denomination will be removed in the 6.e version.