📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 07:04:45
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ri
/
system
/
String
📍 /opt/alt/ruby33/share/ri/system/String
🔄 Refresh
✏️
Editing: bytesplice-i.ri
Read Only
U:RDoc::AnyMethod[iI"bytesplice:ETI"String#bytesplice;TF:privateo: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
💾 Save Changes
❌ Cancel