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
s | the string to be counted |
n | the current code point index |