diff --git a/AK/Utf32View.h b/AK/Utf32View.h index 8009879c9c0..a8e4db153cf 100644 --- a/AK/Utf32View.h +++ b/AK/Utf32View.h @@ -109,6 +109,11 @@ public: return Utf32View(m_code_points + offset, length); } + Utf32View substring_view(size_t offset) const + { + return substring_view(offset, length() - offset); + } + private: u32 const* begin_ptr() const {