diff options
author | antonovvk <antonovvk@yandex-team.ru> | 2022-02-10 16:47:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:52 +0300 |
commit | 37de222addabbef336dcaaea5f7c7645a629fc6d (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/uri/other.h | |
parent | 37a63debdc21e372d99e1808cdd31aecf75018c3 (diff) | |
download | ydb-37de222addabbef336dcaaea5f7c7645a629fc6d.tar.gz |
Restoring authorship annotation for <antonovvk@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/uri/other.h')
-rw-r--r-- | library/cpp/uri/other.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/library/cpp/uri/other.h b/library/cpp/uri/other.h index e4fd48842a..7aec22e77b 100644 --- a/library/cpp/uri/other.h +++ b/library/cpp/uri/other.h @@ -2,23 +2,23 @@ #include <util/generic/string.h> -// Some functions for inverted url representation -// No scheme cut-off, no 80th port normalization - +// Some functions for inverted url representation +// No scheme cut-off, no 80th port normalization + void TrspChars(char* s); void UnTrspChars(char* s); void TrspChars(char* s, size_t l); void UnTrspChars(char* s, size_t l); void TrspChars(const char* s, char* d); void UnTrspChars(const char* s, char* d); - -void InvertDomain(char* begin, char* end); - + +void InvertDomain(char* begin, char* end); + inline TString& InvertDomain(TString& url) { InvertDomain(url.begin(), url.begin() + url.size()); - return url; -} - + return url; +} + void InvertUrl(char* begin, char* end); inline void InvertUrl(char* url) { @@ -27,9 +27,9 @@ inline void InvertUrl(char* url) { inline TString& InvertUrl(TString& url) { InvertUrl(url.begin(), url.begin() + url.size()); - return url; -} - + return url; +} + void RevertUrl(char* begin, char* end); inline void RevertUrl(char* url) { @@ -38,5 +38,5 @@ inline void RevertUrl(char* url) { inline TString& RevertUrl(TString& url) { RevertUrl(url.begin(), url.begin() + url.size()); - return url; -} + return url; +} |