From 2db2b8b0efa519741ab52a0423ea5b67dd22abd6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 16 Apr 2020 20:22:54 +0200 Subject: [PATCH] AK: Add FlyString::is_empty() --- AK/FlyString.h | 1 + 1 file changed, 1 insertion(+) diff --git a/AK/FlyString.h b/AK/FlyString.h index b66ab76024..7985cf2dfd 100644 --- a/AK/FlyString.h +++ b/AK/FlyString.h @@ -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; }