base.StringBuffer.trimLeft

Removes leading blank space (ASCII 32) characters.

Syntax

trimLeft()

Usage

The trimLeft() method removes the leading blank space characters in the string buffer.

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.trimLeft()
   DISPLAY "["||buf.toString()||"]"
END MAIN
Output:
[abc  ]