(ch: char)
| 30 | } |
| 31 | |
| 32 | pub(crate) fn char_display_width(ch: char) -> usize { |
| 33 | UnicodeWidthChar::width(ch).unwrap_or(0) |
| 34 | } |
| 35 | |
| 36 | pub(crate) fn visible_width_max_line(value: &str) -> usize { |
| 37 | value.lines().map(visible_width).max().unwrap_or_default() |
no outgoing calls
no test coverage detected