Interface ICharSequence
This interface represents an ordered set of characters and defines the methods to probe them.
Namespace: Lucene.Net.Support
Assembly: Lucene.Net.dll
Syntax
public interface ICharSequence
Properties
| Improve this Doc View SourceItem[Int32]
Returns the character at the specified index, with the first character having index zero.
Declaration
char this[int index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | the index of the character to return. |
Property Value
Type | Description |
---|---|
System.Char | the requested character. |
Length
Returns the number of characters in this sequence.
Declaration
int Length { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceSubSequence(Int32, Int32)
Returns a ICharSequence from the start
index (inclusive)
to the end
index (exclusive) of this sequence.
Declaration
ICharSequence SubSequence(int start, int end)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | start | the start offset of the sub-sequence. It is inclusive, that is, the index of the first character that is included in the sub-sequence. |
System.Int32 | end | the end offset of the sub-sequence. It is exclusive, that is, the index of the first character after those that are included in the sub-sequence |
Returns
Type | Description |
---|---|
ICharSequence | the requested sub-sequence. |
ToString()
Returns a string with the same characters in the same order as in this sequence.
Declaration
string ToString()
Returns
Type | Description |
---|---|
System.String | a string based on this sequence. |