From b1becddf11a587b37711667f3e072b223b91b7ef Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 18 Mar 2016 15:40:49 +0100 Subject: [PATCH] util/StringView: add method Strip() --- src/util/StringView.hxx | 5 +++++ 1 file changed, 5 insertions(+) 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