From RAD Studio API Documentation
Jump to: navigation, search


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


extern DELPHI_PACKAGE bool __fastcall SoundexProc(const System::UnicodeString AText, const System::UnicodeString AOther);


Type Visibility Source Unit Parent
function public
System.StrUtils System.StrUtils


Indicates whether two strings are similar.

SoundexProc 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. SoundexProc is the default value of the AnsiResemblesProc variable, which provides the underlying implementation of AnsiResemblesText.

SoundexProc 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 4 digits in the resulting representation, returning true if they are all the same and false if they are not.

Note: SoundexProc is the same as the SoundexSimilar function using an ALength value of 4.

See Also