mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:07:34 +00:00
AK: Add FlyString::is_empty()
This commit is contained in:
parent
905519bc76
commit
2db2b8b0ef
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ public:
|
||||||
FlyString(const StringView&);
|
FlyString(const StringView&);
|
||||||
FlyString(const char*);
|
FlyString(const char*);
|
||||||
|
|
||||||
|
bool is_empty() const { return !m_impl || !m_impl->length(); }
|
||||||
bool is_null() const { return !m_impl; }
|
bool is_null() const { return !m_impl; }
|
||||||
|
|
||||||
bool operator==(const FlyString& other) const { return m_impl == other.m_impl; }
|
bool operator==(const FlyString& other) const { return m_impl == other.m_impl; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue