staticVALUEmatch_begin(VALUEmatch,VALUEn){inti=match_backref_number(match,n);structre_registers*regs=RMATCH_REGS(match);match_check(match);if(i<0||regs->num_regs<=i)rb_raise(rb_eIndexError,"index %d out of matches",i);if(BEG(i)<0)returnQnil;update_char_offset(match);returnINT2FIX(RMATCH(match)->rmatch->char_offset[i].beg);}