Unicode.utf8_Strlen

Computes the length of the string in characters, not including the terminating nul character.

class Unicode
static
utf8_Strlen
(
string p
,)

Parameters

p string

pointer to the start of a UTF-8 encoded string

max gssize

the maximum number of bytes to examine. If max is less than 0, then the string is assumed to be nul-terminated. If max is 0, p will not be examined and may be NULL.

Return Value

Type: glong

the length of the string in characters

Meta