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 | 6ab7e5f5ada0643a48d393717f443bd548706ffc (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/string_utils | |
parent | 2bf39531b4f50b889e946ac4866018678a4fb281 (diff) | |
download | ydb-6ab7e5f5ada0643a48d393717f443bd548706ffc.tar.gz |
Restoring authorship annotation for <tejblum@yandex-team.ru>. Commit 2 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 885933dfb7..05c201f0de 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 46f757a4b3..e523350b80 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)); } |