Package com.oracle.truffle.api.strings
Class TruffleString.CodePointIndexToByteIndexNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.CodePointIndexToByteIndexNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to convert a given codepoint index to a byte index. See
execute(AbstractTruffleString, int, int, TruffleString.Encoding)
for details.- Since:
- 22.1
-
Nested Class Summary
Nested classes/interfaces inherited from class com.oracle.truffle.api.nodes.Node
Node.Child, Node.Children
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
Create a newTruffleString.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 pointbyteOffset
.Get the uncached version ofTruffleString.CodePointIndexToByteIndexNode
.Methods inherited from class com.oracle.truffle.api.nodes.Node
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
-
Method Details
-
execute
public abstract int execute(AbstractTruffleString a, int byteOffset, int codepointIndex, TruffleString.Encoding expectedEncoding) Convert the given codepoint index to a byte index, relative to starting pointbyteOffset
.- Since:
- 22.1
-
create
Create a newTruffleString.CodePointIndexToByteIndexNode
.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.CodePointIndexToByteIndexNode
.- Since:
- 22.1
-