Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
String
/
//opt/alt/ruby21/share/ri/2.1.0/system/String/byteslice-i.ri
U:RDoc::AnyMethod[iI"byteslice:ETI"String#byteslice;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HByte Reference---If passed a single <code>Fixnum</code>, returns a ;TI"Osubstring of one byte at that position. If passed two <code>Fixnum</code> ;TI"Qobjects, returns a substring starting at the offset given by the first, and ;TI"Ya length given by the second. If given a <code>Range</code>, a substring containing ;TI"Mbytes at offsets given by the range is returned. In all three cases, if ;TI"Nan offset is negative, it is counted from the end of <i>str</i>. Returns ;TI"Q<code>nil</code> if the initial offset falls outside the string, the length ;TI"Iis negative, or the beginning of the range is greater than the end. ;TI"AThe encoding of the resulted string keeps original encoding.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"&"hello".byteslice(1) #=> "e" ;TI"&"hello".byteslice(-1) #=> "o" ;TI"'"hello".byteslice(1, 2) #=> "el" ;TI"/"\x80\u3042".byteslice(1, 3) #=> "\u3042" ;TI"2"\x03\u3042\xff".byteslice(1..3) #=> "\u3042";T:@format0: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"�str.byteslice(fixnum) -> new_str or nil str.byteslice(fixnum, fixnum) -> new_str or nil str.byteslice(range) -> new_str or nil ;T0[ I"(*args);T@FI"String;TcRDoc::NormalClassI" scanf;T0