util/StringView: add method Strip()

This commit is contained in:
Max Kellermann 2016-03-18 15:40:49 +01:00
parent 667edcd9d0
commit b1becddf11

View File

@ -123,6 +123,11 @@ struct StringView : ConstBuffer<char> {
* Skip all whitespace at the end. * Skip all whitespace at the end.
*/ */
void StripRight(); void StripRight();
void Strip() {
StripLeft();
StripRight();
}
}; };
#endif #endif