DecodeSoundexInt is a function that translates the representative integer value of a Soundex encoded string AValue, into the corresponding phonetic string.

A Soundex representation of a string is a phonetic encoding where each character of the Soundex representation represents a family of similar phonemes. Please also refer to the function Soundex.

The integer value AValue is the result out of the SoundexInt function. This function can be reviewed at SoundexInt.

Declaration: Function DecodeSoundexInt( AValue : Integer) : string;

Examples follow.

procedure ScriptEvent (var Value : variant);
var
ResString : string;
begin
LogInfo('');
ResString := DecodeSoundexInt(333133613);
LogInfo('Mcgillicuddy(8) 333133613 is '+ResString);
ResString := DecodeSoundexInt(971240);
LogInfo('Mcgillicuddy(5) 971240 is '+ResString);
ResString := DecodeSoundexInt(474116903);
LogInfo('Romano-Wickham(8) 474116903 is '+ResString);
ResString := DecodeSoundexInt(1382270);
LogInfo('Romano-Wickham(5) 1382270 is '+ResString);
ResString := DecodeSoundexInt(469882817);
LogInfo('Robinson Crusoe(8) 469882817 is '+ResString);
ResString := DecodeSoundexInt(1369922);
LogInfo('Robinson Crusoe(5) 1369922 is '+ResString);
ResString := DecodeSoundexInt(418452119);
LogInfo('Pumpkin(8) 418452119 is '+ResString);
ResString := DecodeSoundexInt(1219982);
LogInfo('Pumpkin(5) 1219982 is '+ResString);
LogInfo('');
end;