Author: moritz
Date: 2009-06-16 22:13:57 +0200 (Tue, 16 Jun 2009)
New Revision: 27095

Modified:
   docs/Perl6/Spec/S32-setting-library/Str.pod
Log:
[S32/Str] document Str.encode

also changed order of arguments in .bytes

Modified: docs/Perl6/Spec/S32-setting-library/Str.pod
===================================================================
--- docs/Perl6/Spec/S32-setting-library/Str.pod 2009-06-16 19:52:50 UTC (rev 
27094)
+++ docs/Perl6/Spec/S32-setting-library/Str.pod 2009-06-16 20:13:57 UTC (rev 
27095)
@@ -224,7 +224,7 @@
 
 =item bytes
 
- our Int multi method bytes ( Str $string: $nf = $?NF, $enc = $?ENC) is export
+ our Int multi method bytes ( Str $string: $enc = $?ENC, :$nf = $?NF) is export
 
 Returns the number of bytes in the string if it were encoded in the
 specified way.  Note the inequality:
@@ -236,6 +236,13 @@
 
     .bytes("C","UTF-32") * 4 == .codes("C")
 
+=item encode
+
+    our Buf multi method encode($encoding = 'UTF-8', $nf = $?NF)
+
+Returns a C<Buf> which represents the original string in the given encoding
+and normal form.
+
 =item index
 
  our StrPos multi method index( Str $string: Str $substring, StrPos $pos = 
StrPos(0) ) is export

Reply via email to