public class StemmerUtil extends Object
Modifier and Type | Method and Description |
---|---|
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.
|
public static boolean startsWith(char[] s, int len, String prefix)
s
- Input Bufferlen
- length of input bufferprefix
- Prefix string to tests
starts with prefix
public static boolean endsWith(char[] s, int len, String suffix)
s
- Input Bufferlen
- length of input buffersuffix
- Suffix string to tests
ends with suffix
public static boolean endsWith(char[] s, int len, char[] suffix)
s
- Input Bufferlen
- length of input buffersuffix
- Suffix string to tests
ends with suffix
public static int delete(char[] s, int pos, int len)
s
- Input Bufferpos
- Position of character to deletelen
- length of input bufferpublic 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 deleteCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.