aboutsummaryrefslogtreecommitdiffstats
path: root/util/string/util.cpp
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:25 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:25 +0300
commit344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/string/util.cpp
parent706b83ed7de5a473436620367af31fc0ceecde07 (diff)
downloadydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/string/util.cpp')
-rw-r--r--util/string/util.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/string/util.cpp b/util/string/util.cpp
index a528489b9b..b14f20bf75 100644
--- a/util/string/util.cpp
+++ b/util/string/util.cpp
@@ -6,7 +6,7 @@
#include <cstdarg>
#include <cstdlib>
-int a2i(const TString& s) {
+int a2i(const TString& s) {
return atoi(s.c_str());
}
@@ -49,20 +49,20 @@ Tr::Tr(const char* from, const char* to) {
}
}
-size_t Tr::FindFirstChangePosition(const TString& str) const {
+size_t Tr::FindFirstChangePosition(const TString& str) const {
for (auto it = str.begin(); it != str.end(); ++it) {
if (ConvertChar(*it) != *it) {
return it - str.begin();
}
}
- return TString::npos;
+ return TString::npos;
}
-void Tr::Do(TString& str) const {
+void Tr::Do(TString& str) const {
const size_t changePosition = FindFirstChangePosition(str);
- if (changePosition == TString::npos) {
+ if (changePosition == TString::npos) {
return;
}