Computes the length of the string in characters, not including the terminating nul character.
If the max
'th byte falls in the middle of a character, the last (partial) character is not counted.
max |
the maximum number of bytes to examine. If |
p |
pointer to the start of a UTF-8 encoded string |
the length of the string in characters |