diff options
Diffstat (limited to 'src/util/StringView.hxx')
-rw-r--r-- | src/util/StringView.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/StringView.hxx b/src/util/StringView.hxx index fbae9a7cc..dd6c4dc77 100644 --- a/src/util/StringView.hxx +++ b/src/util/StringView.hxx @@ -103,6 +103,16 @@ struct StringView : ConstBuffer<char> { bool EqualsLiteralIgnoreCase(const char (&other)[n]) const { return EqualsIgnoreCase({other, n - 1}); } + + /** + * Skip all whitespace at the beginning. + */ + void StripLeft(); + + /** + * Skip all whitespace at the end. + */ + void StripRight(); }; #endif |