Skip to content

Commit

Permalink
Merge pull request #11 from icwiener/master
Browse files Browse the repository at this point in the history
Just some minor stuff I saw while reading.
  • Loading branch information
moritz committed Apr 25, 2012
2 parents d3ec849 + 17a1305 commit a835127
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S32-setting-library/Str.pod
Expand Up @@ -206,15 +206,15 @@ Returns the number of graphemes in the string in a language-independent way.

multi method codes ( Str $string: $nf = $?NF --> Int ) is export

Returns the number of codepoints in the string if it were canonicalized the
Returns the number of codepoints in the string as if it were canonicalized the
specified way. Do not confuse codepoints with UTF-16 encoding. Characters
above U+FFFF count as a single codepoint.

=item bytes

multi method bytes ( Str $string: $enc = $?ENC, :$nf = $?NF --> Int ) is export

Returns the number of bytes in the string if it were encoded in the
Returns the number of bytes in the string as if it were encoded in the
specified way. Note the inequality:

.bytes("UTF-16","C") >= .codes("C") * 2
Expand All @@ -230,7 +230,7 @@ codepoint. However, this problem does not arise for UTF-32:

Returns a C<Buf> which represents the original string in the given encoding
and normal form. The actual return type is as specific as possible, so
C<$str.encode('UTF-8')> returns an C<utf8> object,
C<$str.encode('UTF-8')> returns a C<utf8> object,
C<$str.encode('ISO-8859-1')> a C<buf8>.

=item index
Expand Down

0 comments on commit a835127

Please sign in to comment.