Sign in Join
FPDoc Onlineexperiment

WideCharLenToStrVar procedure

In unit System

Convert a length-limited array of widechar to an ansistring.

Declaration

pascal
procedure WideCharLenToStrVar(Src: PWideChar; Len: SizeInt; 
 out Dest: UnicodeString)

Description

WideCharLenToString converts at most Len widecharacters from the null-terminated widechar array Src to an ansistring or Unicode string, and returns the resulting in Dest.

Errors

No validity checking is performed on Src. Passing an invalid pointer may lead to access violations.

See also

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