public abstract static class TruffleString.ByteIndexToCodePointIndexNode extends Node
TruffleString.ByteIndexToCodePointIndexNode.execute(AbstractTruffleString, int, int, TruffleString.Encoding)
for details.Node.Child, Node.Children
Modifier and Type | Method and Description |
---|---|
static TruffleString.ByteIndexToCodePointIndexNode |
create()
Create a new
TruffleString.ByteIndexToCodePointIndexNode . |
abstract int |
execute(AbstractTruffleString a,
int byteOffset,
int byteIndex,
TruffleString.Encoding expectedEncoding)
Convert the given byte index to a codepoint index, relative to starting point
byteOffset . |
static TruffleString.ByteIndexToCodePointIndexNode |
getUncached()
Get the uncached version of
TruffleString.ByteIndexToCodePointIndexNode . |
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toString
public abstract int execute(AbstractTruffleString a, int byteOffset, int byteIndex, TruffleString.Encoding expectedEncoding)
byteOffset
.public static TruffleString.ByteIndexToCodePointIndexNode create()
TruffleString.ByteIndexToCodePointIndexNode
.public static TruffleString.ByteIndexToCodePointIndexNode getUncached()
TruffleString.ByteIndexToCodePointIndexNode
.