Difference between revisions of "EndsWith"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function EndsWith(suffix, s: AnsiString): Boolean; </source> ==Availability== SCAR Divi 3.10 > Current ==Description== Return...")
(No difference)

Revision as of 13:57, 1 July 2011

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