Class StemmerUtil
Some commonly-used stemming functions
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Analysis.Util
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
public static class StemmerUtil
Methods
Delete(char[], int, int)
Delete a character in-place
Declaration
public static int Delete(char[] s, int pos, int len)
Parameters
Type | Name | Description |
---|---|---|
char[] | s | Input Buffer |
int | pos | Position of character to delete |
int | len | length of input buffer |
Returns
Type | Description |
---|---|
int | length of input buffer after deletion |
DeleteN(char[], int, int, int)
Delete n characters in-place
Declaration
public static int DeleteN(char[] s, int pos, int len, int nChars)
Parameters
Type | Name | Description |
---|---|---|
char[] | s | Input Buffer |
int | pos | Position of character to delete |
int | len | Length of input buffer |
int | nChars | number of characters to delete |
Returns
Type | Description |
---|---|
int | length of input buffer after deletion |
EndsWith(char[], int, 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 |
---|---|---|
char[] | s | Input Buffer |
int | len | length of input buffer |
char[] | suffix | Suffix string to test |
Returns
Type | Description |
---|---|
bool |
|
EndsWith(char[], int, 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 |
---|---|---|
char[] | s | Input Buffer |
int | len | length of input buffer |
string | suffix | Suffix string to test |
Returns
Type | Description |
---|---|
bool |
|
StartsWith(char[], int, 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 |
---|---|---|
char[] | s | Input Buffer |
int | len | length of input buffer |
string | prefix | Prefix string to test |
Returns
Type | Description |
---|---|
bool |
|