utf8.offset (s, n [, i])
n
s
i
n
i
i
n
#s + 1
utf8.offset(s, -n)
n
nil
As a special case, when n
is 0 the function returns the start of the encoding of the character that contains the i
-th byte of s
.
This function assumes that s
is a valid UTF-8 string.
Please login to continue.