decode

Decodes a character from str at index.

  1. dchar decode(cstring str, ref size_t index)
    dchar
    decode
    (
    ,
    ref size_t index
    )
    in { assert (str.length && index < str.length); }
    out { assert (index <= str.length); }
  2. dchar decode(ref cchar* ref_p, cchar* end)
  3. dchar decode(cwstring str, ref size_t index)
  4. dchar decode(ref cwchar* p, cwchar* end)
  5. dchar decode(ref cwchar* p)

Parameters

index
Type: size_t

Set to one past the ASCII char or one past the last trail byte of the valid UTF-8 sequence.

Meta