summaryrefslogtreecommitdiff
path: root/src/string.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.hh')
-rw-r--r--src/string.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/string.hh b/src/string.hh
index 6970e74a..d15baa34 100644
--- a/src/string.hh
+++ b/src/string.hh
@@ -118,6 +118,8 @@ public:
[[gnu::always_inline]]
void append(const char* data, ByteCount count) { m_data.append(data, (size_t)(int)count); }
+ void clear() { m_data.clear(); }
+
void push_back(char c) { m_data.push_back(c); }
void resize(ByteCount size) { m_data.resize((size_t)(int)size); }
void reserve(ByteCount size) { m_data.reserve((size_t)(int)size); }