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));
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.StrUtils.pas System.StrUtils.hpp |
System.StrUtils | System.StrUtils |
Description
Indicates whether two strings are similar.
SoundexSimilar returns true if the string specified by AText is "similar" to the string specified by AOther, or false if the two strings are not sufficiently similar.
SoundexSimilar uses a Soundex algorithm to convert both strings into a phonetic representation where each character of the resulting string represents one of six families of similar phonemes. It then compares up to ALength digits in the resulting representation, returning true if they are all the same and false if they are not.