Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change MVM_string_equal_at_ignore_case to use fc
  • Loading branch information
MasterDuke17 committed Feb 23, 2017
1 parent b0dc2bf commit ab426c1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/strings/ops.c
Expand Up @@ -573,15 +573,15 @@ MVMint64 MVM_string_equal_at(MVMThreadContext *tc, MVMString *a, MVMString *b, M
}

MVMint64 MVM_string_equal_at_ignore_case(MVMThreadContext *tc, MVMString *a, MVMString *b, MVMint64 offset) {
MVMString *lca;
MVMString *lcb;
MVMString *fca;
MVMString *fcb;
MVMROOT(tc, b, {
lca = MVM_string_lc(tc, a);
MVMROOT(tc, lca, {
lcb = MVM_string_lc(tc, b);
fca = MVM_string_fc(tc, a);
MVMROOT(tc, fca, {
fcb = MVM_string_fc(tc, b);
});
});
return MVM_string_equal_at(tc, lca, lcb, offset);
return MVM_string_equal_at(tc, fca, fcb, offset);
}

MVMGrapheme32 MVM_string_ord_at(MVMThreadContext *tc, MVMString *s, MVMint64 offset) {
Expand Down

0 comments on commit ab426c1

Please sign in to comment.