Lines Matching defs:reverse
9 /// Two-Way search in the reverse direction.
16 /// This searcher supports forward and reverse search, although not
47 /// forward or reverse APIs.
246 /// reverse through any haystack.
253 let min_suffix = Suffix::reverse(needle, SuffixKind::Minimal);
254 let max_suffix = Suffix::reverse(needle, SuffixKind::Maximal);
262 let shift = Shift::reverse(needle, period_lower_bound, critical_pos);
282 // For the reverse case, we don't use a prefilter. It's plausible that
453 /// Compute the shift for a given needle in the reverse direction.
459 fn reverse(
483 /// is a reverse suffix, then `&bytes[..pos]` can be used. That is, for
485 /// reverse suffixes, this is an exclusive ending position.
546 fn reverse(needle: &[u8], kind: SuffixKind) -> Suffix {
685 /// Convenience wrapper for computing the reverse suffix as a byte string.
687 let s = Suffix::reverse(needle, kind);
703 /// Return the lexicographically maximal suffix of the reverse of the given
707 reversed.reverse();
709 got.reverse();
868 // the reverse small period handling. The bug was that we were using 'if j