From 41d18a5226207be99e4311c8ee233bf616e1bdec Mon Sep 17 00:00:00 2001 From: vvp Date: Thu, 10 Feb 2022 16:49:55 +0300 Subject: Restoring authorship annotation for . Commit 1 of 2. --- library/cpp/string_utils/url/url.cpp | 4 ++-- library/cpp/string_utils/url/url.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'library/cpp/string_utils') diff --git a/library/cpp/string_utils/url/url.cpp b/library/cpp/string_utils/url/url.cpp index 85f4ac5d693..c13e199954b 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 84137ccc57d..e923ead27b0 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; -- cgit v1.3