Difference between revisions of "EndsWith"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> function EndsWith(suffix, s: AnsiString): Boolean; </source> ==Availability== SCAR Divi 3.10 > Current ==Description== Return...") |
|||
Line 8: | Line 8: | ||
==Description== | ==Description== | ||
− | Returns [[true]] if a given [[Ansistring|string]] '''s''' ends with a given string | + | Returns [[true]] if a given [[Ansistring|string]] '''s''' ends with a given string '''suffix'''. |
==Example== | ==Example== |
Latest 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