Delphi Programming RTL Reference|By Category|Alphabetically|By Unit
function LastDelimiter(const Delimiters, S: string): integer;
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.
var s : string;
i : integer;
s:='http://delphi.about.com';
i:= LastDelimiter('.', s);
//i=20;
|
String Types in Delphi
Understanding and managing string data types in Delphi's Object Pascal. Learn about differences between Short, Long, Wide and null-terminated strings.
IsDelimiter,
IsPathDelimiter
|
Free Delphi code snippet inside every Delphi Newsletter! |
|
|
|
Got some code to share? Got a question? Need some help? |
|
|