Sign in Join
FPDoc Onlineexperiment

StringOf function

In unit sysutils

Create a Unicode string from an array of bytes.

Declaration

pascal
function StringOf(const Bytes: TBytes): UnicodeString

Description

StringOf converts an array of bytes ( Bytes) to a Unicode string. It interprets the bytes as a single-byte string, using the default codepage.

To create a string where the bytes are interpreted as wide chars, use WideStringOf instead.

Errors

None.

See also

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