D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
MatchData
/
Filename :
byteoffset-i.ri
back
Copy
U:RDoc::AnyMethod[iI"byteoffset:ETI"MatchData#byteoffset;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"[Returns a two-element array containing the beginning and ending byte-based 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.byteoffset(0) #=> [1, 7] ;TI"%m.byteoffset(4) #=> [6, 7] ;TI" ;TI"/m = /(?<foo>.)(.)(?<bar>.)/.match("hoge") ;TI"%p m.byteoffset(:foo) #=> [0, 1] ;TI"$p m.byteoffset(:bar) #=> [2, 3];T:@format0: @fileI" re.c;T:0@omit_headings_from_table_of_contents_below0I"#mtch.byteoffset(n) -> array ;T0[ I" (p1);T@FI"MatchData;TcRDoc::NormalClass00