xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

SoundEx()

Converts a character string using the Soundex algorithm.

Syntax

SoundEx( <cString> ) --> cSoundex

Arguments

<cString>
This is a character string to convert.

Return

The functions returns a soundex string. It begins with a letter, followed by three digits.

Description

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.

Info

See also:DbSeek(), INDEX, OrdWildSeek(), SET SOFTSEEK
Category: Character functions , Conversion functions
Source:rtl\soundex.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe