diff options
author | krock21 <krock21@yandex-team.ru> | 2022-02-10 16:46:02 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:02 +0300 |
commit | 937a6bb8d7c82d8d9d717f2bf6ce6c592a443641 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/string/ascii.cpp | |
parent | 4aae166b5d23fd02653919f43e2015cd636fa6fd (diff) | |
download | ydb-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.cpp | 12 |
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; |