util/StringView: add method Strip()
This commit is contained in:
parent
667edcd9d0
commit
b1becddf11
@ -123,6 +123,11 @@ struct StringView : ConstBuffer<char> {
|
||||
* Skip all whitespace at the end.
|
||||
*/
|
||||
void StripRight();
|
||||
|
||||
void Strip() {
|
||||
StripLeft();
|
||||
StripRight();
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user