diff options
author | vadim-xd <vadim-xd@yandex-team.com> | 2024-06-09 02:44:18 +0300 |
---|---|---|
committer | vadim-xd <vadim-xd@yandex-team.com> | 2024-06-09 02:57:12 +0300 |
commit | 1f41aead77a6ea2fbc9ff48092b7bda4981bbe7a (patch) | |
tree | 69de1da11d3bb39e3c4fcb7c2563da5a7fbe3353 /util/string/ascii.h | |
parent | 4c91bcc65ecc3d96bb9810537fb6dab7b29060f2 (diff) | |
download | ydb-1f41aead77a6ea2fbc9ff48092b7bda4981bbe7a.tar.gz |
Use ::strnicmp instead of strnicmp (fix build errors in files that use namespace NUri)
3a7cf9869f888e3d09fc6c4c00c38db97f3a62ed
Diffstat (limited to 'util/string/ascii.h')
-rw-r--r-- | util/string/ascii.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/string/ascii.h b/util/string/ascii.h index 94bf920e81..af74ff4382 100644 --- a/util/string/ascii.h +++ b/util/string/ascii.h @@ -167,7 +167,7 @@ inline ::NPrivate::TDereferenced<T> AsciiToUpper(T c) noexcept { * @return true iff @c s1 ans @c s2 are case-insensitively equal. */ static inline bool AsciiEqualsIgnoreCase(const char* s1, const char* s2) noexcept { - return stricmp(s1, s2) == 0; + return ::stricmp(s1, s2) == 0; } /** @@ -186,7 +186,7 @@ static inline bool AsciiEqualsIgnoreCase(const TStringBuf s1, const TStringBuf s if (s1.empty()) { return true; } - return strnicmp(s1.data(), s2.data(), s1.size()) == 0; + return ::strnicmp(s1.data(), s2.data(), s1.size()) == 0; } /** @@ -201,7 +201,7 @@ static inline bool AsciiEqualsIgnoreCase(const TStringBuf s1, const TStringBuf s * (same value as @c stricmp does). */ static inline int AsciiCompareIgnoreCase(const char* s1, const char* s2) noexcept { - return stricmp(s1, s2); + return ::stricmp(s1, s2); } /** @@ -239,7 +239,7 @@ static inline bool AsciiHasPrefix(const TStringBuf s1, const TStringBuf s2) noex * @return true iff @c s2 are case-insensitively prefix of @c s1. */ static inline bool AsciiHasPrefixIgnoreCase(const TStringBuf s1, const TStringBuf s2) noexcept { - return (s1.size() >= s2.size()) && strnicmp(s1.data(), s2.data(), s2.size()) == 0; + return (s1.size() >= s2.size()) && ::strnicmp(s1.data(), s2.data(), s2.size()) == 0; } /** @@ -249,5 +249,5 @@ static inline bool AsciiHasPrefixIgnoreCase(const TStringBuf s1, const TStringBu * @return true iff @c s2 are case-insensitively suffix of @c s1. */ static inline bool AsciiHasSuffixIgnoreCase(const TStringBuf s1, const TStringBuf s2) noexcept { - return (s1.size() >= s2.size()) && strnicmp((s1.data() + (s1.size() - s2.size())), s2.data(), s2.size()) == 0; + return (s1.size() >= s2.size()) && ::strnicmp((s1.data() + (s1.size() - s2.size())), s2.data(), s2.size()) == 0; } |