aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/ascii.cpp
diff options
context:
space:
mode:
authorkrock21 <krock21@yandex-team.ru>2022-02-10 16:46:02 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:02 +0300
commit937a6bb8d7c82d8d9d717f2bf6ce6c592a443641 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/string/ascii.cpp
parent4aae166b5d23fd02653919f43e2015cd636fa6fd (diff)
downloadydb-937a6bb8d7c82d8d9d717f2bf6ce6c592a443641.tar.gz
Restoring authorship annotation for <krock21@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string/ascii.cpp')
-rw-r--r--util/string/ascii.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/string/ascii.cpp b/util/string/ascii.cpp
index bec423539b..95edb95cc8 100644
--- a/util/string/ascii.cpp
+++ b/util/string/ascii.cpp
@@ -43,16 +43,16 @@ extern const unsigned char NPrivate::ASCII_LOWER[256] = {
};
// clang-format on
-int AsciiCompareIgnoreCase(const TStringBuf s1, const TStringBuf s2) noexcept {
- if (s1.size() <= s2.size()) {
- if (int cmp = strnicmp(s1.data(), s2.data(), s1.size())) {
+int AsciiCompareIgnoreCase(const TStringBuf s1, const TStringBuf s2) noexcept {
+ if (s1.size() <= s2.size()) {
+ if (int cmp = strnicmp(s1.data(), s2.data(), s1.size())) {
return cmp;
}
- return (s1.size() < s2.size()) ? -1 : 0;
+ return (s1.size() < s2.size()) ? -1 : 0;
}
- Y_ASSERT(s1.size() > s2.size());
- if (int cmp = strnicmp(s1.data(), s2.data(), s2.size())) {
+ Y_ASSERT(s1.size() > s2.size());
+ if (int cmp = strnicmp(s1.data(), s2.data(), s2.size())) {
return cmp;
}
return 1;