1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-18 21:35:06 +00:00

AK: Make Utf8View and Utf32View more consistent

This enables use of these classes in templated code.
This commit is contained in:
Tom 2020-10-20 09:47:34 -06:00 committed by Andreas Kling
parent 15642874f3
commit 6413acd78c
5 changed files with 89 additions and 4 deletions

View file

@ -77,7 +77,7 @@ public:
{
ASSERT(is_character());
Utf8View view(m_comment_or_character.data.string_view());
ASSERT(view.length_in_code_points() == 1);
ASSERT(view.length() == 1);
return *view.begin();
}