Set length of a string and copy buffer.
Source position: systemh.inc line 1302
procedure SetString( |
out S: AnsiString; |
Buf: PAnsiChar; |
Len: SizeInt |
); |
out S: AnsiString; |
Buf: PWideChar; |
Len: SizeInt |
); |
out S: Shortstring; |
Buf: PAnsiChar; |
Len: SizeInt |
); |
out S: UnicodeString; |
Buf: PUnicodeChar; |
Len: SizeInt |
); |
out S: UnicodeString; |
Buf: PAnsiChar; |
Len: SizeInt |
); |
out S: WideString; |
Buf: PWideChar; |
Len: SizeInt |
); |
out S: WideString; |
Buf: PAnsiChar; |
Len: SizeInt |
); |
SetString sets the length of the string S to Len and if Buf is non-nil, copies Len characters from Buf into S. S can be an ansistring, a short string or a widestring. For ShortStrings, Len can maximally be 255.
None.
|
Set length of a string or dynamic array. |