diff options
Diffstat (limited to 'common/str.h')
-rw-r--r-- | common/str.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/str.h b/common/str.h index c611b3df87..c7c9b466b1 100644 --- a/common/str.h +++ b/common/str.h @@ -194,6 +194,11 @@ String operator +(const String &x, const char *y); bool operator == (const char *x, const String &y); bool operator != (const char *x, const String &y); +// Utility functions to remove leading and trailing whitespaces +extern char *ltrim(char *t); +extern char *rtrim(char *t); +extern char *trim(char *t); + class StringList : public Array<String> { public: void push_back(const char *str) { |