mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
AK: Add the Utf8View::{contains, trim} helper methods
This commit is contained in:
committed by
Linus Groh
parent
8ba0533138
commit
fea6d952a4
@@ -75,6 +75,9 @@ public:
|
||||
|
||||
bool is_empty() const { return m_string.is_empty(); }
|
||||
bool starts_with(const Utf8View&) const;
|
||||
bool contains(u32) const;
|
||||
|
||||
Utf8View trim(const Utf8View& characters, TrimMode mode = TrimMode::Both) const;
|
||||
|
||||
size_t iterator_offset(const Utf8CodePointIterator& it) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user