diff options
author | antonovvk <[email protected]> | 2022-02-10 16:47:52 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:52 +0300 |
commit | 37de222addabbef336dcaaea5f7c7645a629fc6d (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/str_stl.h | |
parent | 37a63debdc21e372d99e1808cdd31aecf75018c3 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/str_stl.h')
-rw-r--r-- | util/str_stl.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/util/str_stl.h b/util/str_stl.h index a7a026b8801..f1e137181d2 100644 --- a/util/str_stl.h +++ b/util/str_stl.h @@ -210,29 +210,29 @@ struct TEqualTo<std::pair<TFirst, TSecond>> { template <class T> struct TCIEqualTo { -}; - -template <> -struct TCIEqualTo<const char*> { +}; + +template <> +struct TCIEqualTo<const char*> { inline bool operator()(const char* a, const char* b) const { - return stricmp(a, b) == 0; - } -}; - -template <> -struct TCIEqualTo<TStringBuf> { + return stricmp(a, b) == 0; + } +}; + +template <> +struct TCIEqualTo<TStringBuf> { inline bool operator()(const TStringBuf a, const TStringBuf b) const { return a.size() == b.size() && strnicmp(a.data(), b.data(), a.size()) == 0; - } -}; - -template <> + } +}; + +template <> struct TCIEqualTo<TString> { inline bool operator()(const TString& a, const TString& b) const { return a.size() == b.size() && strnicmp(a.data(), b.data(), a.size()) == 0; - } -}; - + } +}; + template <class T> struct TLess: public std::less<T> { }; |