Luna::utf8_charspan
constexpr usize utf8_charspan(c32 ch)
Gets the number of UTF-8 characters needed to store the Unicode char in UTF-8 encoding.
Parameters
-
in ch
The Unicode codepoint of the character.
Return value
Returns the number of UTF-8 characters needed to store the Unicode char in UTF-8 encoding.