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 | e990833b6d2409c81ebfaf00757131a791b02f6d (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/string_utils/base64 | |
parent | 0beaf5069375bfa9589dbf4c281fbfcc7b11f71d (diff) | |
download | ydb-e990833b6d2409c81ebfaf00757131a791b02f6d.tar.gz |
Restoring authorship annotation for <den@yandex-team.ru>. Commit 2 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 10469773b6..05c201f0de 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 5512d896e8..bcc1e65879 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; |