function Trim(const Src: Substring): Substring; overload;
Src without the characters <= ' ' at both ends.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | Substring |
Returns: Substring - The part, as Mid returns it.
Examples
Spaces removed.
uses Substr;
procedure Example;
begin
Assert(Trim(Substring(' a ')) = 'a');
end;