Author: lwall Date: 2009-06-16 22:32:37 +0200 (Tue, 16 Jun 2009) New Revision: 27097
Modified: docs/Perl6/Spec/S32-setting-library/Str.pod Log: [S32/Str] some fossils Modified: docs/Perl6/Spec/S32-setting-library/Str.pod =================================================================== --- docs/Perl6/Spec/S32-setting-library/Str.pod 2009-06-16 20:25:26 UTC (rev 27096) +++ docs/Perl6/Spec/S32-setting-library/Str.pod 2009-06-16 20:32:37 UTC (rev 27097) @@ -229,16 +229,16 @@ Returns the number of bytes in the string if it were encoded in the specified way. Note the inequality: - .bytes("C","UTF-16") * 2 >= .codes("C") + .bytes("UTF-16","C") * 2 >= .codes("C") This is caused by the possibility of surrogate pairs, which are counted as one codepoint. However, this problem does not arise for UTF-32: - .bytes("C","UTF-32") * 4 == .codes("C") + .bytes("UTF-32","C") * 4 == .codes("C") =item encode - our Buf multi method encode($encoding = 'UTF-8', $nf = $?NF) + our Buf multi method encode($encoding = $?ENC, $nf = $?NF) Returns a C<Buf> which represents the original string in the given encoding and normal form.