Class CompressedCodePointSet
java.lang.Object
com.oracle.truffle.regex.charset.CompressedCodePointSet
Compressed variant of
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 ]
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic CompressedCodePointSetcreate(ImmutableSortedListOfIntRanges cps, CompilationBuffer compilationBuffer) booleanlong[]getBitSet(int i) long[][]intgetHi(int i) intgetLo(int i) int[]booleanhasBitSet(int i) booleaninthashCode()intsize()toString()
-
Method Details
-
getRanges
public int[] getRanges() -
hasBitSets
public boolean hasBitSets() -
getBitSets
public long[][] getBitSets() -
getLo
public int getLo(int i) -
getHi
public int getHi(int i) -
size
public int size() -
hasBitSet
public boolean hasBitSet(int i) -
getBitSet
public long[] getBitSet(int i) -
create
public static CompressedCodePointSet create(ImmutableSortedListOfIntRanges cps, CompilationBuffer compilationBuffer) -
equals
-
hashCode
-
toString
-