org.freecompany.util.text

Interface UnicodeSequence

public interface UnicodeSequence extends CharSequence

Method Summary
intcodePointAt(int index)
Decodes the code point at the specified index in this sequence.
intcodePointCount()
Returns a count of the total number of Unicode code points in this character sequence.

Method Detail

codePointAt

public int codePointAt(int index)
Decodes the code point at the specified index in this sequence. This method throws an index of out bounds exception in the case of an invalid index. The valid range of arguments is zero to UnicodeSequence. If this sequence is zero length this method will always fail.

Parameters: index the index of the code point to decode and return.

Returns: the code point at the selected index.

codePointCount

public int codePointCount()
Returns a count of the total number of Unicode code points in this character sequence.

Returns: the number of code points.