StringCompare¶
String comparison.
Declaration¶
Sintaxe¶
StringCompare(expr left, cmpop op, expr right, ttype type, expr? value)
Argumentos¶
Argument Name |
Argument Description |
---|---|
|
left side of comparison operator |
|
right side of comparison operator |
|
table entry type |
|
expression value |
|
operand |
Valores de retorno¶
The return value is the expression that the StringCompare represents.
Descrição¶
StringCompare represents string comparison expression type. Comparisons are:
lexicographically less than, or less than equal to
lexicographically greater than, or greater than or equal to
Equal to
Not equal to
Tipos¶
Only accepts strings.
Exemplos¶
"aaa" > "bbb"
ASR:
(TranslationUnit
(SymbolTable
1
{
})
[(StringCompare
(StringConstant
"aaa"
(Character 1 3 () [])
)
Gt
(StringConstant
"bbb"
(Character 1 3 () [])
)
(Logical 4 [])
(LogicalConstant
.false.
(Logical 4 [])
)
)]
)