Sign in Join
FPDoc Onlineexperiment

StringToWideChar function

In unit System

Convert a string to an array of widechars.

Declaration

pascal
function StringToWideChar(const Src: RawByteString; Dest: PWideChar; 
 DestSize: SizeInt): PWideChar

Description

StringToWideChar converts a single-byte-character string Src to a null-terminated array of WideChars. The destination for this array is pointed to by Dest, and contains room for at least DestSize widechars.

Errors

No validity checking is performed on Dest.

See also

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