pub fn estimate_line_width(line: &str, tab_width: usize) -> usize
Estimates the display width of a string, accounting for tabs.