mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
AK: Define an alias for Utf16View's iterator type
Utf8View and Utf32View do so already. This allows using these views more readily in generic code.
This commit is contained in:
parent
5e2b049de8
commit
370ea9441c
Notes:
sideshowbarker
2024-07-17 05:02:35 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/370ea9441c Pull-request: https://github.com/SerenityOS/serenity/pull/21846 Reviewed-by: https://github.com/alimpfard ✅
1 changed files with 2 additions and 0 deletions
|
@ -57,6 +57,8 @@ private:
|
|||
|
||||
class Utf16View {
|
||||
public:
|
||||
using Iterator = Utf16CodePointIterator;
|
||||
|
||||
static bool is_high_surrogate(u16);
|
||||
static bool is_low_surrogate(u16);
|
||||
static u32 decode_surrogate_pair(u16 high_surrogate, u16 low_surrogate);
|
||||
|
|
Loading…
Add table
Reference in a new issue