base.StringBuffer.trimRight

Removes trailing blank space (ASCII 32) characters.

Syntax

trimRight()

Usage

The trimRight() method removes the trailing blank space characters in the string buffer.

Note:

The method removes only blank space (ASCII(32)) characters. Characters tab (\t), newline (\n), carriage-return (\r) and form-feed (\f) are not removed.

Example

MAIN
   DEFINE buf base.StringBuffer
   LET buf = base.StringBuffer.create()
   CALL buf.append("  abc  ")
   CALL buf.trimRight()
   DISPLAY "["||buf.toString()||"]"
END MAIN
Output:
[  abc]