Skip to main content

count_lwb

Function count_lwb 

Source
pub fn count_lwb(data: &[u8], utf8: bool) -> (u64, u64, u64)
Expand description

Count lines + words + bytes in a single fused pass (the default wc mode). Avoids separate passes entirely — combines newline counting with word detection.