function TrimRight(const Src: Substring): Substring; overload;
Src without the characters <= ' ' at its end.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Src | Substring |
Returns: Substring
Examples
Trailing spaces removed.
uses Substr;
procedure Example;
begin
Assert(TrimRight(Substring(' a ')) = ' a');
end;