public final class CompressedCodePointSet extends Object
CodePointSet
. Stores clusters of small ranges as bit sets, if
possible. Every range in this set's sorted list of ranges may be associated to a bit set, which
stores the more "fine-grained" ranges inside the larger range.
Example:
Character set: [0x02, 0x04, 0x06, 0x1000, 0x1020-0x1030] Resulting compressed code point set: - ranges: [0x02-0x06, 0x1000, 0x1020-0x1030] - bit-sets: [[0x02, 0x04, 0x06], null, null ]
Modifier and Type | Method and Description |
---|---|
static CompressedCodePointSet |
create(ImmutableSortedListOfIntRanges cps,
CompilationBuffer compilationBuffer) |
boolean |
equals(Object obj) |
long[] |
getBitSet(int i) |
long[][] |
getBitSets() |
int |
getHi(int i) |
int |
getLo(int i) |
int[] |
getRanges() |
boolean |
hasBitSet(int i) |
boolean |
hasBitSets() |
int |
hashCode() |
int |
size() |
String |
toString() |
public int[] getRanges()
public boolean hasBitSets()
public long[][] getBitSets()
public int getLo(int i)
public int getHi(int i)
public int size()
public boolean hasBitSet(int i)
public long[] getBitSet(int i)
public static CompressedCodePointSet create(ImmutableSortedListOfIntRanges cps, CompilationBuffer compilationBuffer)