Revision 27095
- Date:
- 2009/06/16 20:13:57
- Files:
Legend:
- Added
- Removed
- Modified
-
docs/Perl6/Spec/S32-setting-library/Str.pod
224 224 225 225 =item bytes 226 226 227 our Int multi method bytes ( Str $string: $nf = $?NF, $enc = $?ENC) is export 227 our Int multi method bytes ( Str $string: $enc = $?ENC, :$nf = $?NF) is export 228 228 229 229 Returns the number of bytes in the string if it were encoded in the 230 230 specified way. Note the inequality: … … 236 236 237 237 .bytes("C","UTF-32") * 4 == .codes("C") 238 238 239 =item encode 240 241 our Buf multi method encode($encoding = 'UTF-8', $nf = $?NF) 242 243 Returns a C<Buf> which represents the original string in the given encoding 244 and normal form. 245 239 246 =item index 240 247 241 248 our StrPos multi method index( Str $string: Str $substring, StrPos $pos = StrPos(0) ) is export