aboutsummaryrefslogtreecommitdiffstats
path: root/src/util/StringCompare.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/StringCompare.hxx')
-rw-r--r--src/util/StringCompare.hxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/StringCompare.hxx b/src/util/StringCompare.hxx
index 2c23b312f..a29892bc9 100644
--- a/src/util/StringCompare.hxx
+++ b/src/util/StringCompare.hxx
@@ -36,6 +36,12 @@
#include "WStringCompare.hxx"
#endif
+static inline bool
+StringIsEmpty(const char *string)
+{
+ return *string == 0;
+}
+
gcc_pure
bool
StringStartsWith(const char *haystack, const char *needle);