Sign in Join
FPDoc Onlineexperiment

SoundexProc function

In unit StrUtils

Default AnsiResemblesText implementation.

Declaration

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

Arguments

AText

Second string.

AOther

First string.

Function result

0 if the soundexes are equal. Negative of the first is smaller as the second, positive otherwise.

Description

SoundexProc is the standard implementation for the AnsiResemblesText procedure: By default, AnsiResemblesProc is set to this function. It compares the soundex codes of AOther and AText and returns True if they are equal, or False if they are not.

Errors

None.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.