Luna::utf8_charlen

constexpr usize utf8_charlen(c8 ch)

Gets the number of UTF-8 characters the Unicode character takes from the first UTF-8 character.

Parameters

  • in ch

    The first UTF-8 character of the Unicode character.

Return value

Returns the number of UTF-8 characters the Unicode character takes.