Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class Diff

    The Diff object generates a patch string.

    A patch string is actually a command to a stemmer telling it how to reduce a word to its root. For example, to reduce the word teacher to its root teach the patch string Db would be generated. This command tells the stemmer to delete the last 2 characters from the word teacher to reach the stem (the patch commands are applied starting from the last character in order to save

    Inheritance
    System.Object
    Diff
    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: Egothor.Stemmer
    Assembly: Lucene.Net.Analysis.Stempel.dll
    Syntax
    public class Diff

    Constructors

    | Improve this Doc View Source

    Diff()

    Constructor for the Diff object.

    Declaration
    public Diff()
    | Improve this Doc View Source

    Diff(Int32, Int32, Int32, Int32)

    Constructor for the Diff object

    Declaration
    public Diff(int ins, int del, int rep, int noop)
    Parameters
    Type Name Description
    System.Int32 ins

    Description of the Parameter

    System.Int32 del

    Description of the Parameter

    System.Int32 rep

    Description of the Parameter

    System.Int32 noop

    Description of the Parameter

    Methods

    | Improve this Doc View Source

    Apply(StringBuilder, String)

    Apply the given patch string diff to the given string dest

    Declaration
    public static void Apply(StringBuilder dest, string diff)
    Parameters
    Type Name Description
    System.Text.StringBuilder dest

    Destination string

    System.String diff

    Patch string

    | Improve this Doc View Source

    Exec(String, String)

    Construct a patch string that transforms a to b.

    Declaration
    public string Exec(string a, string b)
    Parameters
    Type Name Description
    System.String a

    1st string

    System.String b

    2nd string

    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.