Class CharsRef
Represents char[], as a slice (offset + Length) into an existing char[].
The Chars property should never be null
; use
EMPTY_CHARS if necessary.
@lucene.internal
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public sealed class CharsRef : IComparable<CharsRef>, ICharSequence
Constructors
Name | Description |
---|---|
CharsRef() | Creates a new CharsRef initialized an empty array zero-Length |
CharsRef(Char[], Int32, Int32) | Creates a new CharsRef initialized with the given |
CharsRef(Int32) | Creates a new CharsRef initialized with an array of the given
|
CharsRef(String) | Creates a new CharsRef initialized with the given |
Fields
Name | Description |
---|---|
EMPTY_CHARS | An empty character array for convenience |
Properties
Name | Description |
---|---|
Chars | The contents of the CharsRef. Should never be |
Item[Int32] | |
Length | Length of used characters. |
Offset | Offset of first valid character. |
UTF16SortedAsUTF8Comparer |
Methods
Name | Description |
---|---|
Append(Char[], Int32, Int32) | Appends the given array to this CharsRef. |
CharsEquals(CharsRef) | |
Clone() | Returns a shallow clone of this instance (the underlying characters are not copied and will be shared by both the returned object and this object. |
CompareTo(CharsRef) | Signed |
CopyChars(CharsRef) | Copies the given CharsRef referenced content into this instance. |
CopyChars(Char[], Int32, Int32) | Copies the given array into this CharsRef. |
DeepCopyOf(CharsRef) | Creates a new CharsRef that points to a copy of the chars from
The returned CharsRef will have a Length of |
Equals(Object) | |
GetHashCode() | |
Grow(Int32) | Used to grow the reference array. In general this should not be used as it does not take the offset into account. @lucene.internal |
IsValid() | Performs internal consistency checks.
Always returns true (or throws |
SubSequence(Int32, Int32) | |
ToString() |