aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/string_utils/base64
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit7fe839092527589b38f014d854c51565b3c1adfa (patch)
tree309e97022d3530044b712b8f71318c78faf7856e /library/cpp/string_utils/base64
parentd0d68c395c10da4cb56a1c845504570a04d7893e (diff)
downloadydb-7fe839092527589b38f014d854c51565b3c1adfa.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/string_utils/base64')
-rw-r--r--library/cpp/string_utils/base64/base64.cpp2
-rw-r--r--library/cpp/string_utils/base64/base64_ut.cpp20
2 files changed, 11 insertions, 11 deletions
diff --git a/library/cpp/string_utils/base64/base64.cpp b/library/cpp/string_utils/base64/base64.cpp
index 05c201f0de..c85ad417ce 100644
--- a/library/cpp/string_utils/base64/base64.cpp
+++ b/library/cpp/string_utils/base64/base64.cpp
@@ -65,7 +65,7 @@ namespace {
}
};
- const TImpl GetImpl() {
+ const TImpl GetImpl() {
static const TImpl IMPL;
return IMPL;
}
diff --git a/library/cpp/string_utils/base64/base64_ut.cpp b/library/cpp/string_utils/base64/base64_ut.cpp
index bcc1e65879..4dbefc74e8 100644
--- a/library/cpp/string_utils/base64/base64_ut.cpp
+++ b/library/cpp/string_utils/base64/base64_ut.cpp
@@ -16,8 +16,8 @@
#include <array>
-using namespace std::string_view_literals;
-
+using namespace std::string_view_literals;
+
#define BASE64_UT_DECLARE_BASE64_IMPL(prefix, encFunction, decFunction) \
Y_DECLARE_UNUSED \
static size_t prefix##Base64Decode(void* dst, const char* b, const char* e) { \
@@ -298,7 +298,7 @@ Y_UNIT_TEST_SUITE(TBase64) {
}
Y_UNIT_TEST(TestAllPossibleOctets) {
- const TString x("\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\x0B\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F"sv);
+ const TString x("\0\x01\x02\x03\x04\x05\x06\x07\b\t\n\x0B\f\r\x0E\x0F\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1A\x1B\x1C\x1D\x1E\x1F !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\x7F"sv);
const TString xEnc = "AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8gISIjJCUmJygpKissLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZHSElKS0xNTk9QUVJTVFVWV1hZWltcXV5fYGFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6e3x9fn8=";
const TString y = Base64Decode(xEnc);
const TString yEnc = Base64Encode(x);
@@ -307,7 +307,7 @@ Y_UNIT_TEST_SUITE(TBase64) {
}
Y_UNIT_TEST(TestTwoPaddingCharacters) {
- const TString x("a");
+ const TString x("a");
const TString xEnc = "YQ==";
const TString y = Base64Decode(xEnc);
const TString yEnc = Base64Encode(x);
@@ -316,7 +316,7 @@ Y_UNIT_TEST_SUITE(TBase64) {
}
Y_UNIT_TEST(TestOnePaddingCharacter) {
- const TString x("aa");
+ const TString x("aa");
const TString xEnc = "YWE=";
const TString y = Base64Decode(xEnc);
const TString yEnc = Base64Encode(x);
@@ -325,7 +325,7 @@ Y_UNIT_TEST_SUITE(TBase64) {
}
Y_UNIT_TEST(TestNoPaddingCharacters) {
- const TString x("aaa");
+ const TString x("aaa");
const TString xEnc = "YWFh";
const TString y = Base64Decode(xEnc);
const TString yEnc = Base64Encode(x);
@@ -334,7 +334,7 @@ Y_UNIT_TEST_SUITE(TBase64) {
}
Y_UNIT_TEST(TestTrailingZero) {
- const TString x("foo\0"sv);
+ const TString x("foo\0"sv);
const TString xEnc = "Zm9vAA==";
const TString y = Base64Decode(xEnc);
const TString yEnc = Base64Encode(x);
@@ -343,7 +343,7 @@ Y_UNIT_TEST_SUITE(TBase64) {
}
Y_UNIT_TEST(TestTwoTrailingZeroes) {
- const TString x("foo\0\0"sv);
+ const TString x("foo\0\0"sv);
const TString xEnc = "Zm9vAAA=";
const TString y = Base64Decode(xEnc);
const TString yEnc = Base64Encode(x);
@@ -352,7 +352,7 @@ Y_UNIT_TEST_SUITE(TBase64) {
}
Y_UNIT_TEST(TestZero) {
- const TString x("\0"sv);
+ const TString x("\0"sv);
const TString xEnc = "AA==";
const TString y = Base64Decode(xEnc);
const TString yEnc = Base64Encode(x);
@@ -361,7 +361,7 @@ Y_UNIT_TEST_SUITE(TBase64) {
}
Y_UNIT_TEST(TestSymbolsAfterZero) {
- const TString x("\0a"sv);
+ const TString x("\0a"sv);
const TString xEnc = "AGE=";
const TString y = Base64Decode(xEnc);
const TString yEnc = Base64Encode(x);