decode

Decodes a character starting at ref_p.

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

Parameters

ref_p
Type: cchar*

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

Meta