Class StemmerUtil
Some commonly-used stemming functions
Inheritance
Inherited Members
Namespace: Lucene.Net.Analysis.Util
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public static class StemmerUtilMethods
| Improve this Doc View SourceDelete(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 | 
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 | 
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 | 
 | 
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 | 
 | 
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 | 
 |