System.SysUtils.TStringBuilder.Create

提供: RAD Studio API Documentation
移動先: 案内検索

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 */;

プロパティ

種類 可視性 ソース ユニット
constructor public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils TStringBuilder


説明

メモリを確保し、TStringBuilder の安全に初期化されるインスタンスを構築します。

Create を使用すると、TStringBuilder クラスのインスタンスを作成することができます。

aCapacity は、Capacity プロパティの初期値や、この TStringBuilder インスタンスが保有できる、文字の最大数を指定することができます。Capacity プロパティの値は、変更できます。

Value は、この TStringBuilder インスタンスに格納されている、初期の文字配列を示します。

aMaxCapacity は、Capacity プロパティが、TStringBuilder クラスのこのインスタンスのために持つことができる、最大値です。

StartIndex は、この TStringBuilder インスタンスの初期の文字配列にコピーされる、Value 文字列での最初の文字のインデックスを示します。

Length は、この TStringBuilder インスタンスの初期の文字配列に、Value 文字列からコピーされる文字数です。

関連項目

コード サンプル