aboutsummaryrefslogtreecommitdiffstats
path: root/util/str_stl.h
diff options
context:
space:
mode:
authorantonovvk <antonovvk@yandex-team.ru>2022-02-10 16:47:52 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:52 +0300
commit37de222addabbef336dcaaea5f7c7645a629fc6d (patch)
treec0748b5dcbade83af788c0abfa89c0383d6b779c /util/str_stl.h
parent37a63debdc21e372d99e1808cdd31aecf75018c3 (diff)
downloadydb-37de222addabbef336dcaaea5f7c7645a629fc6d.tar.gz
Restoring authorship annotation for <antonovvk@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/str_stl.h')
-rw-r--r--util/str_stl.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/util/str_stl.h b/util/str_stl.h
index a7a026b880..f1e137181d 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> {
};