scan_full(p1, p2, p3)
public
Tests whether the given pattern is matched from the current scan pointer. Returns the matched string if return_string_p is
true. Advances the scan pointer if
advance_pointer_p is true. The match register is affected.
“full” means “#scan with full
parameters”.
Show source
/*
* call-seq: scan_full(pattern, return_string_p, advance_pointer_p)
*
* Tests whether the given +pattern+ is matched from the current scan pointer.
* Returns the matched string if +return_string_p+ is true.
* Advances the scan pointer if +advance_pointer_p+ is true.
* The match register is affected.
*
* "full" means "#scan with full parameters".
*/
static VALUE
strscan_scan_full(VALUE self, VALUE re, VALUE s, VALUE f)
{
return strscan_do_scan(self, re, RTEST(s), RTEST(f), 1);
}