Lines Matching refs:current
40 /// 2) For the current position in the haystack, look if needle[critical..]
54 /// When used as a prefilter, if the last byte at the current candidate
505 // The current offset of our suffixes that we're comparing.
510 // character than our current maximal (or minimal) suffix, then the
511 // current suffix is changed over to the candidate and we restart our
520 let current = needle[suffix.pos + offset];
522 match kind.cmp(current, candidate) {
558 let current = needle[suffix.pos - offset - 1];
560 match kind.cmp(current, candidate) {
608 /// suffix is better than the current maximal (or minimal) suffix. That is,
609 /// the current candidate suffix should supplant the current maximal (or
613 /// from being better than the current maximal (or minimal) suffix. That
614 /// is, the current candidate suffix should be dropped and the next one
625 /// it should replace the current suffix as the maximal (or minimal)
627 fn cmp(self, current: u8, candidate: u8) -> SuffixOrdering {
631 SuffixKind::Minimal if candidate < current => Accept,
632 SuffixKind::Minimal if candidate > current => Skip,
634 SuffixKind::Maximal if candidate > current => Accept,
635 SuffixKind::Maximal if candidate < current => Skip,