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
commitc9317148cc3e9f1b0bc0ce95172f47e099f2c554 (patch)
tree1e426d905ba97d8c281c5cc53389faaced3832c7 /util/generic/string.cpp
parent6170310e8721e225f64ddabf7a7358253d7a1249 (diff)
downloadydb-c9317148cc3e9f1b0bc0ce95172f47e099f2c554.tar.gz
Restoring authorship annotation for <alzobnin@yandex-team.ru>. Commit 1 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 3c655f1f663..a21dee19dab 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 <>