public abstract static class TruffleString.LastByteIndexOfStringNode extends Node
TruffleString.LastIndexOfStringNode, but with byte indices.Node.Child, Node.Children| Modifier and Type | Method and Description |
|---|---|
static TruffleString.LastByteIndexOfStringNode |
create()
Create a new
TruffleString.LastByteIndexOfStringNode. |
int |
execute(AbstractTruffleString a,
AbstractTruffleString b,
int fromIndex,
int toIndex,
TruffleString.Encoding expectedEncoding)
TruffleString.LastIndexOfStringNode, but with byte indices. |
int |
execute(AbstractTruffleString a,
TruffleString.WithMask b,
int fromIndex,
int toIndex,
TruffleString.Encoding expectedEncoding)
TruffleString.LastIndexOfStringNode, but with byte indices. |
static TruffleString.LastByteIndexOfStringNode |
getUncached()
Get the uncached version of
TruffleString.LastByteIndexOfStringNode. |
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringpublic final int execute(AbstractTruffleString a, AbstractTruffleString b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding)
TruffleString.LastIndexOfStringNode, but with byte indices.public final int execute(AbstractTruffleString a, TruffleString.WithMask b, int fromIndex, int toIndex, TruffleString.Encoding expectedEncoding)
TruffleString.LastIndexOfStringNode, but with byte indices. This variant accepts a
TruffleString.WithMask as the search value b, which changes the searching
algorithm in the following manner: whenever the contents of a and b are
compared, the mask is OR'ed to a, as shown in this exemplary method:
boolean bytesEqualAt(TruffleString a, int byteIndexA, TruffleString.WithMask b, int byteIndexB) {
return (readByte(a, byteIndexA) | readByte(b.mask, byteIndexB)) == readByte(b, byteIndexB);
}
public static TruffleString.LastByteIndexOfStringNode create()
TruffleString.LastByteIndexOfStringNode.public static TruffleString.LastByteIndexOfStringNode getUncached()
TruffleString.LastByteIndexOfStringNode.