klyn.StringBuilder.endsWith
method
public endsWith(suffix as String) as Boolean:
Description

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.

Parameters
ParameterDescription
suffixSuffix to test.
Returns

true when the builder ends with suffix.

Example
builder = StringBuilder("Klyn")
builder.append(" language")
assert builder.endsWith("language")