mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05: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
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