xHarbour Reference Documentation > Function Reference |
Converts a character string using the Soundex algorithm.
SoundEx( <cString> ) --> cSoundex
The functions returns a soundex string. It begins with a letter, followed by three digits.
SoundEx() converts a character string applying the Soundex algorithm. This algorithm compares letters according to their phonetic similarity, so that words with similar phonetics, but different spelling, may yield the same soundex string. This is used to detect misspelled words, or to index database fields by phonetic similarity.
Note that the Soundex algorithm works only with 7bit letters and is case insensitive. It is developed for the English language and may not work with other languages that use special characters in their alphabet.
See also: | DbSeek(), INDEX, OrdWildSeek(), SET SOFTSEEK |
Category: | Character functions , Conversion functions |
Source: | rtl\soundex.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
http://www.xHarbour.com