Function utf8_width::get_width_assume_valid
source · [−]Expand description
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,