CharsRef

class CharsRef(var chars: CharArray, var offset: Int, len: Int) : Comparable<CharsRef> , CharSequence

Represents char[], as a slice (offset + length) into an existing char[]. The {@link #chars} member should never be null; use {@link #EMPTY_CHARS} if necessary.

Constructors

Link copied to clipboard
constructor(chars: CharArray, offset: Int, len: Int)
constructor()
constructor(capacity: Int)

Creates a CharsRef with an internal buffer of the given capacity and length=0.

constructor(s: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
open override var length: Int
Link copied to clipboard

Mutable length (Lucene API)

Link copied to clipboard
var offset: Int

Functions

Link copied to clipboard

Returns the Unicode code point at the specified index of this CharSequence.

Link copied to clipboard

Returns a stream of code point values from this sequence. Any surrogate pairs encountered in the sequence are combined as if by {@linkplain Character#toCodePoint Character.toCodePoint} and the result is passed to the stream. Any other code units, including ordinary BMP characters, unpaired surrogates, and undefined code units, are zero-extended to {@code int} values which are then passed to the stream.

Link copied to clipboard
open operator override fun compareTo(other: CharsRef): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(index: Int): Char
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun subSequence(startIndex: Int, endIndex: Int): CharSequence
Link copied to clipboard
open override fun toString(): String