trovato!



LastDelimiter unit
Sysutils
category
string handling routines


declaration


function LastDelimiter(const Delimiters, S: string): integer;


description


Returns the index of the last occurence in a string of the characters cpecified.

If none of the characters in Delimiters appears in string S, function returns zero. Delimiters cannot be a multibyte string, and we cannot use #0 as one of the delimiters.

example


var s : string;
i : integer;

s:='http://delphi.about.com';
i:= LastDelimiter('.', s);
//i=20;



http://delphi.about.com/library/rtl/...sDelimiter.htm