mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
AK: Add StringBuilder::is_empty()
This commit is contained in:
parent
854f0b9e1a
commit
ba9313111f
Notes:
sideshowbarker
2024-07-19 09:09:31 +09:00
Author: https://github.com/shannonbooth Commit: https://github.com/SerenityOS/serenity/commit/ba9313111fc Pull-request: https://github.com/SerenityOS/serenity/pull/1214 Reviewed-by: https://github.com/awesomekling Reviewed-by: https://github.com/bugaevc Reviewed-by: https://github.com/willmcpherson2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user