Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document unimatch. Also add uniprops to the words file
  • Loading branch information
samcv committed Dec 12, 2016
1 parent 5bffa57 commit a4292f5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions doc/Type/Cool.pod6
Expand Up @@ -928,6 +928,20 @@ codepoints in that character.
say "Ḍ̇'oh".comb>>.uninames.perl;
# (("LATIN CAPITAL LETTER D WITH DOT BELOW", "COMBINING DOT ABOVE").Seq, ("APOSTROPHE",).Seq, ("LATIN SMALL LETTER O",).Seq, ("LATIN SMALL LETTER H",).Seq)
=head2 method unimatch
Defined as:
sub unimatch(Str:D $str, |c)
unimatch(Int:D $code, Stringy:D $pvalname, Stringy:D $propname = $pvalname)
Checks if the given integer codepoint or the first letter of the string given have 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' # True
say unimatch 'A', 'Latin', 'Script' # True
say unimatch 'A', 'Ll' #True
=head2 routine chop
Defined as:
Expand Down
1 change: 1 addition & 0 deletions xt/words.pws
Expand Up @@ -1085,6 +1085,7 @@ unimportable
uniname
uninames
uniprop
uniprops
unival
univals
unlesselse
Expand Down

0 comments on commit a4292f5

Please sign in to comment.