= private = protected
string=(p1)
Changes the string being scanned to str and resets the scanner. Returns str.
static VALUE strscan_set_string(VALUE self, VALUE str) { struct strscanner *p = check_strscan(self); StringValue(str); p->str = str; p->curr = 0; CLEAR_MATCH_STATUS(p); return str; }