[Overview][Constants][Types][Procedures and functions] | Reference for unit 'strutils' (#rtl) |
Replace part of a string with another string.
Source position: strutils.pp line 55
function StuffString( |
const AText: String; |
AStart: Cardinal; |
ALength: Cardinal; |
const ASubText: String |
):String; |
AText |
|
Text on which to operate. |
AStart |
|
Start of section to be replaced. |
ALength |
|
Length of section to be replaced. |
ASubText |
|
Text to insert at the indicated position. |
Resulting string with indicated section replaced.
StuffString returns a copy of AText with the segment starting at AStart with length ALength, replaced with the string ASubText. Basically it deletes the segment of Atext and inserts the new text in it's place.
No checking on the validity of the AStart and ALength parameters is done. Providing invalid values may result in access violation errors.
|
Search for a substring in a string, using wildcards. |
|
|
Delete all occurrences of a given character from a string. |
|
|
Delete all occurrences of a space from a string. |
|
|
Extract a word from a string, starting at a given position in the string. |
|
|
Creates and concatenates N copies of a string |
No notes exist for this page yet.