Substring.LessThanOrEqual Operator

Overload List

#SignatureDescription
1class operator LessThanOrEqual(const L, R: Substring): Boolean;s <= t: ordinal order, as string's; either operand may be a string.
2class operator LessThanOrEqual(const L: Substring; const R: string): Boolean;
3class operator LessThanOrEqual(const L: string; const R: Substring): Boolean;

Overload 1: class operator LessThanOrEqual(const L, R: Substring): Boolean;

s <= t: ordinal order, as string's; either operand may be a string.

#NameTypeDescription
1LSubstring
2RSubstring

Returns: Boolean

Examples

Equal texts are not less, but less or equal.

uses Substr;

procedure Example;
begin
    Assert(Substring('ab') <= 'ab');
end;

Overload 2: class operator LessThanOrEqual(const L: Substring; const R: string): Boolean;

#NameTypeDescription
1LSubstring
2Rstring

Returns: Boolean

Overload 3: class operator LessThanOrEqual(const L: string; const R: Substring): Boolean;

#NameTypeDescription
1Lstring
2RSubstring

Returns: Boolean