Sign in Join
FPDoc Onlineexperiment

WideStringOf function

In unit sysutils

Create Unicode string from array of bytes.

Declaration

pascal
function WideStringOf(const Value: TBytes): UnicodeString

Description

WideStringOf converts an array of bytes ( Bytes) to a Unicode string. It considers each pair of bytes in the array as a single wide char. The array should have an even length. If the length is uneven, the last byte will be ignored.

This function performs the opposite operation of BytesOf.

To create a string where the bytes are interpreted as ansichars, use StringOf instead.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.