Crate utf8_width
source ·Expand description
Constants§
Functions§
- Given a first byte, determines how many bytes are in this UTF-8 character. If the UTF-8 character is invalid, returns
0
, otherwise returns1
~4
, - 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
,