util/StringCompare: add StringIsEmpty()
This commit is contained in:
@@ -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);
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user