diff options
author | moskupols <moskupols@yandex-team.ru> | 2022-02-10 16:50:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:52 +0300 |
commit | 7a8bfeeee3a2a91c8b26e196d49efc264a0f9941 (patch) | |
tree | 1b8e23cfad053b844f02054a0d30f8d1c355859f /library/cpp/uri | |
parent | dd6b55b11723e4bb5b0cf7bffc0e45f15e2e46d3 (diff) | |
download | ydb-7a8bfeeee3a2a91c8b26e196d49efc264a0f9941.tar.gz |
Restoring authorship annotation for <moskupols@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/uri')
-rw-r--r-- | library/cpp/uri/other.cpp | 34 | ||||
-rw-r--r-- | library/cpp/uri/other.h | 24 |
2 files changed, 29 insertions, 29 deletions
diff --git a/library/cpp/uri/other.cpp b/library/cpp/uri/other.cpp index b23a5b68a9..e069c491a8 100644 --- a/library/cpp/uri/other.cpp +++ b/library/cpp/uri/other.cpp @@ -62,21 +62,21 @@ void InvertDomain(char* begin, char* end) { b = e + 1; } } - -void InvertUrl(char* begin, char* end) { + +void InvertUrl(char* begin, char* end) { char* slash = strchr(begin, '/'); - if (slash) { - *slash = 0; - } - strlwr(begin); - if (slash) { - *slash = '/'; - } - InvertDomain(begin, end); - TrspChars(begin); -} - -void RevertUrl(char* begin, char* end) { - UnTrspChars(begin); - InvertDomain(begin, end); -} + if (slash) { + *slash = 0; + } + strlwr(begin); + if (slash) { + *slash = '/'; + } + InvertDomain(begin, end); + TrspChars(begin); +} + +void RevertUrl(char* begin, char* end) { + UnTrspChars(begin); + InvertDomain(begin, end); +} diff --git a/library/cpp/uri/other.h b/library/cpp/uri/other.h index 7aec22e77b..766930c3bf 100644 --- a/library/cpp/uri/other.h +++ b/library/cpp/uri/other.h @@ -19,23 +19,23 @@ inline TString& InvertDomain(TString& url) { return url; } -void InvertUrl(char* begin, char* end); - -inline void InvertUrl(char* url) { - InvertUrl(url, url + strlen(url)); -} - +void InvertUrl(char* begin, char* end); + +inline void InvertUrl(char* url) { + InvertUrl(url, url + strlen(url)); +} + inline TString& InvertUrl(TString& url) { InvertUrl(url.begin(), url.begin() + url.size()); return url; } -void RevertUrl(char* begin, char* end); - -inline void RevertUrl(char* url) { - RevertUrl(url, url + strlen(url)); -} - +void RevertUrl(char* begin, char* end); + +inline void RevertUrl(char* url) { + RevertUrl(url, url + strlen(url)); +} + inline TString& RevertUrl(TString& url) { RevertUrl(url.begin(), url.begin() + url.size()); return url; |