Skip to content

Commit e527812

Browse files
committed
Checks that samecase is actually included, deletes from TODO. refs #2277
1 parent cf116bb commit e527812

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

doc/Type/Cool.pod6

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class Cool is Any { }
88
99
C<Cool>, also known as the B<C>onvenient B<OO> B<L>oop, is a base class
10-
employed by a number of built-in classes that can be meaningfully
10+
employed by a number of built-in classes whose instances can be meaningfully
1111
coerced to a string and a number. For example, an L<Array> can be used
1212
in mathematical operations, where its numerical representation is the
1313
number of elements it contains. At the same time, it can be concatenated
@@ -917,13 +917,18 @@ Defined as:
917917
sub samecase(Cool $string, Cool $pattern)
918918
method samecase(Cool:D: Cool $pattern)
919919
920-
Coerces the invocant (or in sub form, the first argument) to L<Str|/type/Str>, and returns a
921-
copy of C<$string> with case information for each individual character changed according to C<$pattern>.
922-
(The pattern string can contain three types of characters, i.e. uppercase, lowercase and caseless.
923-
For a given character in C<$pattern> its case information determines the case of the corresponding
924-
character in the result.)
925-
If C<$string> is longer than C<$pattern>, the case information from the last character of
926-
C<$pattern> is applied to the remaining characters of C<$string>.
920+
Coerces the invocant (or in sub form, the first argument) to L<Str|/type/Str>,
921+
and returns a copy of C<$string> with case information for each individual
922+
character changed according to C<$pattern>.
923+
924+
B<Note>: The pattern string can contain
925+
three types of characters, i.e. uppercase, lowercase and caseless. For a given
926+
character in C<$pattern> its case information determines the case of the
927+
corresponding character in the result.
928+
929+
If C<$string> is longer than
930+
C<$pattern>, the case information from the last character of C<$pattern> is
931+
applied to the remaining characters of C<$string>.
927932
928933
say "perL 6".samecase("A__a__"); # OUTPUT: «Perl 6␤»
929934
say "pERL 6".samecase("Ab"); # OUTPUT: «Perl 6␤»
@@ -1475,12 +1480,13 @@ the case it's being used as a C<sub>
14751480
say 1.unpolar(⅓*pi);
14761481
# OUTPUT: «0.5000000000000001+0.8660254037844386i␤»
14771482
1483+
14781484
=begin comment
14791485
14801486
14811487
14821488
TODO:
1483-
sprintf, printf, samecase
1489+
sprintf, printf
14841490
14851491
=end comment
14861492

0 commit comments

Comments
 (0)