unimatch
ErrorsCollection

unimatch

Synthesised documentation from type/Cool

From type/Cool

See Original text in context

multi sub unimatch(Str:D $str|c)
multi sub unimatch(Int:D $codeStringy:D $pvalnameStringy:D $propname = $pvalname)

Checks if the given integer codepoint or the first letter of the given string has a unicode property equal to the value you give. If you supply the Unicode property to be checked it will only return True if that property matches the given value.

say unimatch 'A''Latin';           # OUTPUT: «True␤» 
say unimatch 'A''Latin''Script'# OUTPUT: «True␤» 
say unimatch 'A''Ll';              # OUTPUT: «False␤»

The last property corresponds to "lowercase letter", which explains why it returns false.