Method CodePointAt
CodePointAt(String, Int32)
Returns the code point at the given index of the ICharSequence.
Depending on the LuceneVersion passed to
GetInstance(LuceneVersion) this method mimics the behavior
of Character.CodePointAt(char[], int)
as it would have been
available on a Java 1.4 JVM or on a later virtual machine version.
Declaration
public abstract int CodePointAt(string seq, int offset)
Parameters
Type | Name | Description |
---|---|---|
System.String | seq | a character sequence |
System.Int32 | offset | the offset to the char values in the chars array to be converted |
Returns
Type | Description |
---|---|
System.Int32 | the Unicode code point at the given index |
Exceptions
Type | Condition |
---|---|
System.NullReferenceException |
|
System.IndexOutOfRangeException |
|
CodePointAt(ICharSequence, Int32)
Declaration
public abstract int CodePointAt(ICharSequence seq, int offset)
Parameters
Type | Name | Description |
---|---|---|
ICharSequence | seq | |
System.Int32 | offset |
Returns
Type | Description |
---|---|
System.Int32 |
CodePointAt(Char[], Int32, Int32)
Returns the code point at the given index of the char array where only elements
with index less than the limit are used.
Depending on the LuceneVersion passed to
GetInstance(LuceneVersion) this method mimics the behavior
of Character.CodePointAt(char[], int)
as it would have been
available on a Java 1.4 JVM or on a later virtual machine version.
Declaration
public abstract int CodePointAt(char[] chars, int offset, int limit)
Parameters
Type | Name | Description |
---|---|---|
System.Char[] | chars | a character array |
System.Int32 | offset | the offset to the char values in the chars array to be converted |
System.Int32 | limit | the index afer the last element that should be used to calculate codepoint. |
Returns
Type | Description |
---|---|
System.Int32 | the Unicode code point at the given index |
Exceptions
Type | Condition |
---|---|
System.NullReferenceException |
|
System.IndexOutOfRangeException |
|