RAD Studio VCL Reference
|
Replace segment of AnsiString with another one.
function StuffString(const AText: AnsiString; AStart: Cardinal; ALength: Cardinal; const ASubText: AnsiString): AnsiString; overload;
AnsiString StuffString(const AnsiString AText, unsigned AStart, unsigned ALength, const AnsiString ASubText);
StuffString replaces a segment of an AnsiString with a substring, ASubText, returning a copy. The replacement starts at byte index AStart and replaces ALength bytes of the original string. If AStart is greater than the byte length of the original string AText, the substring ASubText is added to the end of Atext. The entire substring ASubText is copied to the new string, even if it results in a longer string than the original.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|