toUTFindex

fnsize_t toUTFindex(const scope char[] s, size_t n) @safe pure

Given a UCS index n into an array of characters s[], return the UTF index.

fnsize_t toUTFindex(const scope wchar[] s, size_t n) @safe @nogc pure nothrow

ditto

fnsize_t toUTFindex(const scope dchar[] s, size_t n) @safe @nogc pure nothrow

ditto