diff options
author | tejblum <tejblum@yandex-team.ru> | 2022-02-10 16:48:02 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:02 +0300 |
commit | 2bf39531b4f50b889e946ac4866018678a4fb281 (patch) | |
tree | 65ee082892af9db55f726e13950abf0b1cc65992 /library/cpp/string_utils | |
parent | a61e8c559b6b690a019253067224d595e3d642f1 (diff) | |
download | ydb-2bf39531b4f50b889e946ac4866018678a4fb281.tar.gz |
Restoring authorship annotation for <tejblum@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/string_utils')
-rw-r--r-- | library/cpp/string_utils/base64/base64.cpp | 10 | ||||
-rw-r--r-- | library/cpp/string_utils/quote/quote.cpp | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/string_utils/base64/base64.cpp b/library/cpp/string_utils/base64/base64.cpp index 05c201f0de..885933dfb7 100644 --- a/library/cpp/string_utils/base64/base64.cpp +++ b/library/cpp/string_utils/base64/base64.cpp @@ -164,15 +164,15 @@ static size_t Base64DecodePlain(void* dst, const char* b, const char* e) { n += 3; } - if (n > 0) { + if (n > 0) { if (b[-1] == ',' || b[-1] == '=') { - n--; + n--; if (b[-2] == ',' || b[-2] == '=') { - n--; + n--; } - } - } + } + } return n; } diff --git a/library/cpp/string_utils/quote/quote.cpp b/library/cpp/string_utils/quote/quote.cpp index e523350b80..46f757a4b3 100644 --- a/library/cpp/string_utils/quote/quote.cpp +++ b/library/cpp/string_utils/quote/quote.cpp @@ -6,14 +6,14 @@ #include <cctype> -/* note: (x & 0xdf) makes x upper case */ +/* note: (x & 0xdf) makes x upper case */ #define GETXC \ do { \ c *= 16; \ c += (x[0] >= 'A' ? ((x[0] & 0xdf) - 'A') + 10 : (x[0] - '0')); \ ++x; \ } while (0) - + #define GETSBXC \ do { \ c *= 16; \ @@ -62,8 +62,8 @@ namespace { private: const char* End; }; -} - +} + static inline char d2x(unsigned x) { return (char)((x < 10) ? ('0' + x) : ('A' + x - 10)); } |