Returns the same as `captures_read`, but starts the search at the given offset and populates the capture locations given. The significance of the starting point is that it takes the surrounding context into consideration. For example, the `\A` anchor can only match when `start == 0`.
(
&self,
locs: &mut CaptureLocations,
text: &'t [u8],
start: usize,
)
| 626 | /// context into consideration. For example, the `\A` anchor can only |
| 627 | /// match when `start == 0`. |
| 628 | pub fn captures_read_at<'t>( |
| 629 | &self, |
| 630 | locs: &mut CaptureLocations, |
| 631 | text: &'t [u8], |
| 632 | start: usize, |
| 633 | ) -> Option<Match<'t>> { |
| 634 | self.0 |
| 635 | .searcher() |
| 636 | .captures_read_at(&mut locs.0, text, start) |
| 637 | .map(|(s, e)| Match::new(text, s, e)) |
| 638 | } |
| 639 | |
| 640 | /// An undocumented alias for `captures_read_at`. |
| 641 | /// |
no test coverage detected