_alignUtf8Start
private fn
size_t _alignUtf8Start(const(char)[] src, size_t pos, size_t minPos) @safe pure nothrow @nogcAdjusts 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
src | The source buffer. |
pos | The position to adjust. |
minPos | The minimum position (will not go below this). |
Returns
The adjusted position at a UTF-8 character boundary.