Show: Delphi C++
Display Preferences

System.SysUtils.TStringBuilder.Create

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

constructor Create; overload;
constructor Create(aCapacity: Integer); overload;
constructor Create(const Value: string); overload;
constructor Create(aCapacity: Integer; aMaxCapacity: Integer); overload;
constructor Create(const Value: string; aCapacity: Integer); overload;
constructor Create(const Value: string; StartIndex: Integer; Length: Integer; aCapacity: Integer); overload;

C++

__fastcall TStringBuilder(void)/* overload */;
__fastcall TStringBuilder(int aCapacity)/* overload */;
__fastcall TStringBuilder(const System::UnicodeString Value)/* overload */;
__fastcall TStringBuilder(int aCapacity, int aMaxCapacity)/* overload */;
__fastcall TStringBuilder(const System::UnicodeString Value, int aCapacity)/* overload */;
__fastcall TStringBuilder(const System::UnicodeString Value, int StartIndex, int Length, int aCapacity)/* overload */;

Contents

Properties

Type Visibility Source Unit Parent
constructor public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TStringBuilder

Description

Allocates memory and constructs a safely initialized instance of TStringBuilder.

Use Create to Create an instance of the TStringBuilder class.

aCapacity specifies the initial value of the Capacity property, the maximum number of characters this TStringBuilder instance can hold. The value of the Capacity property can be changed.

Value specifies the initial character array to be stored in this TStringBuilder instance.

aMaxCapacity is the maximum value that the Capacity property can have for this instance of the TStringBuilder class.

StartIndex specifies the index of the first character in the Value string to be copied into the initial character array of this TStringBuilder instance.

Length is the number of characters to copy from the Value string into the initial character array of this TStringBuilder instance.

See Also

Code Examples


Personal tools
Translations