[][src]Function utf8_width::get_width_assume_valid

pub unsafe fn get_width_assume_valid(byte: u8) -> usize

Assume the input first byte is from a valid UTF-8 character. Given a first byte, determines how many bytes are in this UTF-8 character. It returns 1 ~ 4,