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

Method is_match_at

regex/src/re_unicode.rs:641–643  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

639 /// context into consideration. For example, the `\A` anchor can only
640 /// match when `start == 0`.
641 pub fn is_match_at(&self, text: &str, start: usize) -> bool {
642 self.shortest_match_at(text, start).is_some()
643 }
644
645 /// Returns the same as find, but starts the search at the given
646 /// offset.

Callers 1

is_matchMethod · 0.45

Calls 1

shortest_match_atMethod · 0.45

Tested by

no test coverage detected