File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1070,14 +1070,17 @@ Defined as:
1070
1070
multi sub unimatch(Str:D $str, |c)
1071
1071
multi unimatch(Int:D $code, Stringy:D $pvalname, Stringy:D $propname = $pvalname)
1072
1072
1073
- Checks if the given integer codepoint or the first letter of the string given
1074
- have a unicode property equal to the value you give. If you supply the Unicode
1073
+ Checks if the given integer codepoint or the first letter of the given string
1074
+ has a unicode property equal to the value you give. If you supply the Unicode
1075
1075
property to be checked it will only return True if that property matches the
1076
1076
given value.
1077
1077
1078
1078
say unimatch 'A', 'Latin'; # OUTPUT: «True»
1079
1079
say unimatch 'A', 'Latin', 'Script'; # OUTPUT: «True»
1080
- say unimatch 'A', 'Ll'; # OUTPUT: «True»
1080
+ say unimatch 'A', 'Ll'; # OUTPUT: «False»
1081
+
1082
+ The last property corresponds to "lowercase letter", which explains why it
1083
+ returns false.
1081
1084
1082
1085
= head2 routine chop
1083
1086
You can’t perform that action at this time.
0 commit comments