aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/string_utils/quote/quote.cpp
diff options
context:
space:
mode:
authormaslov <maslov@yandex-team.ru>2022-02-10 16:48:18 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:18 +0300
commit7429d8be0f619d00069466e159d8ecd43a60f61a (patch)
treeee12c5d6eea3a9caf55ff0a8dca140340ec15605 /library/cpp/string_utils/quote/quote.cpp
parent6238988d0cc5068b8e6f61abe8dac4c6817720ad (diff)
downloadydb-7429d8be0f619d00069466e159d8ecd43a60f61a.tar.gz
Restoring authorship annotation for <maslov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/string_utils/quote/quote.cpp')
-rw-r--r--library/cpp/string_utils/quote/quote.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/string_utils/quote/quote.cpp b/library/cpp/string_utils/quote/quote.cpp
index e523350b80..2f1a26a0ee 100644
--- a/library/cpp/string_utils/quote/quote.cpp
+++ b/library/cpp/string_utils/quote/quote.cpp
@@ -3,7 +3,7 @@
#include <util/memory/tempbuf.h>
#include <util/string/ascii.h>
#include <util/string/cstriter.h>
-
+
#include <cctype>
/* note: (x & 0xdf) makes x upper case */
@@ -34,7 +34,7 @@ namespace {
GETXC;
return c;
}
-
+
static inline char x2c(TStringBuf& x) {
if (!IsAsciiHex((ui8)x[0]) || !IsAsciiHex((ui8)x[1]))
return '%';
@@ -66,8 +66,8 @@ namespace {
static inline char d2x(unsigned x) {
return (char)((x < 10) ? ('0' + x) : ('A' + x - 10));
-}
-
+}
+
static inline const char* FixZero(const char* s) noexcept {
return s ? s : "";
}
@@ -120,7 +120,7 @@ static inline It1 Escape(It1 to, It2 from, It3 end, const bool* escape_map = cha
*to = 0;
return to;
-}
+}
template <class It1, class It2, class It3, class FromHex>
static inline It1 Unescape(It1 to, It2 from, It3 end, FromHex fromHex) {
@@ -161,7 +161,7 @@ void CGIEscape(TString& url) {
url.AssignNoAlias(to, CGIEscape(to, url.data(), url.size()));
}
-
+
TString CGIEscapeRet(const TStringBuf url) {
TString to;
to.ReserveAndResize(CgiEscapeBufLen(url.size()));