_alignUtf8End
private fn
size_t _alignUtf8End(const(char)[] src, size_t pos, size_t maxPos) @safe pure nothrow @nogcAdjusts 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
src | The source buffer. |
pos | The position to adjust. |
maxPos | The maximum position (will not go beyond this). |
Returns
The adjusted position at the end of the UTF-8 character.