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> {
* Skip all whitespace at the end.
*/
void StripRight();
void Strip() {
StripLeft();
StripRight();
}
};
#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