search_full(p1, p2, p3)
public
Scans the string until
the pattern is matched.
Returns the matched string if return_string_p is
true, otherwise returns the number of bytes advanced. Advances the scan pointer if
advance_pointer_p, otherwise not. This method does affect the
match register.
Show source
/*
* call-seq: search_full(pattern, return_string_p, advance_pointer_p)
*
* Scans the string _until_ the +pattern+ is matched.
* Returns the matched string if +return_string_p+ is true, otherwise
* returns the number of bytes advanced.
* Advances the scan pointer if +advance_pointer_p+, otherwise not.
* This method does affect the match register.
*/
static VALUE
strscan_search_full(VALUE self, VALUE re, VALUE s, VALUE f)
{
return strscan_do_scan(self, re, RTEST(s), RTEST(f), 0);
}