mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
AK: Add the Utf8View::{contains, trim} helper methods
This commit is contained in:
parent
8ba0533138
commit
fea6d952a4
2 changed files with 44 additions and 0 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue