mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +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:
parent
47f6bb38a1
commit
0e6375558d
Notes:
sideshowbarker
2024-07-18 08:26:28 +09:00
Author: https://github.com/trflynn89
Commit: 0e6375558d
Pull-request: https://github.com/SerenityOS/serenity/pull/8931
Reviewed-by: https://github.com/linusg ✅
3 changed files with 24 additions and 0 deletions
|
@ -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(); });
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue