[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
Replace occurrences of one substring with another in a string.
Source position: sysstrh.inc line 163
function StringReplace( |
const S: String; |
const OldPattern: String; |
const NewPattern: String; |
Flags: TReplaceFlags |
):String; |
StringReplacesearches the string Sfor occurrences of the string OldPatternand, if it is found, replaces it with NewPattern. It returns the resulting string. The behaviour of StringReplacecan be runed with Flags, which is of type TReplaceFlags. Standard behaviour is to replace only the first occurrence of OldPattern, and to search case sensitively.
None.
|
Flags for StringReplace function |