Method: MatchData#byteend
- Defined in:
- re.c
#byteend(n) ⇒ Integer #byteend(name) ⇒ Integer
:include: doc/matchdata/byteend.rdoc
1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 |
# File 're.c', line 1332
static VALUE
match_byteend(VALUE match, VALUE n)
{
int i = match_backref_number(match, n);
struct re_registers *regs = RMATCH_REGS(match);
match_check(match);
backref_number_check(regs, i);
if (BEG(i) < 0)
return Qnil;
return LONG2NUM(END(i));
}
|