Luna::utf16_charlen

constexpr usize utf16_charlen(const c16 *src)

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

Parameters

  • in src

    The pointer that points to the first UTF-16 character of the Unicode character.

Return value

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