EncodingScheme.index

ptrdiff_t index()(const(ubyte)[] s, size_t n)

Returns the array index at which the (n+1)th code point begins.

The input to this function MUST be validly encoded. This is enforced by the function's in-contract.

Parameters

sthe string to be counted
nthe current code point index