aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/string.cpp
diff options
context:
space:
mode:
authoralzobnin <alzobnin@yandex-team.ru>2022-02-10 16:46:50 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:50 +0300
commit5085152b94bf621933243a498def7f37d2e76b58 (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/generic/string.cpp
parentc9317148cc3e9f1b0bc0ce95172f47e099f2c554 (diff)
downloadydb-5085152b94bf621933243a498def7f37d2e76b58.tar.gz
Restoring authorship annotation for <alzobnin@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/string.cpp')
-rw-r--r--util/generic/string.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/generic/string.cpp b/util/generic/string.cpp
index a21dee19da..3c655f1f66 100644
--- a/util/generic/string.cpp
+++ b/util/generic/string.cpp
@@ -1,6 +1,6 @@
#include "string.h"
-#include <util/string/ascii.h>
+#include <util/string/ascii.h>
#include <util/system/sanitizers.h>
#include <util/system/sys_alloc.h>
#include <util/charset/wide.h>
@@ -20,21 +20,21 @@ std::istream& operator>>(std::istream& is, TString& s) {
template <>
bool TBasicString<char, std::char_traits<char>>::to_lower(size_t pos, size_t n) {
- return Transform([](size_t, char c) { return AsciiToLower(c); }, pos, n);
+ return Transform([](size_t, char c) { return AsciiToLower(c); }, pos, n);
}
template <>
bool TBasicString<char, std::char_traits<char>>::to_upper(size_t pos, size_t n) {
- return Transform([](size_t, char c) { return AsciiToUpper(c); }, pos, n);
+ return Transform([](size_t, char c) { return AsciiToUpper(c); }, pos, n);
}
template <>
bool TBasicString<char, std::char_traits<char>>::to_title(size_t pos, size_t n) {
- if (n == 0) {
- return false;
+ if (n == 0) {
+ return false;
}
- bool changed = to_upper(pos, 1);
- return to_lower(pos + 1, n - 1) || changed;
+ bool changed = to_upper(pos, 1);
+ return to_lower(pos + 1, n - 1) || changed;
}
template <>