|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.analysis.util.StemmerUtil
public class StemmerUtil
Some commonly-used stemming functions
Constructor Summary | |
---|---|
StemmerUtil()
|
Method Summary | |
---|---|
static int |
delete(char[] s,
int pos,
int len)
Delete a character in-place |
static int |
deleteN(char[] s,
int pos,
int len,
int nChars)
Delete n characters in-place |
static boolean |
endsWith(char[] s,
int len,
char[] suffix)
Returns true if the character array ends with the suffix. |
static boolean |
endsWith(char[] s,
int len,
String suffix)
Returns true if the character array ends with the suffix. |
static boolean |
startsWith(char[] s,
int len,
String prefix)
Returns true if the character array starts with the suffix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StemmerUtil()
Method Detail |
---|
public static boolean startsWith(char[] s, int len, String prefix)
s
- Input Bufferlen
- length of input bufferprefix
- Prefix string to test
s
starts with prefix
public static boolean endsWith(char[] s, int len, String suffix)
s
- Input Bufferlen
- length of input buffersuffix
- Suffix string to test
s
ends with suffix
public static boolean endsWith(char[] s, int len, char[] suffix)
s
- Input Bufferlen
- length of input buffersuffix
- Suffix string to test
s
ends with suffix
public static int delete(char[] s, int pos, int len)
s
- Input Bufferpos
- Position of character to deletelen
- length of input buffer
public static int deleteN(char[] s, int pos, int len, int nChars)
s
- Input Bufferpos
- Position of character to deletelen
- Length of input buffernChars
- number of characters to delete
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |