Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
proc
/
thread-self
/
root
/
proc
/
self
/
root
/
opt
/
ruby-2.6
/
usr
/
share
/
ri
/
2.6.0
/
system
/
String
/
//proc/thread-self/root/proc/self/root/opt/ruby-2.6/usr/share/ri/2.6.0/system/String/insert-i.ri
U:RDoc::AnyMethod[iI"insert:ETI"String#insert;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"@Inserts <i>other_str</i> before the character at the given ;TI"I<i>index</i>, modifying <i>str</i>. Negative indices count from the ;TI"Gend of the string, and insert <em>after</em> the given character. ;TI"HThe intent is insert <i>aString</i> so that it starts at the given ;TI"<i>index</i>.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"*"abcd".insert(0, 'X') #=> "Xabcd" ;TI"*"abcd".insert(3, 'X') #=> "abcXd" ;TI"*"abcd".insert(4, 'X') #=> "abcdX" ;TI"*"abcd".insert(-3, 'X') #=> "abXcd" ;TI")"abcd".insert(-1, 'X') #=> "abcdX";T:@format0: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I"+str.insert(index, other_str) -> str ;T0[ I" (p1, p2);T@FI"String;TcRDoc::NormalClassI" scanf;T0