For the complete documentation index, see llms.txt. This page is also available as Markdown.

StringBuilderTrim

Strips leading and trailing whitespace from the buffer in place.

Method Signature

StringBuilderTrim(stringBuilder=[stringBuilder])

Arguments

Argument
Type
Required
Description
Default

stringBuilder

stringBuilder

true

The StringBuilder to trim.

Examples

Trim whitespace with stringBuilderTrim()

Trims leading and trailing whitespace in place and returns the same instance.

sb = sb{'  hello  '};
stringBuilderTrim( sb );
writeOutput( sb.toString() );

Result: hello

Member usage

sb = sb{'  hello  '};
sb.trim();
writeOutput( sb.toString() );

Result: hello

Last updated

Was this helpful?