System.SysUtils.IsPathDelimiter

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

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

C++

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

プロパティ

種類 可視性 ソース ユニット
function public
System.SysUtils.pas
System.SysUtils.hpp
System.SysUtils System.SysUtils


説明

文字列内の指定位置にある文字がパス区切り記号かどうかを示します。

IsPathDelimiter を呼び出すと、文字列がパス区切り文字(Windows での '\'、Linux や Macintosh での '/')を含んでいるかどうかを判断できます。位置は 1 を起点に番号付けされます。

マルチバイト文字セット(MBCS)を扱う場合、IsPathDelimiter では、2 バイト文字の第 2 バイトに区切り記号文字と同じ値のバイトが現れても、それと真の区切り記号文字を区別します。

区切り記号以外の文字についても検査する場合は、IsDelimiter を使用します。

関連項目