Просмотр исходного кода

Restoring authorship annotation for <wiz@yandex-team.ru>. Commit 2 of 2.

wiz 3 лет назад
Родитель
Сommit
75494e8343

+ 3 - 3
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);

+ 4 - 4
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()

+ 10 - 10
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);
 }

+ 1 - 1
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;
 

+ 1 - 1
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,

+ 1 - 1
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",