Calculates the shift when a mismatch occurs in the Boyer-Moore algorithm. The bad character rule is used to determine how far to shift the pattern. # Arguments `mis_idx` - The mismatch index in the pattern. `shift` - The current shift of the pattern on the text. `text` - The text as a slice of characters. `bad_char_table` - The bad character table built for the pattern. # Returns The number of p
(
mis_idx: isize,
shift: isize,
text: &[char],
bad_char_table: &HashMap<char, isize>,
)
source not stored for this graph (policy: none)
no test coverage detected