EndsWith

From SCAR Divi Manual
Revision as of 13:57, 1 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function EndsWith(suffix, s: AnsiString): Boolean; </source> ==Availability== SCAR Divi 3.10 > Current ==Description== Return...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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