Returns the same as shortest_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,
)
| 625 | /// context into consideration. For example, the `\A` anchor can only |
| 626 | /// match when `start == 0`. |
| 627 | pub fn shortest_match_at( |
| 628 | &self, |
| 629 | text: &str, |
| 630 | start: usize, |
| 631 | ) -> Option<usize> { |
| 632 | self.0.searcher_str().shortest_match_at(text, start) |
| 633 | } |
| 634 | |
| 635 | /// Returns the same as is_match, but starts the search at the given |
| 636 | /// offset. |
no test coverage detected