Calculates the number of UTF8 code points in a UTF8-encoded string. Calls error_dg if an invalid UTF8 code unit is detected, which may throw an exception to abort processing.
The string to calculate the length of.
The error delegate to call upon finding an invalid code unit. Takes a size_t parameter representing the index of the current code point in the string.
The length of the given string.
See Implementation
Calculates the number of UTF8 code points in a UTF8-encoded string. Calls error_dg if an invalid UTF8 code unit is detected, which may throw an exception to abort processing.