1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 00:27:45 +00:00

AK: Add StringBuilder::is_empty()

This commit is contained in:
Shannon Booth 2020-02-15 10:17:17 +13:00 committed by Andreas Kling
parent 854f0b9e1a
commit ba9313111f

View file

@ -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: