Method: StringScanner#search_full
- Defined in:
- strscan.c
#search_full(pattern, advance_pointer_p, return_string_p) ⇒ Object
Scans the string until the pattern is matched. Advances the scan pointer if advance_pointer_p, otherwise not. Returns the matched string if return_string_p is true, otherwise returns the number of bytes advanced. This method does affect the match register.
824 825 826 827 828 |
# File 'strscan.c', line 824
static VALUE
strscan_search_full(VALUE self, VALUE re, VALUE s, VALUE f)
{
return strscan_do_scan(self, re, RTEST(s), RTEST(f), 0);
}
|