aboutsummaryrefslogtreecommitdiffstats
path: root/util/str_stl.h
diff options
context:
space:
mode:
authorantonovvk <antonovvk@yandex-team.ru>2022-02-10 16:47:51 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:51 +0300
commit37a63debdc21e372d99e1808cdd31aecf75018c3 (patch)
treefd84293fb9a1b16381dd6c1a5e14c78afacb8710 /util/str_stl.h
parent1fe621e70df847cc201ac942fe6d7804ea10508d (diff)
downloadydb-37a63debdc21e372d99e1808cdd31aecf75018c3.tar.gz
Restoring authorship annotation for <antonovvk@yandex-team.ru>. Commit 1 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 f1e137181d..a7a026b880 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> {
};