Initializes a new instance of that class.
The current value.
The default value for a new line.
Gets if the value is empty or not.
Gets or sets the length.
Gets or sets the length.
Appends the string representation of a value to the current value.
The value to append.
Appends a formatted string.
The format string.
Appends a formatted string.
The format string.
One or more argument for the format string.
Joins a list of values to one string and appends it.
The separator.
Joins a list of values to one string and appends it.
The separator.
One or more argument for the format string.
Appends the string representation of a value to the current value and adds a new line.
The value to append.
Clears the underlying value.
Clones that instance.
import { StringBuilder } from "@marcelkloubert/strings"
const str1 = new StringBuilder()
const str2 = str1.clone()
str1 === str2 // (false)
str1.equals(str2) // (true)
The cloned instance.
Handles another value as string and checks if it is equal qith this instance.
The other value.
Both values are equal.
Returns the value for a new line.
The new line value.
Insert a value to this string.
The zero based start index.
The value to insert.
Prepends the string representation of a value to the current value.
The value to append.
Appends a formatted string.
The format string.
Prepends a formatted string.
The format string.
One or more argument for the format string.
Joins a list of values to one string and prepends it.
The separator.
Joins a list of values to one string and prepends it.
The separator.
One or more argument for the format string.
Prepends the string representation of a value to the current value and adds a new line.
The value to append.
Removes a part from the current string.
The zero based start index.
The length.
Replaces a substring with a new one.
The value or refular expression to search for.
The new value.
Generated using TypeDoc
A string builder class.