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

StringBuilderReverse

Reverses the contents of the StringBuilder buffer in place.

Method Signature

StringBuilderReverse(stringBuilder=[stringBuilder])

Arguments

Argument
Type
Required
Description
Default

stringBuilder

stringBuilder

true

The StringBuilder to reverse.

Examples

Reverse a StringBuilder in place

Reverses the buffer and returns the same instance.

sb = sb{'abc'};
stringBuilderReverse( sb );
writeOutput( sb.toString() );

Result: cba

Member usage

sb = sb{'abc'};
sb.reverse();
writeOutput( sb.toString() );

Result: cba

Last updated

Was this helpful?