diff options
author | olegator <olegator@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 | 971cfa1c440a14ae8352b1dbf29a884fea7536db (patch) | |
tree | e03e5f1c971e2c7a8e7ba6b0c982587b9191503e /library/cpp/string_utils/url/url.cpp | |
parent | c1979c2381cc77360b23e68225994f4b343e5acc (diff) | |
download | ydb-971cfa1c440a14ae8352b1dbf29a884fea7536db.tar.gz |
Restoring authorship annotation for <olegator@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/string_utils/url/url.cpp')
-rw-r--r-- | library/cpp/string_utils/url/url.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/string_utils/url/url.cpp b/library/cpp/string_utils/url/url.cpp index 85f4ac5d69..38fab59416 100644 --- a/library/cpp/string_utils/url/url.cpp +++ b/library/cpp/string_utils/url/url.cpp @@ -182,18 +182,18 @@ TStringBuf GetSchemeHostAndPort(const TStringBuf url, bool trimHttp, bool trimDe } } -void SplitUrlToHostAndPath(const TStringBuf url, TStringBuf& host, TStringBuf& path) { +void SplitUrlToHostAndPath(const TStringBuf url, TStringBuf& host, TStringBuf& path) { auto [hostBuf, pathBuf] = NUrl::SplitUrlToHostAndPath(url); host = hostBuf; path = pathBuf; -} - -void SplitUrlToHostAndPath(const TStringBuf url, TString& host, TString& path) { +} + +void SplitUrlToHostAndPath(const TStringBuf url, TString& host, TString& path) { auto [hostBuf, pathBuf] = NUrl::SplitUrlToHostAndPath(url); host = hostBuf; path = pathBuf; -} - +} + void SeparateUrlFromQueryAndFragment(const TStringBuf url, TStringBuf& sanitizedUrl, TStringBuf& query, TStringBuf& fragment) { TStringBuf urlWithoutFragment; if (!url.TrySplit('#', urlWithoutFragment, fragment)) { |