decode

Decodes a UTF-16 string.

This function will automatically detect BOMs and handle endianness where applicable.

  1. codepoint decode(wchar[2] chr, size_t read)
  2. UnicodeSequence decode(inout(wchar)[] str, bool stripBOM)
    @nogc
    decode
    (
    inout(wchar)[] str
    ,
    bool stripBOM = false
    )
  3. UnicodeSequence decode(nwstring str, bool stripBOM)

Meta