mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-21 09:41:53 +00:00
AK: Make Utf8View and Utf32View more consistent
This enables use of these classes in templated code.
This commit is contained in:
parent
15642874f3
commit
6413acd78c
Notes:
sideshowbarker
2024-07-19 01:49:13 +09:00
Author: https://github.com/tomuta
Commit: 6413acd78c
Pull-request: https://github.com/SerenityOS/serenity/pull/3808
Reviewed-by: https://github.com/awesomekling
5 changed files with 89 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue