aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authorwiz <wiz@yandex-team.ru>2022-02-10 16:49:54 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:54 +0300
commit75494e834356f7a748c7193ccb6a5aa4dc981f4f (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp
parentd55d2643fed42b214f3a9d1fcd5882cc246ad2ea (diff)
downloadydb-75494e834356f7a748c7193ccb6a5aa4dc981f4f.tar.gz
Restoring authorship annotation for <wiz@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/cgiparam/cgiparam.cpp6
-rw-r--r--library/cpp/messagebus/ya.make8
-rw-r--r--library/cpp/string_utils/url/url.cpp20
-rw-r--r--library/cpp/string_utils/url/url.h2
-rw-r--r--library/cpp/testing/unittest/registar.h2
-rw-r--r--library/cpp/uri/uri-ru_ut.cpp2
6 files changed, 20 insertions, 20 deletions
diff --git a/library/cpp/cgiparam/cgiparam.cpp b/library/cpp/cgiparam/cgiparam.cpp
index e09a4ab251..f3277b8e4b 100644
--- a/library/cpp/cgiparam/cgiparam.cpp
+++ b/library/cpp/cgiparam/cgiparam.cpp
@@ -121,10 +121,10 @@ void TCgiParameters::ScanAddUnescaped(const TStringBuf query) {
auto f = [this](const TStringBuf key, const TStringBuf val) {
this->InsertUnescaped(key, val);
};
-
+
DoScan<false>(query, f);
-}
-
+}
+
void TCgiParameters::ScanAddAllUnescaped(const TStringBuf query) {
auto f = [this](const TStringBuf key, const TStringBuf val) {
this->InsertUnescaped(key, val);
diff --git a/library/cpp/messagebus/ya.make b/library/cpp/messagebus/ya.make
index 4a6e34d935..e13cf06dea 100644
--- a/library/cpp/messagebus/ya.make
+++ b/library/cpp/messagebus/ya.make
@@ -1,12 +1,12 @@
LIBRARY()
-
+
OWNER(g:messagebus)
IF (SANITIZER_TYPE == "undefined")
NO_SANITIZE()
ENDIF()
-SRCS(
+SRCS(
acceptor.cpp
acceptor_status.cpp
connection.cpp
@@ -50,7 +50,7 @@ SRCS(
use_count_checker.cpp
ybus.h
)
-
+
PEERDIR(
contrib/libs/sparsehash
library/cpp/codecs
@@ -65,4 +65,4 @@ PEERDIR(
library/cpp/threading/future
)
-END()
+END()
diff --git a/library/cpp/string_utils/url/url.cpp b/library/cpp/string_utils/url/url.cpp
index 732eac5b43..85f4ac5d69 100644
--- a/library/cpp/string_utils/url/url.cpp
+++ b/library/cpp/string_utils/url/url.cpp
@@ -47,17 +47,17 @@ namespace {
const TChar httpPrefix[] = {'h', 't', 't', 'p', ':', '/', '/', 0};
const TChar httpsPrefix[] = {'h', 't', 't', 'p', 's', ':', '/', '/', 0};
if (urlSize.Has(7) && Compare1Case2(url, httpPrefix, 7) == 0)
- return 7;
+ return 7;
if (!ignorehttps && urlSize.Has(8) && Compare1Case2(url, httpsPrefix, 8) == 0)
- return 8;
- return 0;
+ return 8;
+ return 0;
}
-
+
template <typename T>
inline T CutHttpPrefixImpl(const T& url, bool ignorehttps) {
size_t prefixSize = GetHttpPrefixSizeImpl<typename T::char_type>(url.data(), TKnownSize(url.size()), ignorehttps);
- if (prefixSize)
- return url.substr(prefixSize);
+ if (prefixSize)
+ return url.substr(prefixSize);
return url;
}
}
@@ -79,8 +79,8 @@ size_t GetHttpPrefixSize(const char* url, bool ignorehttps) noexcept {
size_t GetHttpPrefixSize(const wchar16* url, bool ignorehttps) noexcept {
return GetHttpPrefixSizeImpl<wchar16>(url, TUncheckedSize(), ignorehttps);
-}
-
+}
+
size_t GetHttpPrefixSize(const TStringBuf url, bool ignorehttps) noexcept {
return GetHttpPrefixSizeImpl<char>(url.data(), TKnownSize(url.size()), ignorehttps);
}
@@ -91,8 +91,8 @@ size_t GetHttpPrefixSize(const TWtringBuf url, bool ignorehttps) noexcept {
TStringBuf CutHttpPrefix(const TStringBuf url, bool ignorehttps) noexcept {
return CutHttpPrefixImpl(url, ignorehttps);
-}
-
+}
+
TWtringBuf CutHttpPrefix(const TWtringBuf url, bool ignorehttps) noexcept {
return CutHttpPrefixImpl(url, ignorehttps);
}
diff --git a/library/cpp/string_utils/url/url.h b/library/cpp/string_utils/url/url.h
index 803a80237a..84137ccc57 100644
--- a/library/cpp/string_utils/url/url.h
+++ b/library/cpp/string_utils/url/url.h
@@ -27,7 +27,7 @@ Y_PURE_FUNCTION
size_t GetHttpPrefixSize(const char* url, bool ignorehttps = false) noexcept;
Y_PURE_FUNCTION
size_t GetHttpPrefixSize(const wchar16* url, bool ignorehttps = false) noexcept;
-
+
Y_PURE_FUNCTION
size_t GetHttpPrefixSize(const TStringBuf url, bool ignorehttps = false) noexcept;
diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h
index 9df0805fd2..44517a0092 100644
--- a/library/cpp/testing/unittest/registar.h
+++ b/library/cpp/testing/unittest/registar.h
@@ -589,7 +589,7 @@ public: \
<< " (expected " << #E << ") " << C); \
} \
} while (false)
-
+
// Assert that a specific exception is thrown and satisfies predicate pred(e), where e is the exception instance.
// Example:
// UNIT_ASSERT_EXCEPTION_SATISFIES(MakeRequest(invalidData), TError,
diff --git a/library/cpp/uri/uri-ru_ut.cpp b/library/cpp/uri/uri-ru_ut.cpp
index 8e45b5a0ac..ec35a164d2 100644
--- a/library/cpp/uri/uri-ru_ut.cpp
+++ b/library/cpp/uri/uri-ru_ut.cpp
@@ -67,7 +67,7 @@ namespace NUri {
"./viewtopic.php?p=74&amp;sid=6#p74", "./viewtopic.php?p=74&sid=6#p74",
"viewtopic.php?p=9313&amp;sid=8#9313", "viewtopic.php?p=9313&sid=8#9313",
"profile.php?mode=viewprofile&u=-1#drafts&amp;sid=a6e5989cee27adb5996bfff044af04ca", "profile.php?mode=viewprofile&u=-1#drafts&sid=a6e5989cee27adb5996bfff044af04ca",
-
+
"images\nil.jpg", "images%0Ail.jpg",
"http://caedebaturque.termez.su\r\n/?article=218", "http://caedebaturque.termez.su%0D%0A/?article=218",