Skip to content

Commit

Permalink
Change routine to method
Browse files Browse the repository at this point in the history
  • Loading branch information
samcv committed Dec 10, 2016
1 parent 7130500 commit 258c4de
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doc/Type/Cool.pod6
Expand Up @@ -858,14 +858,16 @@ C<$pattern> is applied to the remaining characters of C<$string>.
say "perL 6".samecase("A__a__"); # Perl 6
say "pERL 6".samecase("Ab"); # Perl 6
=head2 routine uniprop
=head2 method uniprop
Defined as:
sub uniprop(Str(Cool), |c)
method uniprop(|c)
Interprets the invocant as a L<Str|/type/Str>, and returns the unicode property of the first
character. If no property is specified returns the General Category.
Interprets the invocant as a L<Str|/type/Str>, and returns the
L<unicode property|http://userguide.icu-project.org/strings/properties> of the first
character. If no property is specified returns the
L<General Category|https://en.wikipedia.org/wiki/Unicode_character_property#General_Category>.
say 'a'.uniprop; # Ll
say '1'.uniprop; # Nd
Expand Down

0 comments on commit 258c4de

Please sign in to comment.