decodeCodepointBefore

fnCodepointDecodeResult decodeCodepointBefore(IStr str, Sz index) @trusted nothrow @nogc @safe

Decodes the UTF-8 codepoint immediately before index in str. On invalid data, returns a result with value == '?' and size == 0.