Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[Str] follow spec titlecase refactor
  • Loading branch information
moritz committed Jul 25, 2012
1 parent 70eb964 commit 514fae0
Showing 1 changed file with 34 additions and 3 deletions.
37 changes: 34 additions & 3 deletions lib/Str.pod
Expand Up @@ -47,10 +47,41 @@ be useful for any purpose other than comparison.)
(Not implemented in Rakudo and Niecza)
=head2 titlecase
=head2 tc
multi sub titlecase(Str:D :&filter = &lc, :%exceptions = set()) returns Str
multi method titlecase(Str:D: :&filter = &lc, :%exceptions = set()) returns Str
multi sub tc(Str:D ) returns Str:D
multi method tc(Str:D:) returns Str:D
Does a Unicode "titlecase" operation, that is changes the first character in
the string to title case, or to upper case if the character has no title case
mapping
(Not implemented in Rakudo and Niecza)
=head2 tclc
multi sub tclc(Str:D ) returns Str:D
multi method tclc(Str:D:) returns Str:D
Turns the first character to title case, and all other characters to lower
case
(not implemented in Niecza)
=head2 tcuc
multi sub tcuc(Str:D ) returns Str:D
multi method tcuc(Str:D:) returns Str:D
Turns the first character to title case, and all other characters to upper
case
(Not implemented in Rakudo and Niecza)
=head2 wordcase
multi sub wordcase(Str:D :&filter = &lc, :%exceptions = set()) returns Str
multi method wordcase(Str:D: :&filter = &lc, :%exceptions = set()) returns Str
Performs a Unicode titlecase operation on the first character of
each word of the string (as defined by a regex C<«> boundary),
Expand Down

0 comments on commit 514fae0

Please sign in to comment.