stride

fnuint stride(const scope char[] s, size_t i) @safe @nogc pure nothrow

stride() returns the length of a UTF-8 sequence starting at index i in string s.

Returns

The number of bytes in the UTF-8 sequence or

0xFF meaning s[i] is not the start of of UTF-8 sequence.

fnuint stride(const scope wchar[] s, size_t i) @safe @nogc pure nothrow

stride() returns the length of a UTF-16 sequence starting at index i in string s.

fnuint stride(const scope dchar[] s, size_t i) @safe @nogc pure nothrow

stride() returns the length of a UTF-32 sequence starting at index i in string s.

Returns

The return value will always be 1.