diff options
author | vvp <vvp@yandex-team.ru> | 2022-02-10 16:49:55 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:55 +0300 |
commit | d0a386457ef009c1ed42e3e9b30f0dbcbf89d76b (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 | |
parent | 41d18a5226207be99e4311c8ee233bf616e1bdec (diff) | |
download | ydb-d0a386457ef009c1ed42e3e9b30f0dbcbf89d76b.tar.gz |
Restoring authorship annotation for <vvp@yandex-team.ru>. Commit 2 of 2.
-rw-r--r-- | library/cpp/containers/comptrie/chunked_helpers_trie.h | 6 | ||||
-rw-r--r-- | library/cpp/string_utils/url/url.cpp | 4 | ||||
-rw-r--r-- | library/cpp/string_utils/url/url.h | 10 | ||||
-rw-r--r-- | util/folder/dirut.h | 2 |
4 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/containers/comptrie/chunked_helpers_trie.h b/library/cpp/containers/comptrie/chunked_helpers_trie.h index f738a095e6..cfa35f5ba2 100644 --- a/library/cpp/containers/comptrie/chunked_helpers_trie.h +++ b/library/cpp/containers/comptrie/chunked_helpers_trie.h @@ -100,10 +100,10 @@ public: return def; } } - + const TCompactTrie<char>& GetTrie() const { - return Trie; - } + return Trie; + } }; template <typename T, bool sorted = false> diff --git a/library/cpp/string_utils/url/url.cpp b/library/cpp/string_utils/url/url.cpp index c13e199954..85f4ac5d69 100644 --- a/library/cpp/string_utils/url/url.cpp +++ b/library/cpp/string_utils/url/url.cpp @@ -237,8 +237,8 @@ void GetSchemeHostAndPort(const TStringBuf url, TStringBuf& scheme, TStringBuf& TStringBuf GetOnlyHost(const TStringBuf url) noexcept { return GetHost(CutSchemePrefix(url)); -} - +} + TStringBuf GetPathAndQuery(const TStringBuf url, bool trimFragment) noexcept { const size_t off = url.find('/', GetHttpPrefixSize(url)); TStringBuf hostUnused, path; diff --git a/library/cpp/string_utils/url/url.h b/library/cpp/string_utils/url/url.h index e923ead27b..84137ccc57 100644 --- a/library/cpp/string_utils/url/url.h +++ b/library/cpp/string_utils/url/url.h @@ -125,11 +125,11 @@ void GetSchemeHostAndPort(const TStringBuf url, TStringBuf& scheme, TStringBuf& Y_PURE_FUNCTION TStringBuf GetPathAndQuery(const TStringBuf url, bool trimFragment = true) noexcept; -/** - * Extracts host from url and cuts http(https) protocol prefix and port if any. - * @param[in] url any URL - * @return host without port and http(https) prefix. - */ +/** + * Extracts host from url and cuts http(https) protocol prefix and port if any. + * @param[in] url any URL + * @return host without port and http(https) prefix. + */ Y_PURE_FUNCTION TStringBuf GetOnlyHost(const TStringBuf url) noexcept; diff --git a/util/folder/dirut.h b/util/folder/dirut.h index 5508568626..2537027b12 100644 --- a/util/folder/dirut.h +++ b/util/folder/dirut.h @@ -86,7 +86,7 @@ bool SafeResolveDir(const char* path, TString& result); TString GetDirName(const TString& path); TString GetBaseName(const TString& path); - + TString StripFileComponent(const TString& fileName); class TExistenceChecker { |