[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Insert one string in another.
Source position: systemh.inc line 1083
procedure Insert( |
const source: shortstring; |
var s: shortstring; |
index: SizeInt |
); |
source: Char; |
var s: shortstring; |
index: SizeInt |
); |
const Source: RawByteString; |
var S: RawByteString; |
Index: SizeInt |
); |
const Source: UnicodeString; |
var S: UnicodeString; |
Index: SizeInt |
); |
const Source: WideString; |
var S: WideString; |
Index: SizeInt |
); |
Insert inserts string Source in string S, at position Index, shifting all characters after Index to the right. The resulting string is truncated at 255 characters, if needed. (i.e. for shortstrings)
None.
|
Delete part of a string. |
|
|
Copy part of a string. |
|
|
Search for substring in a string. |
Program Example33; { Program to demonstrate the Insert function. } Var S : String; begin S:='Free Pascal is difficult to use !'; Insert ('NOT ',S,pos('difficult',S)); writeln (s); end.