Package it.unive.lisa.symbolic.value.operator.ternary
-
Interface Summary Interface Description TernaryOperator A ternaryOperator
that can be applied to threeSymbolicExpression
. -
Class Summary Class Description StringReplace Given three expressions that all evaluate to string values, aTernaryExpression
using this operator computes a new string corresponding to the first argument's string where all occurrences of the second argument's string have been replaced with the third argument's string.
Note that: if the first argument's string is empty, the empty string is returned if the second argument's string is empty, the third argument's string is added in any position of the first argument's string if the third argument's string is empty, occurrences of the second argument's string are simply removed from the first argument's string
First argument expression type:StringType
Second argument expression type:StringType
Third argument expression type:StringType
Computed expression type:StringType
StringSubstring Given three expressions, with the first one evaluating to a string value and the second and third one evaluating to integral numerical values, aTernaryExpression
using this operator computes a new string corresponding to the portion of first argument's string starting at the second argument's number position (inclusive) and ending at the third argument's number position (exclusive).
Note that: both second and third argument's numbers must be non-negative and less than the length of the first argument's string, with the second one's less or equal than the third one's if the second and third argument's numbers are equal, the empty string is returned
First argument expression type:StringType
Second argument expression type:NumericType
Third argument expression type:NumericType
Computed expression type:StringType