diff options
Diffstat (limited to 'src/util/StringAPI.hxx')
-rw-r--r-- | src/util/StringAPI.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/util/StringAPI.hxx b/src/util/StringAPI.hxx index fdb918389..6f44f115b 100644 --- a/src/util/StringAPI.hxx +++ b/src/util/StringAPI.hxx @@ -32,7 +32,7 @@ #include "Compiler.h" -#include <string.h> +#include <cstring> #ifdef _UNICODE #include "WStringAPI.hxx" @@ -56,42 +56,42 @@ gcc_pure gcc_nonnull_all static inline char * StringFind(char *haystack, char needle, size_t size) noexcept { - return (char *)memchr(haystack, needle, size); + return (char *)std::memchr(haystack, needle, size); } gcc_pure gcc_nonnull_all static inline const char * StringFind(const char *haystack, char needle, size_t size) noexcept { - return (const char *)memchr(haystack, needle, size); + return (const char *)std::memchr(haystack, needle, size); } gcc_pure gcc_nonnull_all static inline const char * StringFind(const char *haystack, char needle) noexcept { - return strchr(haystack, needle); + return std::strchr(haystack, needle); } gcc_pure gcc_nonnull_all static inline char * StringFind(char *haystack, char needle) noexcept { - return strchr(haystack, needle); + return std::strchr(haystack, needle); } gcc_pure gcc_nonnull_all static inline const char * StringFindLast(const char *haystack, char needle) noexcept { - return strrchr(haystack, needle); + return std::strrchr(haystack, needle); } gcc_pure gcc_nonnull_all static inline char * StringFindLast(char *haystack, char needle) noexcept { - return strrchr(haystack, needle); + return std::strrchr(haystack, needle); } gcc_pure gcc_nonnull_all |