Browse Source

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

qwerty 3 years ago
parent
commit
34e37ee57f

+ 1 - 1
library/cpp/binsaver/bin_saver.cpp

@@ -16,7 +16,7 @@ struct SBasicChunkInit {
 void IBinSaver::StoreObject(IObjectBase* pObject) {
     if (pObject) {
         Y_ASSERT(pSaverClasses->GetObjectTypeID(pObject) != -1 && "trying to save unregistered object");
-    }
+    } 
 
     ui64 ptrId = ((char*)pObject) - ((char*)nullptr);
     if (StableOutput) {

+ 2 - 2
library/cpp/charset/codepage_ut.cpp

@@ -52,7 +52,7 @@ public:
     void TestEncodingHints();
     void TestToLower();
     void TestToUpper();
-
+ 
     void TestCanEncode();
 
     inline void TestUpperLower() {
@@ -168,7 +168,7 @@ void TCodepageTest::TestBrokenMultibyte() {
 
     size_t nwritten = 0;
     size_t nread = 0;
-
+ 
     RECODE_RESULT res = RecodeToUnicode(cp, sampletext, recodeResult, Y_ARRAY_SIZE(sampletext), Y_ARRAY_SIZE(recodeResult), nread, nwritten);
     UNIT_ASSERT(res == RECODE_OK);
     UNIT_ASSERT(nread == 1);

File diff suppressed because it is too large
+ 307 - 307
library/cpp/charset/generated/encrec_data.cpp


+ 5 - 5
library/cpp/charset/wide_ut.cpp

@@ -216,7 +216,7 @@ void TConversionTest::TestYandexEncoding() {
     {
         const char* yandexNonBMP2 = "ab?n";
         UNIT_ASSERT(yandexNonBMP2 == WideToChar(wNonBMPDummy2, Y_ARRAY_SIZE(wNonBMPDummy2), CODES_YANDEX));
-
+ 
         TString temp;
         temp.resize(Y_ARRAY_SIZE(wNonBMPDummy2));
         size_t read = 0;
@@ -298,7 +298,7 @@ void TConversionTest::TestRecodeAppend() {
         NDetail::RecodeAppend<wchar16>(UnicodeText, s1, CODES_UTF8);
         s2 += WideToUTF8(UnicodeText);
         UNIT_ASSERT_EQUAL(s1, s2);
-
+ 
         for (size_t i = 0; i < 100; ++i) {
             TUtf16String junk = CharToWide(GenerateJunk(i), CODES_YANDEX);
             NDetail::RecodeAppend<wchar16>(junk, s1, CODES_UTF8);
@@ -322,7 +322,7 @@ void TConversionTest::TestRecodeAppend() {
 
         NDetail::RecodeAppend<char>(TString(), s1, CODES_YANDEX);
         UNIT_ASSERT_EQUAL(s1, s2);
-
+ 
         NDetail::RecodeAppend<char>(UTF8Text, s1, CODES_UTF8);
         s2 += UTF8ToWide(UTF8Text);
         UNIT_ASSERT_EQUAL(s1, s2);
@@ -352,7 +352,7 @@ void TConversionTest::TestRecode() {
 
         for (int i = 0; i != 256; ++i) {
             char ch = static_cast<char>(i);
-
+ 
             wchar32 wch;
             size_t read = 0;
             size_t written = 0;
@@ -366,7 +366,7 @@ void TConversionTest::TestRecode() {
             char rch = 0;
             res = RecodeFromUnicode(enc, &wch, &rch, 1, 1, read, written);
             UNIT_ASSERT(res == RECODE_OK);
-
+ 
             char rch2 = 0;
             UNIT_ASSERT_VALUES_EQUAL(RECODE_OK, RecodeFromUnicode(enc, wch, &rch2, 1, written));
             UNIT_ASSERT_VALUES_EQUAL(size_t(1), written);

+ 1 - 1
library/cpp/codecs/greedy_dict/ya.make

@@ -12,4 +12,4 @@ PEERDIR(
     library/cpp/string_utils/relaxed_escaper
 )
 
-END()
+END() 

+ 1 - 1
library/cpp/containers/comptrie/comptrie_trie.h

@@ -401,7 +401,7 @@ inline bool TCompactTrie<T, D, S>::FindTails(TSymbol label, TCompactTrie<T, D, S
     const char* dataend = datastart + len;
     const char* datapos = datastart;
     const char* value = nullptr;
-
+ 
     if (!NCompactTrie::Advance(datapos, dataend, value, label, Packer))
         return false;
 

+ 1 - 1
library/cpp/deprecated/split/delim_string_iter.h

@@ -38,7 +38,7 @@ public:
         return IsValid;
     }
 
-    // NOTE: this is a potentially unsafe operation (no overrun check)
+    // NOTE: this is a potentially unsafe operation (no overrun check) 
     inline TDelimStringIter& operator++() {
         if (Current.end() != Str.end()) {
             Str.Skip(Current.length() + Delim.length());

+ 1 - 1
library/cpp/getopt/small/modchooser.cpp

@@ -67,7 +67,7 @@ TModChooser::TMode::TMode(const TString& name, TMainClass* main, const TString&
     , Hidden(hidden)
     , NoCompletion(noCompletion)
 {
-}
+} 
 
 TModChooser::TModChooser()
     : ModesHelpOption("-?") // Default help option in last_getopt

+ 1 - 1
library/cpp/getopt/small/modchooser.h

@@ -34,7 +34,7 @@ public:
 typedef void (*TVersionHandlerPtr)();
 
 /*! Main class for handling different modes in single tool.
- *
+ * 
  * You can add modes for this class, use autogenerated help with
  * list of modes and automaticly call necessary mode in run().
  *

+ 10 - 10
library/cpp/getopt/small/opt2.cpp

@@ -231,23 +231,23 @@ long Opt2::Int(char opt, const char* help, long def, bool required) {
     return rv;
 }
 
-// Get() + strtoul, may set up HasErrors
+// Get() + strtoul, may set up HasErrors 
 unsigned long Opt2::UInt(char opt, const char* help, unsigned long def, bool required) {
     Opt2Param& p = GetInternal(opt, (char*)(uintptr_t)def, help, required);
-    if (!p.HasArg)
+    if (!p.HasArg) 
         ythrow yexception() << "Opt2::UInt called for '" << opt << "' which is an option without argument";
-    p.IsNumeric = true;
+    p.IsNumeric = true; 
     if (!p.IsFound || p.ActualValue.empty() || !p.ActualValue.back())
-        return def;
+        return def; 
     char* e;
     unsigned long rv = strtoul(p.ActualValue.back(), &e, 10);
     if (e == p.ActualValue.back() || *e) {
-        OptionWrongArg = opt;
-        HasErrors = true;
-    }
-    return rv;
-}
-
+        OptionWrongArg = opt; 
+        HasErrors = true; 
+    } 
+    return rv; 
+} 
+ 
 // Add user defined error message and set error flag
 void Opt2::AddError(const char* message) {
     HasErrors = true;

Some files were not shown because too many files changed in this diff