Logo

Programming-Idioms

History of Idiom 97 > diff from v12 to v13

Edit summary for version 13 by :
[Pascal] imports: not in code. No begin/end

Version 12

2016-01-15, 15:39:52

Version 13

2016-01-21, 09:16:07

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.

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