diff options
author | Max Kellermann <max@duempel.org> | 2015-11-06 09:37:07 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-11-06 09:37:07 +0100 |
commit | c880099deb41c09ea7844daa27a42dac4142c0cd (patch) | |
tree | 571482d1e6e7efc95ab7d443f246232188d3c23f /src/util/WStringCompare.hxx | |
parent | 42f5ecd4a116c96d30bf407859dadaa9a053ea39 (diff) |
util/StringCompare: add StringIsEmpty()
Diffstat (limited to 'src/util/WStringCompare.hxx')
-rw-r--r-- | src/util/WStringCompare.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/WStringCompare.hxx b/src/util/WStringCompare.hxx index 3547076ca..bddd62120 100644 --- a/src/util/WStringCompare.hxx +++ b/src/util/WStringCompare.hxx @@ -34,6 +34,12 @@ #include <wchar.h> +static inline bool +StringIsEmpty(const wchar_t *string) +{ + return *string == 0; +} + gcc_pure bool StringStartsWith(const wchar_t *haystack, const wchar_t *needle); |