|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.id.pbw.hyfo.unicode.CodepointArrays
public class CodepointArrays
Static methods for manipulating arrays of codepoints.
| Field Summary | |
|---|---|
static int |
CODEPTS
The index of the array of codepoints within the int[][]
returned by to_codepoint_arrays(java.lang.CharSequence). |
static int |
INDICES
The index of the array of offsets within the int[][]
returned by to_codepoint_arrays(java.lang.CharSequence). |
| Method Summary | |
|---|---|
static int[][] |
to_codepoint_arrays(CharSequence seq)
Returns a two-dimensional array corresponding to the CharSequence
argument. |
static int[][] |
to_codepoint_arrays(CharSequence seq,
int start,
int past_end)
Returns a two-dimensional array corresponding to the specified range of the CharSequence argument. |
static int[] |
to_codepoints(CharSequence seq)
Returns an array of codepoints (ints) from the given CharSequence. |
static int[] |
to_codepoints(CharSequence seq,
int start,
int past_end)
Returns an array of codepoints (ints) from the given CharSequence,
starting from position start, and ending at the position immediately
preceding past_end. |
static String |
to_string(int[] codepoints)
Returns a String constructed from the given array of codepoints. |
static String |
to_string(int[] codepoints,
int start,
int length)
Returns a String constructed from the given array of codepoints,
starting at offset start with number of codepoints length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CODEPTS
int[][]
returned by to_codepoint_arrays(java.lang.CharSequence).
public static final int INDICES
int[][]
returned by to_codepoint_arrays(java.lang.CharSequence).
| Method Detail |
|---|
public static int[] to_codepoints(CharSequence seq)
CharSequence.
seq - the source CharSequence.
int.
public static int[] to_codepoints(CharSequence seq,
int start,
int past_end)
CharSequence,
starting from position start, and ending at the position immediately
preceding past_end.
seq - the source CharSequence.start - the start position.past_end - the position of the last element + 1.
int.public static int[][] to_codepoint_arrays(CharSequence seq)
CharSequence
argument. The sub-array at offset CODEPTS is an array of
int containing the Unicode codepoints corresponding to the
argument. The sub-array at offset INDICES is an array of
offsets into the original CharSequence indicating the first
character from which the corresponding codepoint in the parallel
array was derived.
Because a codepoint may correspond to a pair of surrogates, there is not
necessarily a one-to-one corresponence between char and codepoint.
seq - the original sequence of char.
public static int[][] to_codepoint_arrays(CharSequence seq,
int start,
int past_end)
CharSequence argument. The sub-array at offset CODEPTS is an array of int containing the Unicode
codepoints corresponding to the argument. The sub-array at offset INDICES is an array of offsets into the original CharSequence indicating the first character from which the corresponding
codepoint in the parallel array was derived.
Because a codepoint may correspond to a pair of surrogates, there is not
necessarily a one-to-one corresponence between char and codepoint.
seq - the original sequence of char.start - the index of the start of the sub-sequence.past_end - the index of the last character of the sub-sequence + 1.
public static String to_string(int[] codepoints)
String constructed from the given array of codepoints.
codepoints - the array of codepoints.
String.
public static String to_string(int[] codepoints,
int start,
int length)
String constructed from the given array of codepoints,
starting at offset start with number of codepoints length.
codepoints - the array of codepoints.start - the position of the first codepoint to use.length - the number of codepoints to use.
String.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||