From Appmethod Libraries
Jump to: navigation, search

Object Pascal

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


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


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


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 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