Package com.oracle.truffle.api.strings
Class TruffleString.ByteIndexToCodePointIndexNode
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.ByteIndexToCodePointIndexNode
- All Implemented Interfaces:
NodeInterface
,Cloneable
- Enclosing class:
TruffleString
Node to convert a given byte index to a codepoint index. See
execute(AbstractTruffleString, int, int, TruffleString.Encoding)
for details.- Since:
- 22.2
-
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.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 pointbyteOffset
.Get the uncached version ofTruffleString.ByteIndexToCodePointIndexNode
.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, reportReplace, toString
-
Method Details
-
execute
public abstract int execute(AbstractTruffleString a, int byteOffset, int byteIndex, TruffleString.Encoding expectedEncoding) Convert the given byte index to a codepoint index, relative to starting pointbyteOffset
.- Since:
- 22.2
-
create
Create a newTruffleString.ByteIndexToCodePointIndexNode
.- Since:
- 22.2
-
getUncached
Get the uncached version ofTruffleString.ByteIndexToCodePointIndexNode
.- Since:
- 22.2
-