public endsWith(suffix as String) as Boolean:
Tests whether the current content ends with a suffix.
Pending chunks are inspected in reverse order without materializing the complete builder, so this operation remains cheap while text is streamed.
| Parameter | Description |
|---|---|
suffix | Suffix to test. |
true when the builder ends with suffix.
builder = StringBuilder("Klyn")
builder.append(" language")
assert builder.endsWith("language")