Logo

Programming-Idioms

History of Idiom 97 > diff from v11 to v12

Edit summary for version 12 by :
New Pascal implementation by user [Bart]

Version 11

2016-01-02, 01:22:03

Version 12

2016-01-15, 15:39:52

Idiom #97 Check string suffix

Set boolean b to true if string s ends with suffix suffix, false otherwise.

Idiom #97 Check string suffix

Set boolean b to true if string s ends with suffix suffix, false otherwise.

Code
uses strutils;
begin
  b := AnsiEndsStr(suffix, s);
end.