Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

StringOf

Create a Unicode string from an array of bytes.

Declaration

Source position: sysunih.inc line 67

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

WideBytesOf

  

Returns the contents of a widestring as an array of bytes.

WideStringOf

  

Create Unicode string from array of bytes.


Documentation generated on: Dec 22 2024