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:
Timothy Flynn 2023-11-08 10:12:34 -05:00 committed by Tim Flynn
parent 5e2b049de8
commit 370ea9441c

View file

@ -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);