String Builder
A mutable sequence of characters.
String builder can be used to efficiently perform multiple string manipulation operations.
A mutable sequence of characters.
String builder can be used to efficiently perform multiple string manipulation operations.
A mutable sequence of characters.
String builder can be used to efficiently perform multiple string manipulation operations.
Constructors
Constructs an empty string builder.
Constructs an empty string builder.
Constructs an empty string builder.
Constructs an empty string builder with the specified initial capacity.
Constructs an empty string builder with the specified initial capacity.
Constructs an empty string builder with the specified initial capacity.
Constructs a string builder that contains the same characters as the specified content char sequence.
Constructs a string builder that contains the same characters as the specified content char sequence.
Constructs a string builder that contains the same characters as the specified content char sequence.
Constructs a string builder that contains the same characters as the specified content string.
Constructs a string builder that contains the same characters as the specified content string.
Functions
Appends the string representation of the specified object value to this string builder and returns this instance.
Appends the string representation of the specified boolean value to this string builder and returns this instance.
Since Kotlin
Appends the specified character value to this Appendable and returns this instance.
Appends characters in the specified character array value to this string builder and returns this instance.
Since Kotlin
Appends the specified character sequence value to this Appendable and returns this instance.
Appends the specified string value to this string builder and returns this instance.
Since Kotlin
Appends a subsequence of the specified character sequence value to this Appendable and returns this instance.
Appends the string representation of the specified object value to this string builder and returns this instance.
Appends the string representation of the specified boolean value to this string builder and returns this instance.
Since Kotlin
Appends the specified character value to this Appendable and returns this instance.
Appends characters in the specified character array value to this string builder and returns this instance.
Since Kotlin
Appends the specified character sequence value to this Appendable and returns this instance.
Appends the specified string value to this string builder and returns this instance.
Since Kotlin
Appends a subsequence of the specified character sequence value to this Appendable and returns this instance.
Appends the string representation of the specified object value to this string builder and returns this instance.
Appends the string representation of the specified boolean value to this string builder and returns this instance.
Appends the specified character value to this Appendable and returns this instance.
Appends characters in the specified character array value to this string builder and returns this instance.
Appends the specified character sequence value to this Appendable and returns this instance.
Appends the specified string value to this string builder and returns this instance.
Appends a subsequence of the specified character sequence value to this Appendable and returns this instance.
Appends characters in a subarray of the specified character array value to this string builder and returns this instance.
Since Kotlin
Appends a subsequence of the specified character sequence value to this string builder and returns this instance.
Since Kotlin
Appends characters in a subarray of the specified character array value to this string builder and returns this instance.
Since Kotlin
Appends a subsequence of the specified character sequence value to this string builder and returns this instance.
Since Kotlin
Returns the current capacity of this string builder.
Since Kotlin
Returns the current capacity of this string builder.
Since Kotlin
Clears the content of this string builder making it empty and returns this instance.
Since Kotlin
Removes characters in the specified range from this string builder and returns this instance.
Since Kotlin
Removes characters in the specified range from this string builder and returns this instance.
Since Kotlin
Ensures that the capacity of this string builder is at least equal to the specified minimumCapacity.
Since Kotlin
Ensures that the capacity of this string builder is at least equal to the specified minimumCapacity.
Since Kotlin
Ensures that the capacity of this string builder is at least equal to the specified minimumCapacity.
Returns the index within this string builder of the first occurrence of the specified string.
Since Kotlin
Returns the index within this string builder of the first occurrence of the specified string, starting at the specified startIndex.
Since Kotlin
Returns the index within this string builder of the first occurrence of the specified string.
Since Kotlin
Returns the index within this string builder of the first occurrence of the specified string, starting at the specified startIndex.
Since Kotlin
Returns the index within this string builder of the first occurrence of the specified string.
Since Kotlin
Returns the index within this string builder of the first occurrence of the specified string, starting at the specified startIndex.
Since Kotlin
Inserts the string representation of the specified object value into this string builder at the specified index and returns this instance.
Since Kotlin
Inserts the string representation of the specified boolean value into this string builder at the specified index and returns this instance.
Since Kotlin
Inserts the specified character value into this string builder at the specified index and returns this instance.
Since Kotlin
Inserts characters in the specified character array value into this string builder at the specified index and returns this instance.
Since Kotlin
Inserts characters in the specified character sequence value into this string builder at the specified index and returns this instance.
Since Kotlin
Since Kotlin
Inserts the string representation of the specified object value into this string builder at the specified index and returns this instance.
Since Kotlin
Inserts the string representation of the specified boolean value into this string builder at the specified index and returns this instance.
Since Kotlin
Inserts the specified character value into this string builder at the specified index and returns this instance.
Since Kotlin
Inserts characters in the specified character array value into this string builder at the specified index and returns this instance.
Since Kotlin
Inserts characters in the specified character sequence value into this string builder at the specified index and returns this instance.
Since Kotlin
Since Kotlin
Inserts the string representation of the specified object value into this string builder at the specified index and returns this instance.
Inserts the string representation of the specified boolean value into this string builder at the specified index and returns this instance.
Inserts the specified character value into this string builder at the specified index and returns this instance.
Inserts characters in the specified character array value into this string builder at the specified index and returns this instance.
Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.
Since Kotlin
Inserts characters in a subsequence of the specified character sequence value into this string builder at the specified index and returns this instance.
Since Kotlin
Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.
Since Kotlin
Inserts characters in a subsequence of the specified character sequence value into this string builder at the specified index and returns this instance.
Since Kotlin
Returns the index within this string builder of the last occurrence of the specified string. The last occurrence of empty string ""
is considered to be at the index equal to this.length
.
Since Kotlin
Returns the index within this string builder of the last occurrence of the specified string, starting from the specified startIndex toward the beginning.
Since Kotlin
Returns the index within this string builder of the last occurrence of the specified string. The last occurrence of empty string ""
is considered to be at the index equal to this.length
.
Since Kotlin
Returns the index within this string builder of the last occurrence of the specified string, starting from the specified startIndex toward the beginning.
Since Kotlin
Returns the index within this string builder of the last occurrence of the specified string. The last occurrence of empty string ""
is considered to be at the index equal to this.length
.
Since Kotlin
Returns the index within this string builder of the last occurrence of the specified string, starting from the specified startIndex toward the beginning.
Since Kotlin
Reverses the contents of this string builder and returns this instance.
Reverses the contents of this string builder and returns this instance.
Reverses the contents of this string builder and returns this instance.
Returns a new character sequence that is a subsequence of this character sequence, starting at the specified startIndex and ending right before the specified endIndex.
Returns a new character sequence that is a subsequence of this character sequence, starting at the specified startIndex and ending right before the specified endIndex.
Returns a new String that contains characters in this string builder at startIndex (inclusive) and up to the length (exclusive).
Since Kotlin
Returns a new String that contains characters in this string builder at startIndex (inclusive) and up to the endIndex (exclusive).
Since Kotlin
Returns a new String that contains characters in this string builder at startIndex (inclusive) and up to the length (exclusive).
Since Kotlin
Returns a new String that contains characters in this string builder at startIndex (inclusive) and up to the endIndex (exclusive).
Since Kotlin
Returns a new String that contains characters in this string builder at startIndex (inclusive) and up to the length (exclusive).
Since Kotlin
Returns a new String that contains characters in this string builder at startIndex (inclusive) and up to the endIndex (exclusive).
Copies characters from this string builder into the destination character array.
Since Kotlin
Copies characters from this string builder into the destination character array.
Since Kotlin
Attempts to reduce storage used for this string builder.
Since Kotlin
Attempts to reduce storage used for this string builder.
Since Kotlin
Attempts to reduce storage used for this string builder.
Properties
Extensions
Appends all arguments to the given StringBuilder.
Appends a line feed character (\n
) to this StringBuilder.
Appends value to this StringBuilder, followed by a line feed character (\n
).
Appends value to this StringBuilder, followed by a line feed character (\n
).
Appends value to this StringBuilder, followed by a line feed character (\n
).
Appends a line separator to this StringBuilder.
Appends value to this StringBuilder, followed by a line separator.
Appends characters in a subarray of the specified character array value to this string builder and returns this instance.
Appends a subsequence of the specified character sequence value to this string builder and returns this instance.
Appends characters in a subarray of the specified character array value to this string builder and returns this instance.
Appends a subsequence of the specified character sequence value to this string builder and returns this instance.
Appends characters in a subarray of the specified character array value to this string builder and returns this instance.
Appends a subsequence of the specified character sequence value to this string builder and returns this instance.
Clears the content of this string builder making it empty and returns this instance.
Clears the content of this string builder making it empty and returns this instance.
Clears the content of this string builder making it empty and returns this instance.
Removes the character at the specified index from this string builder and returns this instance.
Removes characters in the specified range from this string builder and returns this instance.
Removes characters in the specified range from this string builder and returns this instance.
Removes characters in the specified range from this string builder and returns this instance.
Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.
Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.
Inserts characters in a subarray of the specified character array value into this string builder at the specified index and returns this instance.
Replaces characters in the specified range of this string builder with characters in the specified string value and returns this instance.
Replaces characters in the specified range of this string builder with characters in the specified string value and returns this instance.
Replaces characters in the specified range of this string builder with characters in the specified string value and returns this instance.
Copies characters from this string builder into the destination character array.
Copies characters from this string builder into the destination character array.
Copies characters from this string builder into the destination character array.