EndsWith

From SCAR Divi Manual
Jump to: navigation, search

Definition

function EndsWith(suffix, s: AnsiString): Boolean;

Availability

SCAR Divi 3.10 > Current

Description

Returns true if a given string s ends with a given string suffix.

Example

begin
  WriteLn(EndsWith('World!', 'Hello World!'));
  WriteLn(EndsWith('Hello', 'Hello World!'));
end.

Output:

1
0

See Also