Commit b1becddf authored by Max Kellermann's avatar Max Kellermann

util/StringView: add method Strip()

parent 667edcd9
...@@ -123,6 +123,11 @@ struct StringView : ConstBuffer<char> { ...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment