Luna::utf16_charspan

constexpr usize utf16_charspan(c32 ch)

Gets the number of UTF-16 characters needed to store the Unicode char in UTF-16 encoding.

Parameters

  • in ch

    The Unicode codepoint of the character.

Return value

Returns the number of UTF-16 characters needed to store the Unicode char in UTF-16 encoding.