Sign in Join
FPDoc Onlineexperiment

WideCharToStrVar procedure

In unit System

Convert a null-terminated array of widechar to an ansistring.

Declaration

pascal
procedure WideCharToStrVar(S: PWideChar; out Dest: UnicodeString)

Description

WideCharToString converts the null-terminated widechar array S to an ansistring or Unicode string, and returns the resulting string in Dest.

Errors

No validity checking is performed on S. Passing an invalid pointer, or an improperly terminated array may lead to access violations.

See also

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