decodeUtf8

Decodes a single UTF8 character from the given buffer. utf8InOut is used to pass in the start of the utf8 encoded character, and also used to return the end of it once it has been decoded.

Returns the decoded character as a 32-bit dchar.

Throw: Utf8DecodeException if the utf8 encoding is invalid.

  1. dchar decodeUtf8(T** utf8InOut)
    pragma(inline) pure
    dchar
    decodeUtf8
    (
    T
    )
    ()
    if (
    T.sizeof == 1
    )
  2. dchar decodeUtf8(T** utf8InOut, T* limit)

Meta