Sign in Join
FPDoc Onlineexperiment

UnicodeCharLenToString function

In unit System

Convert a memory buffer with Unicode characters to a unicodestring.

Declaration

pascal
function UnicodeCharLenToString(S: PUnicodeChar; Len: SizeInt)
: UnicodeString

Description

UnicodeCharLenToString converts the Unicode characters in buffer S with at most len bytes length, to a unicodestring and returns the result.

This function requires the use of a widestring manager.

Errors

No checking is done to see if the pointer S or length len are valid.

See also

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