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

Method find_at

regex/src/re_bytes.rs:595–602  ·  view source on GitHub ↗

Returns the same as find, but starts the search at the given offset. 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,
        text: &'t [u8],
        start: usize,
    )

Source from the content-addressed store, hash-verified

593 /// context into consideration. For example, the `\A` anchor can only
594 /// match when `start == 0`.
595 pub fn find_at<'t>(
596 &self,
597 text: &'t [u8],
598 start: usize,
599 ) -> Option<Match<'t>> {
600 self.0.searcher().find_at(text, start)
601 .map(|(s, e)| Match::new(text, s, e))
602 }
603
604 /// This is like `captures`, but uses
605 /// [`CaptureLocations`](struct.CaptureLocations.html)

Callers 2

nextMethod · 0.45
findMethod · 0.45

Calls 2

mapMethod · 0.80
searcherMethod · 0.80

Tested by

no test coverage detected