Class
DoubleMetaphone

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:

cs-api-definition
public class DoubleMetaphone

Inheritance: objectDoubleMetaphone

Constructors

DoubleMetaphone()

Declaration

cs-api-definition
public DoubleMetaphone()

Fields

maxCodeLen

Declaration

cs-api-definition
protected int maxCodeLen

Field Value

int

Methods

CharAt(string, int)

Declaration

cs-api-definition
protected char CharAt(string value, int index)

Parameters

value

string

index

int

Returns

char

Contains(string, int, int, string[])

Declaration

cs-api-definition
protected static bool Contains(string value, int start, int length, string[] criteria)

Parameters

value

string

start

int

length

int

criteria

string[]

Returns

bool

Encode(string)

Encodes the specified input string using the Double Metaphone algorithm.

Declaration

cs-api-definition
public string Encode(string value)

Parameters

value

string

The string to be encoded.

Returns

string

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

Encode(string, bool)

Encodes the specified input string using the Double Metaphone algorithm.

Declaration

cs-api-definition
public string Encode(string value, bool alternate)

Parameters

value

string

The string to be encoded.

alternate

bool

Specifies whether to use the alternate phonetic encoding.

Returns

string

A string representing the phonetic encoding of the input.