Home > @infiniteobjects/core-library-node > IStringBuilder
An interface for a builder object that allows a large text string to be constructed incrementally by appending small chunks.
Signature:
export interface IStringBuilder
StringBuilder is the default implementation of this contract.
Method | Description |
---|---|
append(text) | Append the specified text to the buffer. |
appendIndentedLine(text, indentLevel) | Append the specified text to the buffer, preceded by the given indentation level and followed by a new line. |
appendLine(text) | Append the specified text to the buffer, followed by a new line. |
toString() | Returns a single string containing all the text that was appended to the buffer so far. |