Function std_unicode::str::utf8_char_width [] [src]

pub fn utf8_char_width(b: u8) -> usize
🔬 This is a nightly-only experimental API.   (unicode #27783)

Given a first byte, determine how many bytes are in this UTF-8 character