Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove .graphs fossils
  • Loading branch information
lizmat committed Jun 9, 2015
1 parent b4b49fc commit ef4b8b7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion S02-bits.pod
Expand Up @@ -625,7 +625,7 @@ performance issues they have in Perl 5.

To get the number of elements in an array, use the C<.elems> method. You
can also ask for the total string length of an array's elements, in
codepoints or graphemes, using these methods, C<.codes> or C<.graphs>
codepoints or graphemes, using these methods, C<.codes> or C<.chars>
respectively on the array. The same methods apply to strings as well.
(Note that C<.codes> is not well-defined unless you know which
canonicalization is in effect. Hence, it allows an optional argument to
Expand Down
3 changes: 1 addition & 2 deletions S15-unicode.pod
Expand Up @@ -52,7 +52,7 @@ string.
Perl 6 by default operates on graphemes, so counting by graphemes involves:
"string".chars or "string".graphs
"string".chars
To count by codepoints, conversion of a string to one of NFC, NFD, NFKC, or NFKD
is needed:
Expand Down Expand Up @@ -162,7 +162,6 @@ to-Standard list of numbers.
=head2 Length Methods
Str.chars
Str.graphs
These methods are equivalent, and count the number of graphemes in your string.
Expand Down
6 changes: 0 additions & 6 deletions S32-setting-library/Str.pod
Expand Up @@ -161,12 +161,6 @@ This word is banned in Perl 6. You must specify units.
Returns the number of characters in the string in the current
(lexically scoped) idea of what a normal character is, usually graphemes.

=item graphs

multi method graphs ( Str $string: --> Int ) is export

Returns the number of graphemes in the string in a language-independent way.

=item codes

multi method codes ( Str $string: $nf = $?NF --> Int ) is export
Expand Down
3 changes: 1 addition & 2 deletions S99-glossary.pod
Expand Up @@ -351,8 +351,7 @@ Perl 6 has a codepoint per character. That leads to O(1) performance
for many string operations. Depending on the level of abstraction, the
length of a given string differs. The abstractions are bytes, codepoints and
graphemes and the relevant methods are respectively L<.bytes>, L<.codes>,
L<.graphs>. L<.chars> returns the length for the default level of astraction
of a given string type.
L<.chars>.

=head2 channel

Expand Down

0 comments on commit ef4b8b7

Please sign in to comment.