From ba9313111fc5a6cdda6f85f6e33db9f83b9903c0 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sat, 15 Feb 2020 10:17:17 +1300 Subject: [PATCH] AK: Add StringBuilder::is_empty() --- AK/StringBuilder.h | 1 + 1 file changed, 1 insertion(+) diff --git a/AK/StringBuilder.h b/AK/StringBuilder.h index 1ffa801ddd3..7bbf8f70497 100644 --- a/AK/StringBuilder.h +++ b/AK/StringBuilder.h @@ -53,6 +53,7 @@ public: void clear(); size_t length() const { return m_length; } + bool is_empty() const { return m_length == 0; } void trim(size_t count) { m_length -= count; } private: