public abstract static class TruffleString.CodePointIndexToByteIndexNode extends Node
TruffleString.CodePointIndexToByteIndexNode.execute(AbstractTruffleString, int, int, TruffleString.Encoding)
for details.Node.Child, Node.Children
Modifier and Type | Method and Description |
---|---|
static TruffleString.CodePointIndexToByteIndexNode |
create()
Create a new
TruffleString.CodePointIndexToByteIndexNode . |
abstract int |
execute(AbstractTruffleString a,
int byteOffset,
int codepointIndex,
TruffleString.Encoding expectedEncoding)
Convert the given codepoint index to a byte index, relative to starting point
byteOffset . |
static TruffleString.CodePointIndexToByteIndexNode |
getUncached()
Get the uncached version of
TruffleString.CodePointIndexToByteIndexNode . |
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 codepointIndex, TruffleString.Encoding expectedEncoding)
byteOffset
.public static TruffleString.CodePointIndexToByteIndexNode create()
TruffleString.CodePointIndexToByteIndexNode
.public static TruffleString.CodePointIndexToByteIndexNode getUncached()
TruffleString.CodePointIndexToByteIndexNode
.