summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Base/String.h')
-rw-r--r--Swiften/Base/String.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swiften/Base/String.h b/Swiften/Base/String.h
index 0958795..03d9029 100644
--- a/Swiften/Base/String.h
+++ b/Swiften/Base/String.h
@@ -36,6 +36,8 @@ namespace Swift {
size_t getUTF8Size() const { return data_.size(); }
std::vector<unsigned int> getUnicodeCodePoints() const;
+ void clear() { data_.clear(); }
+
/**
* Returns the part before and after 'c'.
* If the given splitter does not occur in the string, the second