[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

WideCharLenToStrVar

Convert a length-limited array of widechar to an ansistring

Declaration

Source position: ustringh.inc line 41

procedure WideCharLenToStrVar(

  Src: PWideChar;

  Len: SizeInt;

  out Dest: UnicodeString

);

procedure WideCharLenToStrVar(

  Src: PWideChar;

  Len: SizeInt;

  out Dest: AnsiString

);

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

StringToWideChar

  

Convert a string to an array of widechars.

WideCharToString

  

Convert a null-terminated array of widechar to an unicodestring

WideCharToStrVar

  

Convert a null-terminated array of widechar to an ansistring

WideCharLenToString

  

Convert a length-limited array of widechar to an unicodestring


Documentation generated on: May 14 2021