Function core::str::utf8_char_width

source ·
pub const fn utf8_char_width(b: u8) -> usize
🔬This is a nightly-only experimental API. (str_internals)
Expand description

给定第一个字节,确定此 UTF-8 字符中有多少个字节。