Luna::utf8_strlen
constexpr usize utf8_strlen(const c8 *src)
Gets the number of Unicode characters in a null-terminated UTF-8 string, not including the null terminator.
Parameters
-
in src
The UTF-8 string to check.
Return value
Returns the number of Unicode characters in the UTF-8 string.
Valid Usage
src
must points to a valid, null-terminated UTF-8 string.