New to Telerik UI for WPFStart a free 30-day trial

Represents a class that implements the Double Metaphone algorithm for phonetic string matching.

Definition

Namespace:Telerik.Windows.Documents.Proofing

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
public class DoubleMetaphone

Inheritance: objectDoubleMetaphone

Constructors

C#
public DoubleMetaphone()

Fields

C#
protected int maxCodeLen

Methods

C#
protected char CharAt(string value, int index)
Parameters:valuestringindexintReturns:

char

C#
protected static bool Contains(string value, int start, int length, string[] criteria)
Parameters:valuestringstartintlengthintcriteriastring[]Returns:

bool

Encodes the specified input string using the Double Metaphone algorithm.

C#
public string Encode(string value, bool alternate)
Parameters:valuestring

The string to be encoded.

alternatebool

Specifies whether to use the alternate phonetic encoding.

Returns:

string

A string representing the phonetic encoding of the input.

Encodes the specified input string using the Double Metaphone algorithm.

C#
public string Encode(string value)
Parameters:valuestring

The string to be encoded.

Returns:

string

A string representing the phonetic encoding of the input using the Double Metaphone algorithm.