mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 04:54:58 +00:00
AK: Add a Utf32View::substring_view overload to take only an offset
This is for convenience, and matches our other UTF-N views.
This commit is contained in:
parent
beba05471c
commit
4aee4e80bd
1 changed files with 5 additions and 0 deletions
|
@ -109,6 +109,11 @@ public:
|
||||||
return Utf32View(m_code_points + offset, length);
|
return Utf32View(m_code_points + offset, length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Utf32View substring_view(size_t offset) const
|
||||||
|
{
|
||||||
|
return substring_view(offset, length() - offset);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
u32 const* begin_ptr() const
|
u32 const* begin_ptr() const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue