diff options
Diffstat (limited to 'src/util/StringCompare.cxx')
-rw-r--r-- | src/util/StringCompare.cxx | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/util/StringCompare.cxx b/src/util/StringCompare.cxx index fbd8e1d6d..5db53ef2f 100644 --- a/src/util/StringCompare.cxx +++ b/src/util/StringCompare.cxx @@ -28,17 +28,6 @@ */ #include "StringCompare.hxx" -#include "StringAPI.hxx" - -#include <assert.h> -#include <string.h> - -bool -StringStartsWith(const char *haystack, const char *needle) -{ - const size_t length = StringLength(needle); - return StringIsEqual(haystack, needle, length); -} bool StringEndsWith(const char *haystack, const char *needle) @@ -52,21 +41,6 @@ StringEndsWith(const char *haystack, const char *needle) } const char * -StringAfterPrefix(const char *string, const char *prefix) -{ -#if !CLANG_CHECK_VERSION(3,6) - /* disabled on clang due to -Wtautological-pointer-compare */ - assert(string != nullptr); - assert(prefix != nullptr); -#endif - - size_t prefix_length = strlen(prefix); - return StringIsEqual(string, prefix, prefix_length) - ? string + prefix_length - : nullptr; -} - -const char * FindStringSuffix(const char *p, const char *suffix) { const size_t p_length = strlen(p); |