U:RDoc::AnyMethod[iI"byteslice:ETI"String#byteslice;TF: publico:RDoc::Markup::Document: @parts[o:RDoc::Markup::Paragraph; [I"IByte Reference---If passed a single Integer, returns a ;TI"Psubstring of one byte at that position. If passed two Integer ;TI"Qobjects, returns a substring starting at the offset given by the first, and ;TI"Ya length given by the second. If given a Range, 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 str. Returns ;TI"Qnil 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::BlankLineo: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(integer) -> new_str or nil str.byteslice(integer, integer) -> new_str or nil str.byteslice(range) -> new_str or nil ;T0[I" (*args);T@FI" String;TcRDoc::NormalClassI" scanf;T0