RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
SysUtils.IsPathDelimiter Function

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

Pascal
function IsPathDelimiter(const S: string; Index: Integer): Boolean;
C++
Boolean IsPathDelimiter(const AnsiString S, int Index);

SysUtils

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) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!