System.AnsiStrings.AnsiMatchStr

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

Delphi

function AnsiMatchStr(const AText: AnsiString; const AValues: array of AnsiString): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall AnsiMatchStr(const System::AnsiString AText, System::AnsiString const *AValues, const int AValues_High)/* overload */;

プロパティ

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

説明

文字列が文字列配列に含まれているかどうかを、大文字/小文字を区別して判定します。

AnsiMatchStr は、一致する文字列が文字列配列に見つかった場合は true を返します。一致する文字列が見つからない場合、この関数は false を返します。

AnsiSameStr の場合と同様に、文字列の比較は大文字/小文字を区別して行われ、現在のユーザー ロケールで制御されます。

大文字/小文字を区別せずに比較を行う場合は、AnsiMatchText を使用します。

関連項目