Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TAnsiStringBuilder.Replace

Replace a range of characters.

Declaration

Source position: syssbh.inc line 112

public function TAnsiStringBuilder.Replace(

  const OldChar: AnsiChar;

  const NewChar: AnsiChar

):TAnsiStringBuilder;

function TAnsiStringBuilder.Replace(

  const OldChar: AnsiChar;

  const NewChar: AnsiChar;

  StartIndex: Integer;

  Count: Integer

):TAnsiStringBuilder;

function TAnsiStringBuilder.Replace(

  const OldValue: RawByteString;

  const NewValue: RawByteString

):TAnsiStringBuilder;

function TAnsiStringBuilder.Replace(

  const OldValue: RawByteString;

  const NewValue: RawByteString;

  StartIndex: Integer;

  Count: Integer

):TAnsiStringBuilder;

Description

Replace replaces occurrences of OldValue with the characters in NewValue. The search operation starts at position StartIndex (0-based, default 0) till position StartIndex+aCount is reached.

Errors

If StartIndex or StartIndex+aCount is out of range, an ERangeError exception is raised.

See also

AppendFormat

  

Append the result of a Format.

AppendLine

  

Append a string followed by a newline.

Append

  

Append data in string form to the buffer.

Insert

  

Insert data in string form into the buffer at a given position.

Clear

  

Clear the string being built.

Remove

  

Remove data from the string.


Documentation generated on: Nov 22 2024