LastDelimiter function
Return the last occurrence of a set of delimiters in a string.
Declaration
function LastDelimiter(const Delimiters: string; const S: string)
: SizeIntDescription
LastDelimiter returns the
last occurrence of any character in
the set
Delimiters in the string
S.Example: ex88
Program example88;
{ This program demonstrates the LastDelimiter function }
uses SysUtils;
begin
Writeln(LastDelimiter('\.:','c:\filename.ext'));
end.An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
