Skip to content

Commit 4495083

Browse files
committed
Add eqatic op for MoarVM to allow us to do testing
Is like eqat except it is case-insensitive.
1 parent 4c0f698 commit 4495083

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/ops.markdown

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,13 @@ and 1 if $r is greater than $l.
591591
Return 1 if the string `$haystack` has the string `$needle` at position `$pos`,
592592
or 0 otherwise.
593593

594+
## eqatic
595+
MoarVM only
596+
597+
* `eqatic(str haystack, str $needle, int $pos)`
598+
599+
Case insensitive version of eqat
600+
594601
## iseq
595602
* `iseq_i(int $l, int $r)`
596603
* `iseq_n(num $l, num $r)`

src/vm/moar/QAST/QASTOperationsMAST.nqp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2287,6 +2287,7 @@ QAST::MASTOperations.add_core_op('tclc', -> $qastcomp, $op {
22872287
});
22882288

22892289
QAST::MASTOperations.add_core_moarop_mapping('eqat', 'eqat_s');
2290+
QAST::MASTOperations.add_core_moarop_mapping('eqatic', 'eqatic_s');
22902291

22912292
QAST::MASTOperations.add_core_op('substr', -> $qastcomp, $op {
22922293
my @operands := $op.list;

0 commit comments

Comments
 (0)