diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /library/cpp/uri/other.cpp | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/uri/other.cpp')
-rw-r--r-- | library/cpp/uri/other.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/uri/other.cpp b/library/cpp/uri/other.cpp index b23a5b68a9..7e02d70e25 100644 --- a/library/cpp/uri/other.cpp +++ b/library/cpp/uri/other.cpp @@ -1,35 +1,35 @@ #include "other.h" - + #include <util/string/util.h> #include <util/system/yassert.h> - + /********************************************************/ /********************************************************/ static const Tr InvertTr(".:/?#", "\005\004\003\002\001"); static const Tr RevertTr("\005\004\003\002\001", ".:/?#"); -void TrspChars(char* s) { +void TrspChars(char* s) { InvertTr.Do(s); } -void UnTrspChars(char* s) { +void UnTrspChars(char* s) { RevertTr.Do(s); } -void TrspChars(char* s, size_t l) { +void TrspChars(char* s, size_t l) { InvertTr.Do(s, l); } -void UnTrspChars(char* s, size_t l) { +void UnTrspChars(char* s, size_t l) { RevertTr.Do(s, l); } -void TrspChars(const char* s, char* d) { +void TrspChars(const char* s, char* d) { InvertTr.Do(s, d); } -void UnTrspChars(const char* s, char* d) { +void UnTrspChars(const char* s, char* d) { RevertTr.Do(s, d); } @@ -57,14 +57,14 @@ void InvertDomain(char* begin, char* end) { e = end; for (size_t i = 0, n = e - b; i < n / 2; ++i) DoSwap(b[i], b[n - i - 1]); - if (e == end) + if (e == end) break; b = e + 1; } } void InvertUrl(char* begin, char* end) { - char* slash = strchr(begin, '/'); + char* slash = strchr(begin, '/'); if (slash) { *slash = 0; } |