From c880099deb41c09ea7844daa27a42dac4142c0cd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 6 Nov 2015 09:37:07 +0100 Subject: util/StringCompare: add StringIsEmpty() --- src/util/WStringCompare.hxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/util/WStringCompare.hxx') 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 +static inline bool +StringIsEmpty(const wchar_t *string) +{ + return *string == 0; +} + gcc_pure bool StringStartsWith(const wchar_t *haystack, const wchar_t *needle); -- cgit v1.2.3