aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/StringView.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/StringView.hxx')
-rw-r--r--src/util/StringView.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/StringView.hxx b/src/util/StringView.hxx
index fbae9a7cc..dd6c4dc77 100644
--- a/src/util/StringView.hxx
+++ b/src/util/StringView.hxx
@@ -103,6 +103,16 @@ struct StringView : ConstBuffer<char> {
bool EqualsLiteralIgnoreCase(const char (&other)[n]) const {
return EqualsIgnoreCase({other, n - 1});
}
+
+ /**
+ * Skip all whitespace at the beginning.
+ */
+ void StripLeft();
+
+ /**
+ * Skip all whitespace at the end.
+ */
+ void StripRight();
};
#endif