System.SysUtils.IsDelimiter

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

Delphi

function IsDelimiter(const Delimiters, S: string; Index: Integer): Boolean;

C++

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

プロパティ

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

説明

文字列内の指定された文字が区切り文字のセットの 1 つと一致するかどうかを示します。

IsDelimiter 関数を呼び出すと,文字列 S のバイトオフセット Index にある文字が文字列 Delimiters の区切り文字の 1 つであるかどうかがわかります。Index はバイトを指定するインデックスで,1 は文字列の最初のバイト,2 は 2 番めのバイトを示します。

マルチバイト文字セット(MBCS)の場合,IsDelimiter は指定されたバイトが 2 バイト文字の一部でないことをチェックします。なお,Delimiters パラメータの区切り文字に 2 バイト文字を使用することはできません。

関連項目