base.StringBuffer.trimLeftWhiteSpace
Removes leading whitespace characters.
Syntax
trimLeftWhiteSpace() Usage
The trimLeftWhiteSpace() method removes the leading whitespace characters in the
string buffer.
Note: The method considers as whitespace characters all characters less than or equal to blank space
(
ASCII(32)). This includes tab (\t), newline
(\n), carriage-return (\r) and form-feed
(\f).Example
MAIN
DEFINE buf base.StringBuffer
LET buf = base.StringBuffer.create()
CALL buf.append("\n\t abc ")
CALL buf.trimLeftWhiteSpace()
DISPLAY "["||buf.toString()||"]"
END MAIN
Output:
[abc ]