[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Insert one string in another.
Source position: line 0
procedure Insert( |
const source: shortstring; |
var s: shortstring; |
index: SizeInt |
); |
source: Char; |
var s: shortstring; |
index: SizeInt |
); |
const Source: AnsiString; |
var S: AnsiString; |
Index: SizeInt |
); |
const Source: WideString; |
var S: WideString; |
Index: SizeInt |
); |
Insertinserts string Sourcein string S, at position Index, shifting all characters after Indexto the right. The resulting string is truncated at 255 characters, if needed. (i.e. for shortstrings)
None.
|
Delete part of a string. |
|
Copy |
|
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.