Skip to main content

inspect

Function inspect 

Source
pub fn inspect(data: &mut [u8], phrases: &[Phrase]) -> Vec<i64>
Expand description

Scans data left to right; at each position the first phrase that applies and matches takes the characters it matches. Returns how many times each phrase matched, replacing as it goes when phrases carry a BY value.