Calculates the number of UTF8 code points in a UTF8-encoded string. Calls the standard unicode error handler on error, which throws a new UnicodeException.
The string to calculate the length of.
The length of the given string.
UnicodeException if an invalid UTF8 code unit is detected.
See Implementation
Calculates the number of UTF8 code points in a UTF8-encoded string. Calls the standard unicode error handler on error, which throws a new UnicodeException.