Lines Matching refs:candidate_start
504 let mut candidate_start = 1;
519 while candidate_start + offset < needle.len() {
521 let candidate = needle[candidate_start + offset];
524 suffix = Suffix { pos: candidate_start, period: 1 };
525 candidate_start += 1;
529 candidate_start += offset + 1;
531 suffix.period = candidate_start - suffix.pos;
535 candidate_start += suffix.period;
554 let mut candidate_start = needle.len() - 1;
557 while offset < candidate_start {
559 let candidate = needle[candidate_start - offset - 1];
562 suffix = Suffix { pos: candidate_start, period: 1 };
563 candidate_start -= 1;
567 candidate_start -= offset + 1;
569 suffix.period = suffix.pos - candidate_start;
573 candidate_start -= suffix.period;