RAD Studio VCL Reference
SysUtils.IsPathDelimiter Function

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

function IsPathDelimiter(const S: string; Index: Integer): Boolean; overload;
Boolean IsPathDelimiter(const AnsiString S, int Index);

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

When working with a multi-byte character system (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


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!