Class TruffleString.CompareIntsUTF32Node
java.lang.Object
com.oracle.truffle.api.nodes.Node
com.oracle.truffle.api.strings.TruffleString.CompareIntsUTF32Node
- All Implemented Interfaces:
NodeInterface, Cloneable
- Enclosing class:
TruffleString
Node to compare two UTF-32 strings. See
execute(AbstractTruffleString, AbstractTruffleString) for details.- Since:
- 22.1
-
Nested Class Summary
Nested classes/interfaces inherited from class Node
Node.Child, Node.Children -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a newTruffleString.CompareIntsUTF32Node.abstract intCompare UTF-32 stringsaandbint-by-int.Get the uncached version ofTruffleString.CompareIntsUTF32Node.Methods inherited from class 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
Compare UTF-32 stringsaandbint-by-int. Returns zero ifaandbare equal. Ifais equal tobup to its length, butbis longer thana, a negative value is returned. In the inverse case, a positive value is returned. Otherwise, elementsa[i]andb[i]at an indexiare different. Ifa[i]is greater thanb[i], a positive value is returned, otherwise a negative value is returned.- Since:
- 22.1
-
create
Create a newTruffleString.CompareIntsUTF32Node.- Since:
- 22.1
-
getUncached
Get the uncached version ofTruffleString.CompareIntsUTF32Node.- Since:
- 22.1
-