Overload List
| # | Signature | Description |
|---|---|---|
| 1 | class function Copy(const Str: Substr.Substring): Substr.Substring; overload; static; | The whole of Str as a Substring. |
| 2 | class function Copy(const Str: string): Substr.Substring; overload; static; |
Overload 1: class function Copy(const Str: Substr.Substring): Substr.Substring; overload; static;
The whole of Str as a Substring.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Str | Substr.Substring |
Returns: Substring - Of a Substring, its text as Mid returns it; of any other text kind, a copy.
Examples
A string copied in.
uses Substr;
procedure Example;
begin
Assert(Substring.Copy('abc') = 'abc');
end;
Overload 2: class function Copy(const Str: string): Substr.Substring; overload; static;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Str | string |
Returns: Substring