From 370ea9441cdadebd11bc2bb41240529258aab9ab Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Wed, 8 Nov 2023 10:12:34 -0500 Subject: [PATCH] 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. --- AK/Utf16View.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AK/Utf16View.h b/AK/Utf16View.h index ff7c23740a..ed40af7563 100644 --- a/AK/Utf16View.h +++ b/AK/Utf16View.h @@ -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);