mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 23:30:20 +00:00
AK: Allow constructing Utf32 from a span of u32
This commit is contained in:
parent
94601e1ffd
commit
cf9693169c
Notes:
github-actions[bot]
2024-10-20 06:51:03 +00:00
Author: https://github.com/trflynn89
Commit: cf9693169c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1861
1 changed files with 5 additions and 0 deletions
|
@ -71,6 +71,11 @@ public:
|
||||||
VERIFY(code_points || length == 0);
|
VERIFY(code_points || length == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Utf32View(ReadonlySpan<u32> code_points)
|
||||||
|
: Utf32View(code_points.data(), code_points.size())
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
Utf32CodePointIterator begin() const
|
Utf32CodePointIterator begin() const
|
||||||
{
|
{
|
||||||
return { begin_ptr(), m_length };
|
return { begin_ptr(), m_length };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue