System.StrUtils.SoundexSimilar
Delphi
function SoundexSimilar(const AText, AOther: string; ALength: TSoundexLength): Boolean;
C++
extern DELPHI_PACKAGE bool __fastcall SoundexSimilar(const System::UnicodeString AText, const System::UnicodeString AOther, TSoundexLength ALength = (TSoundexLength)(0x4));
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.StrUtils.pas System.StrUtils.hpp |
System.StrUtils | System.StrUtils |
説明
2 つの文字列が似ているかどうかを示します。
SoundexSimilar は,AText で指定の文字列が AOther で指定の文字列と「同じ」場合に true を返し,2 つの文字列が同じとみなされない場合に false を返します。
SoundexSimilar 関数は,Soundex アルゴリズムを使用して,両方の文字列を音声表現に変換します。この音声表現では,各文字が,類似した音素の 6 つのファミリーのうちの 1 つを表します。その後,SoundexProc 関数は,音声表現のうち最大 ALength 桁を比較し,まったく同じである場合は true を,同じでない場合は false を返します。