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

Method captures_read_at

regex/src/re_unicode.rs:685–695  ·  view source on GitHub ↗

Returns the same as captures, 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 str,
        start: usize,
    )

Source from the content-addressed store, hash-verified

683 /// context into consideration. For example, the `\A` anchor can only
684 /// match when `start == 0`.
685 pub fn captures_read_at<'t>(
686 &self,
687 locs: &mut CaptureLocations,
688 text: &'t str,
689 start: usize,
690 ) -> Option<Match<'t>> {
691 self.0
692 .searcher_str()
693 .captures_read_at(&mut locs.0, text, start)
694 .map(|(s, e)| Match::new(text, s, e))
695 }
696
697 /// An undocumented alias for `captures_read_at`.
698 ///

Callers 3

capturesMethod · 0.45
captures_readMethod · 0.45
read_captures_atMethod · 0.45

Calls 2

mapMethod · 0.80
searcher_strMethod · 0.80

Tested by

no test coverage detected