System.AnsiStrings.LastDelimiter
Delphi
function LastDelimiter(const Delimiters, S: AnsiString): Integer;
C++
extern DELPHI_PACKAGE int __fastcall LastDelimiter(const System::AnsiString Delimiters, const System::AnsiString S)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.AnsiStrings.pas System.AnsiStrings.hpp |
System.AnsiStrings | System.AnsiStrings |
Description
Byte index of rightmost whole delimiter character.
LastDelimiter returns the byte index in S of the rightmost whole character that matches any character in the Delimiters parameter (except null (#0)). S may contain multibyte characters. Delimiters must contain only single byte, non-null characters.
For example, LastDelimiter('\.:', 'c:\filename.ext') returns 12.