Overload List
| # | Signature | Description |
|---|---|---|
| 1 | class operator Equal(const L, R: Substring): Boolean; | s = t: ordinal equality by UTF-16 code unit, as string's; either operand may be a string. |
| 2 | class operator Equal(const L: Substring; const R: string): Boolean; | |
| 3 | class operator Equal(const L: string; const R: Substring): Boolean; |
Overload 1: class operator Equal(const L, R: Substring): Boolean;
s = t: ordinal equality by UTF-16 code unit, as string's; either operand may be a string.
Returns: Boolean
Examples
Comparing with a string.
uses Substr;
procedure Example;
begin
Assert(Substring('abc') = 'abc');
Assert(not (Substring('abc') = 'ABC'));
end;
Overload 2: class operator Equal(const L: Substring; const R: string): Boolean;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | L | Substring | |
| 2 | R | string |
Returns: Boolean
Overload 3: class operator Equal(const L: string; const R: Substring): Boolean;
| # | Name | Type | Description |
|---|---|---|---|
| 1 | L | string | |
| 2 | R | Substring |
Returns: Boolean