mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Add FlyString::is_empty()
This commit is contained in:
parent
905519bc76
commit
2db2b8b0ef
Notes:
sideshowbarker
2024-07-19 07:32:34 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/2db2b8b0efa
1 changed files with 1 additions and 0 deletions
|
@ -37,6 +37,7 @@ public:
|
|||
FlyString(const StringView&);
|
||||
FlyString(const char*);
|
||||
|
||||
bool is_empty() const { return !m_impl || !m_impl->length(); }
|
||||
bool is_null() const { return !m_impl; }
|
||||
|
||||
bool operator==(const FlyString& other) const { return m_impl == other.m_impl; }
|
||||
|
|
Loading…
Reference in a new issue