1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:17:45 +00:00

AK+LibRegex: Partially implement case insensitive UTF-16 comparison

This will work for ASCII code points. Unicode case folding will be
needed for non-ASCII.
This commit is contained in:
Timothy Flynn 2021-07-21 16:38:12 -04:00 committed by Linus Groh
parent 47f6bb38a1
commit 0e6375558d
3 changed files with 24 additions and 0 deletions

View file

@ -335,6 +335,11 @@ public:
[&](StringView other_view) { return view.equals_ignoring_case(other_view); },
[](auto&) -> bool { TODO(); });
},
[&](Utf16View view) {
return other.m_view.visit(
[&](Utf16View other_view) { return view.equals_ignoring_case(other_view); },
[](auto&) -> bool { TODO(); });
},
[](auto&) -> bool { TODO(); });
}