[Overview][Constants][Types][Procedures and functions] Reference for unit 'strutils' (#rtl)

SoundexCompare

Compare soundex values of 2 strings.

Declaration

Source position: line 0

function SoundexCompare(

  const AText: String;

  const AOther: String;

  ALength: TSoundexLength

):Integer;

function SoundexCompare(

  const AText: String;

  const AOther: String

):Integer;

Arguments

AText

  

First string.

AOther

  

Second string.

ALength

  

Length of soundexes to compare.

Function result

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

Arguments

AText

  

First string.

AOther

  

Second string.

Function result

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

Description

SoundexComparecomputes the soundex codes of ATextand AOtherand feeds these to CompareText. It will return -1 if the soundex code of ATextis less than the soundex code of AOther, 0 if they are equal, and 1 if the code of AOtheris larger than the code of AText.

Errors

None.

See also

Soundex

  

Compute the soundex of a string

SoundexInt

  

Soundex value as an integer.

SoundexProc

  

Default AnsiResemblesText implementation.

SoundexWord

  

Calculate a word-sized soundex value

SoundexSimilar

  

Check whether 2 strings have equal soundex values