System::Text::StringBuilder クラス

StringBuilder class

Buffer to accumulate string part by part. This type can be allocated either in stack as value type or in heap using System::MakeObject() function. Once the object is allocated, never mix up these two usecases: having SmartPtr pointers onto stack-allocated objects is strictly prohibited.

class StringBuilder : public System::Object

メソッド

メソッド説明
Append(char_t)文字をビルダーに追加します。
Append(char_t, int)文字をビルダーに追加します。
Append(const ArrayPtr<char_t>&)文字配列をビルダーに追加します。
Append(const ArrayPtr<char_t>&, int, int)文字配列のスライスをビルダーに追加します。
Append(const String&)文字列をビルダーに追加します。
Append(const String&, int, int)文字列のスライスをビルダーに追加します。
Append(const SharedPtr<T>&)オブジェクトの文字列表現をビルダーに追加します。
Append(const SharedPtr<StringBuilder>&)ビルダーの内容をビルダーに追加します。
Append(float)浮動小数点値をビルダーに追加します。
Append(double)浮動小数点値をビルダーに追加します。
Append(int)整数値をビルダーに追加します。
Append(T)算術値をビルダーに追加します。
Append(E)列挙型の値の文字列表現をビルダーに追加します。
AppendFormat(const String&, const TArgs&…)書式設定された文字列をビルダーに追加します。
AppendFormat(const SharedPtr<IFormatProvider>&, const String&, const TArgs&…)書式設定された文字列をビルダーに追加します。
AppendLine()改行文字をビルダーに追加します。
AppendLine(const String&)文字列と改行文字を続けてビルダーに追加します。
Clear()ビルダーからすべての文字を削除します。
CopyTo(int, System::ArrayPtr<char_t> const&, int, int)ビルダーのデータを既存の配列位置にコピーします。
get_Capacity() const文字列ビルダーの現在の容量を取得します。
get_Length() constビルダー内の文字列の長さを取得します。
idx_get(int) const指定位置の文字を取得します。
idx_set(int, char_t)指定位置に文字を設定します。
Insert(int, const String&)文字列をビルダーの固定位置に挿入します。
Insert(int32_t, const String&, int32_t)繰り返し文字列をビルダーの固定位置に挿入します。
Insert(int, char_t)文字をビルダーの固定位置に挿入します。
Insert(int, const System::ArrayPtr<char_t>&, int, int)文字列をビルダーの固定位置に挿入します。
Insert(int, T)値をビルダーの固定位置に挿入します。
operator[](int) const指定位置の文字を取得します。
Remove(int, int)ビルダーからフラグメントを削除します。
Replace(const String&, const String&)ビルダーを通じて部分文字列を置換します。
Replace(const String&, const String&, int, int)ビルダーの範囲を通じて部分文字列を置換します。
Replace(char_t, char_t)ビルダーを通じて文字を置換します。
Replace(char_t, char_t, int, int)ビルダーの範囲を通じて文字を置換します。
set_Capacity(int)文字列ビルダーの現在の容量を設定します。
set_Length(int)文字列ビルダーを指定された長さに切り詰めるか拡張します。
StringBuilder()コンストラクタ。
StringBuilder(int)コンストラクタ。
StringBuilder(const String&)コンストラクタ。
StringBuilder(const String&, int)コンストラクタ。
StringBuilder(const String&, int, int, int)コンストラクタ。
ToString() const overrideビルダーに現在含まれている文字列を取得します。
ToString(int, int) constビルダーに現在含まれている部分文字列を取得します。
~StringBuilder()デストラクタ。

参照