Substr.TrimLeft Method

function TrimLeft(const Src: Substring): Substring; overload;

Src without the characters <= ' ' at its start.

#NameTypeDescription
1SrcSubstring

Returns: Substring

Examples

Leading spaces removed.

uses Substr;

procedure Example;
begin
    Assert(TrimLeft(Substring('  a ')) = 'a ');
end;