Append()

StringBuilder::Append(char_t) method

Adds character to builder.

StringBuilder * System::Text::StringBuilder::Append(char_t c)

Arguments

ParameterTypeDescription
cchar_tCharacter value.

Return Value

This pointer.

StringBuilder::Append(char_t, int) method

Adds characters to builder.

StringBuilder * System::Text::StringBuilder::Append(char_t c, int count)

Arguments

ParameterTypeDescription
cchar_tCharacter value.
countintHow many times to repeat insertee character.

Return Value

This pointer.

StringBuilder::Append(const ArrayPtr<char_t>&) method

Adds characters array to builder.

StringBuilder * System::Text::StringBuilder::Append(const ArrayPtr<char_t> &arr)

Arguments

ParameterTypeDescription
arrconst ArrayPtr<char_t>&Characters to add.

Return Value

This pointer.

StringBuilder::Append(const ArrayPtr<char_t>&, int, int) method

Adds characters array slice to builder.

StringBuilder * System::Text::StringBuilder::Append(const ArrayPtr<char_t> &arr, int startIndex, int charCount)

Arguments

ParameterTypeDescription
arrconst ArrayPtr<char_t>&Characters to add.
startIndexintSlice beginning index.
charCountintSlice length.

Return Value

This pointer.

StringBuilder::Append(const String&) method

Adds string to builder.

StringBuilder * System::Text::StringBuilder::Append(const String &str)

Arguments

ParameterTypeDescription
strconst String&String to add.

Return Value

This pointer.

StringBuilder::Append(const String&, int, int) method

Adds string slice to builder.

StringBuilder * System::Text::StringBuilder::Append(const String &str, int startIndex, int charCount)

Arguments

ParameterTypeDescription
strconst String&String to add.
startIndexintSlice beginning index.
charCountintSlice length.

Return Value

This pointer.

StringBuilder::Append(const SharedPtr<T>&) method

Adds object’s string representation to builder.

template<class T> StringBuilder * System::Text::StringBuilder::Append(const SharedPtr<T> &obj)

Template parameters

ParameterDescription
TObject type.

Arguments

ParameterTypeDescription
objconst SharedPtr<T>&Object to serialize and add.

Return Value

This pointer.

StringBuilder::Append(const SharedPtr<StringBuilder>&) method

Adds builder’s content to builder.

StringBuilder * System::Text::StringBuilder::Append(const SharedPtr<StringBuilder> &builder)

Arguments

ParameterTypeDescription
builderconst SharedPtr<StringBuilder>&Builder to add content from.

Return Value

This pointer.

StringBuilder::Append(float) method

Adds floating point value to builder.

StringBuilder * System::Text::StringBuilder::Append(float f)

Arguments

ParameterTypeDescription
ffloatValue to serialize and add.

Return Value

This pointer.

StringBuilder::Append(double) method

Adds floating point value to builder.

StringBuilder * System::Text::StringBuilder::Append(double df)

Arguments

ParameterTypeDescription
dfdoubleValue to serialize and add.

Return Value

This pointer.

StringBuilder::Append(int) method

Adds integer value to builder.

StringBuilder * System::Text::StringBuilder::Append(int i)

Arguments

ParameterTypeDescription
iintValue to serialize and add.

Return Value

This pointer.

StringBuilder::Append(T) method

Adds arithmetic value to builder.

template<typename T> std::enable_if<std::is_arithmetic<T>::value, StringBuilder *>::type System::Text::StringBuilder::Append(T value)

Template parameters

ParameterDescription
TArithmetic type.

Arguments

ParameterTypeDescription
valueTValue to serialize and add.

Return Value

This pointer.

StringBuilder::Append(E) method

Adds enum value string representation to builder.

template<class E> std::enable_if<std::is_enum<E>::value, StringBuilder *>::type System::Text::StringBuilder::Append(E e)

Template parameters

ParameterDescription
EEnum type.

Arguments

ParameterTypeDescription
eEValue to serialize and add.

Return Value

This pointer.

See Also