System.SysUtils.IsPathDelimiter

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IsPathDelimiter(const S: string; Index: Integer): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall IsPathDelimiter(const System::UnicodeString S, int Index)/* overload */;

Properties

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

Description

Indicates whether the character at a specified position in a string is a path delimiter.

Call IsPathDelimiter to determine whether a string contains a path delimiter character ('\' on Windows, '/' on Linux and Macintosh). Positions are numbered from 1.

When working with a Multi-Byte Character Set (MBCS), IsPathDelimiter distinguishes between a true delimiter character and the byte of the same value that can appear as the second byte of a double-byte character.

To test for more characters than just the delimiter, use IsDelimiter.

See Also