diff options
author | den <den@yandex-team.ru> | 2022-02-10 16:49:43 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:43 +0300 |
commit | 0beaf5069375bfa9589dbf4c281fbfcc7b11f71d (patch) | |
tree | 2a9075fe9636ba84e8db3369d5d39589cccac932 /library/cpp/string_utils/base64 | |
parent | 64b907678a38848c4af3d0270ccee688c5d7752c (diff) | |
download | ydb-0beaf5069375bfa9589dbf4c281fbfcc7b11f71d.tar.gz |
Restoring authorship annotation for <den@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/string_utils/base64')
-rw-r--r-- | library/cpp/string_utils/base64/base64.cpp | 2 | ||||
-rw-r--r-- | library/cpp/string_utils/base64/base64_ut.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/string_utils/base64/base64.cpp b/library/cpp/string_utils/base64/base64.cpp index 05c201f0de..10469773b6 100644 --- a/library/cpp/string_utils/base64/base64.cpp +++ b/library/cpp/string_utils/base64/base64.cpp @@ -130,7 +130,7 @@ static inline char* Base64EncodeImpl(char* outstr, const unsigned char* instr, s if (idx + 1 < len) { *outstr++ = base64_etab[GetBase64EncodedIndex1(instr[idx], instr[idx + 1])]; *outstr++ = base64_etab[GetBase64EncodedIndex2(instr[idx + 1], '\0')]; - } else { + } else { *outstr++ = base64_etab[GetBase64EncodedIndex1(instr[idx], '\0')]; *outstr++ = pad; } diff --git a/library/cpp/string_utils/base64/base64_ut.cpp b/library/cpp/string_utils/base64/base64_ut.cpp index bcc1e65879..5512d896e8 100644 --- a/library/cpp/string_utils/base64/base64_ut.cpp +++ b/library/cpp/string_utils/base64/base64_ut.cpp @@ -8,7 +8,7 @@ #include <contrib/libs/base64/ssse3/libbase64.h> #include <library/cpp/testing/unittest/registar.h> - + #include <util/generic/vector.h> #include <util/random/fast.h> #include <util/system/cpu_id.h> @@ -202,7 +202,7 @@ Y_UNIT_TEST_SUITE(TBase64) { UNIT_ASSERT_VALUES_EQUAL(Base64Encode("12"), "MTI="); UNIT_ASSERT_VALUES_EQUAL(Base64Encode("1"), "MQ=="); } - + Y_UNIT_TEST(TestIntoString) { { TString str; |