MCPcopy Create free account
hub / github.com/davidblewett/rure-python / captures_read_at

Method captures_read_at

regex/src/re_bytes.rs:628–638  ·  view source on GitHub ↗

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,
    )

Source from the content-addressed store, hash-verified

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 ///

Callers 4

nextMethod · 0.45
capturesMethod · 0.45
captures_readMethod · 0.45
read_captures_atMethod · 0.45

Calls 2

mapMethod · 0.80
searcherMethod · 0.80

Tested by

no test coverage detected