Show / Hide Table of Contents

    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.

    See Wikipedia - Caverphone

    Inheritance
    System.Object
    AbstractCaverphone
    Caverphone1
    Caverphone2
    Implements
    IStringEncoder
    Namespace: Lucene.Net.Analysis.Phonetic.Language
    Assembly: Lucene.Net.Analysis.Phonetic.dll
    Syntax
    public abstract class AbstractCaverphone : object, IStringEncoder

    Constructors

    | Improve this Doc View Source

    AbstractCaverphone()

    Creates an instance of the Caverphone encoder

    Declaration
    public AbstractCaverphone()

    Methods

    | Improve this Doc View Source

    Encode(String)

    Declaration
    public abstract string Encode(string source)
    Parameters
    Type Name Description
    System.String source
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    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

    true if the encodings of these strings are identical, false otherwise.

    Implements

    IStringEncoder
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)