Function core::str::utf8_char_width [−][src]
pub const fn utf8_char_width(b: u8) -> usize
🔬 This is a nightly-only experimental API. (
str_internals
)Expand description
给定第一个字节,确定此 UTF-8 字符中有多少个字节。
pub const fn utf8_char_width(b: u8) -> usize
str_internals
)给定第一个字节,确定此 UTF-8 字符中有多少个字节。