diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:10 +0300 |
commit | baa58daefa91fde4b4769facdbd2903763b9c6a8 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/folder/pathsplit.cpp | |
parent | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (diff) | |
download | ydb-baa58daefa91fde4b4769facdbd2903763b9c6a8.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/folder/pathsplit.cpp')
-rw-r--r-- | util/folder/pathsplit.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/folder/pathsplit.cpp b/util/folder/pathsplit.cpp index e24ca902030..81d439a727b 100644 --- a/util/folder/pathsplit.cpp +++ b/util/folder/pathsplit.cpp @@ -31,7 +31,7 @@ void TPathSplitTraitsUnix::DoParseFirstPart(const TStringBuf part) { } void TPathSplitTraitsUnix::DoParsePart(const TStringBuf part0) { - DoAppendHint(part0.size() / 8); + DoAppendHint(part0.size() / 8); TStringBuf next(part0); TStringBuf part; @@ -55,7 +55,7 @@ void TPathSplitTraitsWindows::DoParseFirstPart(const TStringBuf part0) { if (IsAbsolutePath(part)) { IsAbsolute = true; - if (part.size() > 1 && part[1] == ':') { + if (part.size() > 1 && part[1] == ':') { Drive = part.SubStr(0, 2); part = part.SubStr(2); } @@ -65,23 +65,23 @@ void TPathSplitTraitsWindows::DoParseFirstPart(const TStringBuf part0) { } void TPathSplitTraitsWindows::DoParsePart(const TStringBuf part0) { - DoAppendHint(part0.size() / 8); + DoAppendHint(part0.size() / 8); size_t pos = 0; TStringBuf part(part0); - while (pos < part.size()) { - while (pos < part.size() && this->IsPathSep(part[pos])) { + while (pos < part.size()) { + while (pos < part.size() && this->IsPathSep(part[pos])) { ++pos; } - const char* begin = part.data() + pos; + const char* begin = part.data() + pos; - while (pos < part.size() && !this->IsPathSep(part[pos])) { + while (pos < part.size() && !this->IsPathSep(part[pos])) { ++pos; } - AppendComponent(TStringBuf(begin, part.data() + pos)); + AppendComponent(TStringBuf(begin, part.data() + pos)); } } @@ -135,14 +135,14 @@ TString JoinPaths(const TPathSplit& p1, const TPathSplit& p2) { } TStringBuf CutExtension(const TStringBuf fileName) { - if (fileName.empty()) { + if (fileName.empty()) { return fileName; } TStringBuf name; TStringBuf extension; fileName.RSplit('.', name, extension); - if (name.empty()) { + if (name.empty()) { // dot at a start or not found return name; } else { |