/* * Reset the scan pointer (index 0) and clear matching data. */ static VALUE strscan_reset(self) VALUE self; { struct strscanner *p; GET_SCANNER(self, p); p->curr = 0; CLEAR_MATCH_STATUS(p); return self; }