public static final class TruffleString.CodePointSet extends Object
TruffleString.ByteIndexOfCodePointSetNode.execute(AbstractTruffleString, int, int, TruffleString.CodePointSet).
|Modifier and Type||Method and Description|
Creates a new
public static TruffleString.CodePointSet fromRanges(int ranges, TruffleString.Encoding encoding)
TruffleString.CodePointSetfrom the given list of ranges. This operation is expensive, it is recommended to cache the result.
ranges- a sorted list of non-adjacent codepoint ranges. For every two consecutive array elements, the first is interpreted as the range's inclusive lower bound, and the second element is the range's inclusive upper bound. Example: an array
[1, 4, 8, 10]represents the inclusive ranges
public boolean isIntrinsicCandidate(TruffleString.CodeRange codeRange)
TruffleString.ByteIndexOfCodePointSetNodemay implement the search for this particular code point set in strings with the given code range by dispatching to a compiler intrinsic.