Package | Description |
---|---|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Method and Description |
---|---|
CharsRef |
CharsRef.clone() |
static CharsRef |
CharsRef.deepCopyOf(CharsRef other)
Creates a new CharsRef that points to a copy of the chars from
other
The returned CharsRef will have a length of other.length
and an offset of zero. |
Modifier and Type | Method and Description |
---|---|
static Comparator<CharsRef> |
CharsRef.getUTF16SortedAsUTF8Comparator() |
Modifier and Type | Method and Description |
---|---|
boolean |
CharsRef.charsEquals(CharsRef other) |
int |
CharsRef.compareTo(CharsRef other)
Signed int order comparison
|
void |
CharsRef.copyChars(CharsRef other)
Copies the given
CharsRef referenced content into this instance. |
static CharsRef |
CharsRef.deepCopyOf(CharsRef other)
Creates a new CharsRef that points to a copy of the chars from
other
The returned CharsRef will have a length of other.length
and an offset of zero. |
static void |
UnicodeUtil.UTF8toUTF16(byte[] utf8,
int offset,
int length,
CharsRef chars)
Interprets the given byte array as UTF-8 and converts to UTF-16.
|
static void |
UnicodeUtil.UTF8toUTF16(BytesRef bytesRef,
CharsRef chars)
Utility method for
UnicodeUtil.UTF8toUTF16(byte[], int, int, CharsRef) |