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