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

Method find_at

regex/src/re_unicode.rs:651–659  ·  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 str,
        start: usize,
    )

Source from the content-addressed store, hash-verified

649 /// context into consideration. For example, the `\A` anchor can only
650 /// match when `start == 0`.
651 pub fn find_at<'t>(
652 &self,
653 text: &'t str,
654 start: usize,
655 ) -> Option<Match<'t>> {
656 self.0.searcher_str().find_at(text, start).map(|(s, e)| {
657 Match::new(text, s, e)
658 })
659 }
660
661 /// This is like `captures`, but uses
662 /// [`CaptureLocations`](struct.CaptureLocations.html)

Callers 1

findMethod · 0.45

Calls 2

mapMethod · 0.80
searcher_strMethod · 0.80

Tested by

no test coverage detected