Skip to main content

utf8_char_width

Function utf8_char_width 

Source
pub const fn utf8_char_width(b: u8) -> usize
🔬This is a nightly-only experimental API. (str_internals)
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Expand description

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