Returns the codepoints (as integers) from all characters in s that start between byte position i and j (both included). The default for i is 1 and for j is i. It raises an error if it meets any invalid byte sequence.

Parameters

`bigEndian` - (optional) If set to `true`, the string is encoded in 'big-endian' format.

`s` - The string

`i` - The starting index. Defaults to `1`.

`j` - The ending index. Defaults to `i`.

Returns

a list of codepoint integers for all characters in the matching range.

Returns the position (in bytes) where the encoding of the n-th character of s (counting from position i) starts. A negative n gets characters before position i. The default for i is 1 when n is non-negative and #s + 1 otherwise, so that utf8.offset(s, -n) gets the offset of the n-th character from the end of the string. If the specified character is neither in the subject nor right after its end, the function returns nil.

Parameters

`bigEndian` - If `true`, the encoding is 'big-endian'. Defaults to `false`