Documentation for routine uniprop
assembled from the following pages:
Class: Cool §
From Cool
(Cool) routine uniprop §
Defined as:
multi sub uniprop(Str, |c)multi sub uniprop(Int )multi sub uniprop(Int , Stringy )multi method uniprop(|c)
Returns the unicode property of the first character. If no property is specified returns the General Category. Returns a Bool for Boolean properties. A uniprops routine can be used to get the property for every character in a string.
say 'a'.uniprop; # OUTPUT: «Ll» say '1'.uniprop; # OUTPUT: «Nd» say 'a'.uniprop('Alphabetic'); # OUTPUT: «True» say '1'.uniprop('Alphabetic'); # OUTPUT: «False»