Class AbstractCaverphone
Encodes a string into a Caverphone value.
This is an algorithm created by the Caversham Project at the University of Otago. It implements the Caverphone 2.0 algorithm:
This class is immutable and thread-safe.
Implements
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: Lucene.Net.Analysis.Phonetic.Language
Assembly: Lucene.Net.Analysis.Phonetic.dll
Syntax
public abstract class AbstractCaverphone : IStringEncoder
Constructors
| Improve this Doc View SourceAbstractCaverphone()
Creates an instance of the Caverphone encoder
Declaration
public AbstractCaverphone()
Methods
| Improve this Doc View SourceEncode(String)
Declaration
public abstract string Encode(string source)
Parameters
Type | Name | Description |
---|---|---|
System.String | source |
Returns
Type | Description |
---|---|
System.String |
IsEncodeEqual(String, String)
Tests if the encodings of two strings are equal.
This method might be promoted to a new AbstractStringEncoder superclass.
Declaration
public virtual bool IsEncodeEqual(string str1, string str2)
Parameters
Type | Name | Description |
---|---|---|
System.String | str1 | First of two strings to compare. |
System.String | str2 | Second of two strings to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
|