Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class StemmerUtil

    Some commonly-used stemming functions

    This is a Lucene.NET INTERNAL API, use at your own risk
    Inheritance
    System.Object
    StemmerUtil
    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.Util
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public static class StemmerUtil

    Methods

    | Improve this Doc View Source

    Delete(Char[], Int32, Int32)

    Delete a character in-place

    Declaration
    public static int Delete(char[] s, int pos, int len)
    Parameters
    Type Name Description
    System.Char[] s

    Input Buffer

    System.Int32 pos

    Position of character to delete

    System.Int32 len

    length of input buffer

    Returns
    Type Description
    System.Int32

    length of input buffer after deletion

    | Improve this Doc View Source

    DeleteN(Char[], Int32, Int32, Int32)

    Delete n characters in-place

    Declaration
    public static int DeleteN(char[] s, int pos, int len, int nChars)
    Parameters
    Type Name Description
    System.Char[] s

    Input Buffer

    System.Int32 pos

    Position of character to delete

    System.Int32 len

    Length of input buffer

    System.Int32 nChars

    number of characters to delete

    Returns
    Type Description
    System.Int32

    length of input buffer after deletion

    | Improve this Doc View Source

    EndsWith(Char[], Int32, Char[])

    Returns true if the character array ends with the suffix.

    Declaration
    public static bool EndsWith(char[] s, int len, char[] suffix)
    Parameters
    Type Name Description
    System.Char[] s

    Input Buffer

    System.Int32 len

    length of input buffer

    System.Char[] suffix

    Suffix string to test

    Returns
    Type Description
    System.Boolean

    true if s ends with suffix

    | Improve this Doc View Source

    EndsWith(Char[], Int32, String)

    Returns true if the character array ends with the suffix.

    Declaration
    public static bool EndsWith(char[] s, int len, string suffix)
    Parameters
    Type Name Description
    System.Char[] s

    Input Buffer

    System.Int32 len

    length of input buffer

    System.String suffix

    Suffix string to test

    Returns
    Type Description
    System.Boolean

    true if s ends with suffix

    | Improve this Doc View Source

    StartsWith(Char[], Int32, String)

    Returns true if the character array starts with the prefix.

    Declaration
    public static bool StartsWith(char[] s, int len, string prefix)
    Parameters
    Type Name Description
    System.Char[] s

    Input Buffer

    System.Int32 len

    length of input buffer

    System.String prefix

    Prefix string to test

    Returns
    Type Description
    System.Boolean

    true if s starts with prefix

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 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.