Show: Delphi C++
Display Preferences

System.SysUtils.LastDelimiter

From XE2 API Documentation
Jump to: navigation, search

Delphi

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

C++

extern PACKAGE int __fastcall LastDelimiter(const System::UnicodeString Delimiters, const System::UnicodeString S)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils

Description

Returns the index of the last character that matches any character in a specified set of delimiters.

Call LastDelimiter to locate the last delimiter in a specified string.

Delimiters is a string where each character is a valid delimiter.

S is the string to search for delimiters.

For example, the line:

MyIndex := LastDelimiter('\.:','c:\filename.ext'); { Delphi }
MyIndex = LastDelimiter("\\.:","c:\\filename.ext"); /* C++ */

sets the MyIndex variable to 12.

See Also

Personal tools
Previous Versions
Translations