Luna::utf8_charlen

constexpr usize utf8_charlen(const c8 *src)

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

Parameters

  • in src

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

Return value

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