trimLeft

trimLeft(): StringUtf8;

The trimLeft method of the StringUtf8 primitive type returns a copy of the receiving string with leading blanks (spaces) removed.

The following example shows the use of the trimLeft method.

vars
    str8 : StringUtf8;
begin
    str8 := '     some text     ';
    write str8.trimLeft;            // Outputs 'some text     '
end;