diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:23 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:23 +0300 |
commit | 706b83ed7de5a473436620367af31fc0ceecde07 (patch) | |
tree | 103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/cgiparam/cgiparam.h | |
parent | 918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff) | |
download | ydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/cgiparam/cgiparam.h')
-rw-r--r-- | library/cpp/cgiparam/cgiparam.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/library/cpp/cgiparam/cgiparam.h b/library/cpp/cgiparam/cgiparam.h index 87d1ab0ad4..572393082c 100644 --- a/library/cpp/cgiparam/cgiparam.h +++ b/library/cpp/cgiparam/cgiparam.h @@ -5,18 +5,18 @@ #include <util/generic/iterator_range.h> #include <util/generic/map.h> #include <util/generic/strbuf.h> -#include <util/generic/string.h> +#include <util/generic/string.h> #include <initializer_list> struct TStringLess { template <class T1, class T2> - inline bool operator()(const T1& t1, const T2& t2) const noexcept { + inline bool operator()(const T1& t1, const T2& t2) const noexcept { return TStringBuf(t1) < TStringBuf(t2); } }; -class TCgiParameters: public TMultiMap<TString, TString> { +class TCgiParameters: public TMultiMap<TString, TString> { public: TCgiParameters() = default; @@ -24,7 +24,7 @@ public: Scan(cgiParamStr); } - TCgiParameters(std::initializer_list<std::pair<TString, TString>> il); + TCgiParameters(std::initializer_list<std::pair<TString, TString>> il); void Flush() { erase(begin(), end()); @@ -36,7 +36,7 @@ public: return count(name); } - TString operator()() const { + TString operator()() const { return Print(); } @@ -51,11 +51,11 @@ public: * @note The returned string has format <name1>=<value1>&<name2>=<value2>&... * @note Names and values in the returned string are CGI-escaped. */ - TString Print() const; + TString Print() const; char* Print(char* res) const; Y_PURE_FUNCTION - size_t PrintSize() const noexcept; + size_t PrintSize() const noexcept; /** The same as Print* except that RFC-3986 reserved characters are escaped. * @param safe - set of characters to be skipped in escaping |