Luna::utf16_charlen

constexpr usize utf16_charlen(c16 ch)

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

Parameters

  • in ch

    The first UTF-16 character of the Unicode character.

Return value

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