System::Text::StringBuilder class
Contents
[
Hide
]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
Methods
Method | Description |
---|---|
Append(char_t) | Adds character to builder. |
Append(char_t, int) | Adds characters to builder. |
Append(const ArrayPtr<char_t>&) | Adds characters array to builder. |
Append(const ArrayPtr<char_t>&, int, int) | Adds characters array slice to builder. |
Append(const String&) | Adds string to builder. |
Append(const String&, int, int) | Adds string slice to builder. |
Append(const SharedPtr<T>&) | Adds object’s string representation to builder. |
Append(const SharedPtr<StringBuilder>&) | Adds builder’s content to builder. |
Append(float) | Adds floating point value to builder. |
Append(double) | Adds floating point value to builder. |
Append(int) | Adds integer value to builder. |
Append(T) | Adds arithmetic value to builder. |
Append(E) | Adds enum value string representation to builder. |
AppendFormat(const String&, const TArgs&…) | Appends formated string to builder. |
AppendFormat(const SharedPtr<IFormatProvider>&, const String&, const TArgs&…) | Appends formated string to builder. |
AppendLine() | Appends new line character to builder. |
AppendLine(const String&) | Appends string followed by new line character to builder. |
Clear() | Removes all characters from the builder. |
CopyTo(int, System::ArrayPtr<char_t> const&, int, int) | Copies builder’s data into existing array positions. |
get_Capacity() const | Gets current capacity of string builder. |
get_Length() const | Gets length of string currently in builder. |
idx_get(int) const | Gets character at specified position. |
idx_set(int, char_t) | Sets character at specified position. |
Insert(int, const String&) | Inserts string into builder’s fixed position. |
Insert(int32_t, const String&, int32_t) | Inserts repeated string into builder’s fixed position. |
Insert(int, char_t) | Inserts character into builder’s fixed position. |
Insert(int, const System::ArrayPtr<char_t>&, int, int) | Inserts characters into builder’s fixed position. |
Insert(int, T) | Inserts value into builder’s fixed position. |
operator[](int) const | Gets character at specified position. |
Remove(int, int) | Removes fragment from builder. |
Replace(const String&, const String&) | Replaces substring through the builder. |
Replace(const String&, const String&, int, int) | Replaces substring through the builder’s range. |
Replace(char_t, char_t) | Replaces character through the builder. |
Replace(char_t, char_t, int, int) | Replaces character through the builder’s range. |
set_Capacity(int) | Sets current capacity of string builder. |
set_Length(int) | Trunkates or extends string builder to specified length. |
StringBuilder() | Constructor. |
StringBuilder(int) | Constructor. |
StringBuilder(const String&) | Constructor. |
StringBuilder(const String&, int) | Constructor. |
StringBuilder(const String&, int, int, int) | Constructor. |
ToString() const override | Gets string currently contained in builder. |
ToString(int, int) const | Gets substring currently contained in builder. |
~StringBuilder() | Destructor. |
See Also
- Class Object
- Namespace System::Text
- Library Aspose.PUB for C++