diff --git a/src/util/StringView.hxx b/src/util/StringView.hxx index 1bde626d0..99472764c 100644 --- a/src/util/StringView.hxx +++ b/src/util/StringView.hxx @@ -123,6 +123,11 @@ struct StringView : ConstBuffer { * Skip all whitespace at the end. */ void StripRight(); + + void Strip() { + StripLeft(); + StripRight(); + } }; #endif