Sign in Join
FPDoc Onlineexperiment

TAnsiStringBuilder.Insert function

Member of TAnsiStringBuilderpublicIn unit sysutils

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

Declaration

pascal
function Insert(Index: Integer; const AValue: Boolean)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: Byte): TAnsiStringBuilder
function Insert(Index: Integer; const AValue: AnsiChar)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: Currency)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: Double)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: SmallInt)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: LongInt)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: Array of AnsiChar = char)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: Int64)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: TObject)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: ShortInt)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: Single)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: AnsiString)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: Word): TAnsiStringBuilder
function Insert(Index: Integer; const AValue: Cardinal)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: UInt64)
: TAnsiStringBuilder
function Insert(Index: Integer; const AValue: AnsiString; 
 const aRepeatCount: Integer): TAnsiStringBuilder
function Insert(Index: Integer; const AValue: Array of AnsiChar = char; 
 startIndex: Integer; SBCharCount: Integer)
: TAnsiStringBuilder

Description

Insert in its various overloaded forms will insert the aValue argument into the buffer at position Index (0-based), after converting it to a string value if necessary:

  • For integer values the various IntToSTr functions will be used.
  • For TObject the ToString is used.
  • The repeatCount argument will insert the character as many times as instructed.
  • If the StartIndex and SBCharCount are specified, then SBCharCount characters are copied starting from position StartIndex.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.