diff options
author | mvel <mvel@yandex-team.ru> | 2022-02-10 16:45:41 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:41 +0300 |
commit | bd30392c4cc92487950adc375c07adf52da1d592 (patch) | |
tree | e8d1a3f19b7fc890bcef6e4cc5de41f1d88c9ac3 /util/string/strip.cpp | |
parent | 5d50718e66d9c037dc587a0211110b7d25a66185 (diff) | |
download | ydb-bd30392c4cc92487950adc375c07adf52da1d592.tar.gz |
Restoring authorship annotation for <mvel@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/strip.cpp')
-rw-r--r-- | util/string/strip.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/string/strip.cpp b/util/string/strip.cpp index c921571cf0..bcc63f0e81 100644 --- a/util/string/strip.cpp +++ b/util/string/strip.cpp @@ -8,10 +8,10 @@ bool Collapse(const TString& from, TString& to, size_t maxLen) { } void CollapseText(const TString& from, TString& to, size_t maxLen) { - Collapse(from, to, maxLen); + Collapse(from, to, maxLen); StripInPlace(to); if (to.size() >= maxLen) { - to.remove(maxLen - 5); // " ..." + to.remove(maxLen - 5); // " ..." ReverseInPlace(to); size_t pos = to.find_first_of(" .,;"); if (pos != TString::npos && pos < 32) { |