decode

fndchar decode(const scope char[] s, ref size_t idx) @safe pure

Decodes and returns character starting at s[idx]. idx is advanced past the decoded character. If the character is not well formed, a UtfException is thrown and idx remains unchanged.

fndchar decode(const scope wchar[] s, ref size_t idx) @safe pure

ditto

fndchar decode(const scope dchar[] s, ref size_t idx) @safe pure

ditto