%PDF- %PDF-
Direktori : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/MatchData/ |
Current File : //proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/MatchData/offset-i.ri |
U:RDoc::AnyMethod[iI"offset:ETI"MatchData#offset;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"PReturns a two-element array containing the beginning and ending offsets of ;TI"the <em>n</em>th match. ;TI"G<em>n</em> can be a string or symbol to reference a named capture.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"-m = /(.)(.)(\d+)(\d)/.match("THX1138.") ;TI"!m.offset(0) #=> [1, 7] ;TI"!m.offset(4) #=> [6, 7] ;TI" ;TI"/m = /(?<foo>.)(.)(?<bar>.)/.match("hoge") ;TI"!p m.offset(:foo) #=> [0, 1] ;TI" p m.offset(:bar) #=> [2, 3];T:@format0: @fileI" re.c;T:0@omit_headings_from_table_of_contents_below0I"mtch.offset(n) -> array ;T0[ I" (p1);T@FI"MatchData;TcRDoc::NormalClass00