System.StrUtils.AnsiResemblesText

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

Delphi

function AnsiResemblesText(const AText, AOther: string): Boolean;

C++

extern DELPHI_PACKAGE bool __fastcall AnsiResemblesText(const System::UnicodeString AText, const System::UnicodeString AOther)/* overload */;

プロパティ

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

説明

2 つの文字列が似ているかどうかを示します。

AnsiResemblesText は,AText で指定の文字列が AOther で指定の文字列と「同じ」場合に true を返し,2 つの文字列が同じとみなされない場合に false を返します。

AnsiResemblesText が 2 つの文字列が似ていると判断するかどうかを制御するアルゴリズムは,AnsiResemblesProc 変数によって指定されます。デフォルトでは,AnsiResemblesProcSoundexProc に設定されています。これは,Soundex アルゴリズムを使用して,両方の文字列を音声による表現に変換し,その音声表現のうち最大 4 文字を比較します。AnsiResemblesProc に割り当てる関数を変更することにより,AnsiResemblesText が実行する比較の方法を変更できます。

関連項目