System.StrUtils.AnsiMatchText

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

Delphi

function AnsiMatchText(const AText: string; const AValues: array of string): Boolean;

C++

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

プロパティ

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

説明

文字列の配列に指定された文字列と,大文字と小文字を区別せずに一致する文字列が含まれているかどうかを示します。

AnsiMatchText 関数を呼び出すと,AText で指定した文字列が,AValues に含まれる文字列のうちの 1 つと一致するかどうかを知ることができます。比較では,大文字と小文字を区別せず,現在のシステムロケールを使用します。

AText は,検索する文字列です。

AValues は,検索対象の文字列配列です。

メモ:  AValues_Size は,AValues 内の最後の要素のインデックスです(要素数より 1 だけ少ない)。

AnsiMatchText 関数は,AText(または大文字と小文字を区別せずに一致する文字列)が AValues にある場合は true を,一致する文字列が配列内にない場合は false を返します。

関連項目