AK: Add FlyString::is_empty()

This commit is contained in:
Andreas Kling 2020-04-16 20:22:54 +02:00
parent 905519bc76
commit 2db2b8b0ef
Notes: sideshowbarker 2024-07-19 07:32:34 +09:00

View file

@ -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; }