aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/WStringCompare.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/WStringCompare.hxx')
-rw-r--r--src/util/WStringCompare.hxx6
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);