U:RDoc::AnyMethod[iI"partition:ETI"String#partition;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"BSearches sep or pattern (regexp) in the string ;TI"=and returns the part before it, the match, and the part ;TI"after it. ;TI"BIf it is not found, returns two empty strings and str.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I":"hello".partition("l") #=> ["he", "l", "lo"]
;TI":"hello".partition("x") #=> ["hello", "", ""]
;TI"9"hello".partition(/.l/) #=> ["h", "el", "lo"];T:@format0:
@fileI"
string.c;T:0@omit_headings_from_table_of_contents_below0I"qstr.partition(sep) -> [head, sep, tail]
str.partition(regexp) -> [head, match, tail]
;T0[ I" (p1);T@FI"String;TcRDoc::NormalClassI"
scanf;T0