_alignUtf8Start

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

Adjusts a position backwards to align with a UTF-8 character boundary.

If the position is in the middle of a multi-byte UTF-8 sequence, this walks backwards to find the start byte.

Parameters

srcThe source buffer.
posThe position to adjust.
minPosThe minimum position (will not go below this).

Returns

The adjusted position at a UTF-8 character boundary.