Home
last modified time | relevance | path

Searched refs:rare1 (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/bstr/src/search/
Dprefilter.rs100 rare1: u8, field
143 rare1: 0, in inert()
158 let (mut rare1, mut rare1i) = (needle[0], 0); in forward()
164 if Freqy::rank(rare2) < Freqy::rank(rare1) { in forward()
165 mem::swap(&mut rare1, &mut rare2); in forward()
169 if Freqy::rank(b) < Freqy::rank(rare1) { in forward()
170 rare2 = rare1; in forward()
172 rare1 = b; in forward()
174 } else if b != rare1 && Freqy::rank(b) < Freqy::rank(rare2) { in forward()
179 if Freqy::rank(rare1) > Freqy::MAX_RANK { in forward()
[all …]
/external/rust/crates/regex/src/literal/
Dimp.rs391 rare1: u8, field
415 let mut rare1 = pat[0]; in new() localVariable
418 if freq_rank(b) < freq_rank(rare1) { in new()
419 rare1 = b; in new()
423 if rare1 == rare2 { in new()
425 } else if b != rare1 && freq_rank(b) < freq_rank(rare2) { in new()
431 let rare1i = pat.iter().rposition(|&b| b == rare1).unwrap(); in new()
438 rare1: rare1, in new()
449 rare1: 0, in empty()
464 i += match memchr(self.rare1, &haystack[i..]) { in find()