pub fn char_width(ch: char) -> usizeExpand description
Calculate visual width of a character (based on UAX #11)
Return value:
- 1: Narrow character (ASCII, etc.)
- 2: Wide character (CJK, fullwidth, etc.)
- 0: Zero-width character (combining characters, etc.)