1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00

AK: Allow constructing Utf32 from a span of u32

This commit is contained in:
Timothy Flynn 2024-10-18 17:19:35 -04:00 committed by Andreas Kling
parent 94601e1ffd
commit cf9693169c
Notes: github-actions[bot] 2024-10-20 06:51:03 +00:00

View file

@ -71,6 +71,11 @@ public:
VERIFY(code_points || length == 0);
}
Utf32View(ReadonlySpan<u32> code_points)
: Utf32View(code_points.data(), code_points.size())
{
}
Utf32CodePointIterator begin() const
{
return { begin_ptr(), m_length };