Class Soundex
Utility class for performing soundex algorithm.
Inheritance
System.Object
Soundex
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Syncfusion.Text
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class Soundex
Constructors
Soundex()
Initializing the soundex object.
Declaration
public Soundex()
Methods
EditDistanceCompute(String, String)
Compute Levenshtein distance.
Declaration
public static int EditDistanceCompute(string s, string t)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | s | String 1 |
| System.String | t | String 2 |
Returns
| Type | Description |
|---|---|
| System.Int32 | Distance between the two strings. The larger the number, the bigger the difference. |
NextLetter(String)
Gets the next word from the alphabet list.
Declaration
public static string NextLetter(string aString)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | aString |
Returns
| Type |
|---|
| System.String |
ToSoundexCode(String)
Return the soundex code for a given string.
Declaration
public static string ToSoundexCode(string aString)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | aString |
Returns
| Type |
|---|
| System.String |