_alignUtf8End

private fnsize_t _alignUtf8End(const(char)[] src, size_t pos, size_t maxPos) @safe pure nothrow @nogc

Adjusts a position forwards to align with the end of a UTF-8 character.

If the position is in the middle of a multi-byte UTF-8 sequence, this walks forwards past all continuation bytes.

Parameters

srcThe source buffer.
posThe position to adjust.
maxPosThe maximum position (will not go beyond this).

Returns

The adjusted position at the end of the UTF-8 character.