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

Name Description
StringToWideChar Convert a string to an array of widechars.
WideCharLenToString Convert a length-limited array of widechar to an unicodestring
WideCharToString Convert a null-terminated array of widechar to an unicodestring
WideCharToStrVar Convert a null-terminated array of widechar to an ansistring