diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /util/folder/pathsplit.h | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'util/folder/pathsplit.h')
-rw-r--r-- | util/folder/pathsplit.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/folder/pathsplit.h b/util/folder/pathsplit.h index d134338e35..af14c672d4 100644 --- a/util/folder/pathsplit.h +++ b/util/folder/pathsplit.h @@ -2,11 +2,11 @@ #include <util/generic/vector.h> #include <util/generic/strbuf.h> -#include <util/generic/string.h> +#include <util/generic/string.h> #include <util/string/ascii.h> //do not own any data -struct TPathSplitStore: public TVector<TStringBuf> { +struct TPathSplitStore: public TVector<TStringBuf> { TStringBuf Drive; bool IsAbsolute = false; @@ -14,7 +14,7 @@ struct TPathSplitStore: public TVector<TStringBuf> { TStringBuf Extension() const; protected: - TString DoReconstruct(const TStringBuf slash) const; + TString DoReconstruct(const TStringBuf slash) const; inline void DoAppendHint(size_t hint) { reserve(size() + hint); @@ -24,7 +24,7 @@ protected: struct TPathSplitTraitsUnix: public TPathSplitStore { static constexpr char MainPathSep = '/'; - inline TString Reconstruct() const { + inline TString Reconstruct() const { return DoReconstruct(TStringBuf("/")); } @@ -43,7 +43,7 @@ struct TPathSplitTraitsUnix: public TPathSplitStore { struct TPathSplitTraitsWindows: public TPathSplitStore { static constexpr char MainPathSep = '\\'; - inline TString Reconstruct() const { + inline TString Reconstruct() const { return DoReconstruct(TStringBuf("\\")); } @@ -108,6 +108,6 @@ using TPathSplit = TPathSplitBase<TPathSplitTraitsLocal>; using TPathSplitUnix = TPathSplitBase<TPathSplitTraitsUnix>; using TPathSplitWindows = TPathSplitBase<TPathSplitTraitsWindows>; -TString JoinPaths(const TPathSplit& p1, const TPathSplit& p2); +TString JoinPaths(const TPathSplit& p1, const TPathSplit& p2); TStringBuf CutExtension(const TStringBuf fileName); |