D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
String
/
Filename :
bytesplice-i.ri
back
Copy
U:RDoc::AnyMethod[iI"bytesplice:ETI"String#bytesplice;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I"SReplaces some or all of the content of +self+ with +str+, and returns +self+. ;TI"<The portion of the string affected is determined using ;TI"Tthe same criteria as String#byteslice, except that +length+ cannot be omitted. ;TI"SIf the replacement string is not the same length as the text it is replacing, ;TI"-the string will be adjusted accordingly.;To:RDoc::Markup::BlankLine o; ; [I"�If +str_index+ and +str_length+, or +str_range+ are given, the content of +self+ is replaced by str.byteslice(str_index, str_length) or str.byteslice(str_range); however the substring of +str+ is not allocated as a new string.;T@o; ; [ I"PThe form that take an Integer will raise an IndexError if the value is out ;TI"7of range; the Range form will raise a RangeError. ;TI"NIf the beginning or ending offset does not land on character (codepoint) ;TI",boundary, an IndexError will be raised.;T: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"�bytesplice(index, length, str) -> string bytesplice(index, length, str, str_index, str_length) -> string bytesplice(range, str) -> string bytesplice(range, str, str_range) -> string ;T0[ I"(*args);T@FI"String;TcRDoc::NormalClass00