aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp
diff options
context:
space:
mode:
authortejblum <tejblum@yandex-team.ru>2022-02-10 16:48:02 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:02 +0300
commit2bf39531b4f50b889e946ac4866018678a4fb281 (patch)
tree65ee082892af9db55f726e13950abf0b1cc65992 /library/cpp
parenta61e8c559b6b690a019253067224d595e3d642f1 (diff)
downloadydb-2bf39531b4f50b889e946ac4866018678a4fb281.tar.gz
Restoring authorship annotation for <tejblum@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp')
-rw-r--r--library/cpp/cgiparam/cgiparam.cpp2
-rw-r--r--library/cpp/cgiparam/cgiparam.h2
-rw-r--r--library/cpp/charset/codepage.h10
-rw-r--r--library/cpp/charset/cp_encrec.cpp2
-rw-r--r--library/cpp/charset/doccodes.h4
-rw-r--r--library/cpp/charset/recyr.hh2
-rw-r--r--library/cpp/containers/str_map/str_map.h6
-rw-r--r--library/cpp/digest/old_crc/crc.h14
-rw-r--r--library/cpp/mime/types/mime.h2
-rw-r--r--library/cpp/packedtypes/longs.h6
-rw-r--r--library/cpp/string_utils/base64/base64.cpp10
-rw-r--r--library/cpp/string_utils/quote/quote.cpp8
12 files changed, 34 insertions, 34 deletions
diff --git a/library/cpp/cgiparam/cgiparam.cpp b/library/cpp/cgiparam/cgiparam.cpp
index f3277b8e4b..f98ef011aa 100644
--- a/library/cpp/cgiparam/cgiparam.cpp
+++ b/library/cpp/cgiparam/cgiparam.cpp
@@ -91,7 +91,7 @@ static inline TString DoUnescape(const TStringBuf s) {
void TCgiParameters::InsertEscaped(const TStringBuf name, const TStringBuf value) {
InsertUnescaped(DoUnescape(name), DoUnescape(value));
-}
+}
template <bool addAll, class F>
static inline void DoScan(const TStringBuf s, F& f) {
diff --git a/library/cpp/cgiparam/cgiparam.h b/library/cpp/cgiparam/cgiparam.h
index 87d1ab0ad4..e6fa76a3ef 100644
--- a/library/cpp/cgiparam/cgiparam.h
+++ b/library/cpp/cgiparam/cgiparam.h
@@ -39,7 +39,7 @@ public:
TString operator()() const {
return Print();
}
-
+
void Scan(const TStringBuf cgiParStr, bool form = true);
void ScanAdd(const TStringBuf cgiParStr);
void ScanAddUnescaped(const TStringBuf cgiParStr);
diff --git a/library/cpp/charset/codepage.h b/library/cpp/charset/codepage.h
index 30a02a4610..9ad4a290f5 100644
--- a/library/cpp/charset/codepage.h
+++ b/library/cpp/charset/codepage.h
@@ -1,7 +1,7 @@
#pragma once
-
+
#include "doccodes.h"
-
+
#include <util/charset/recode_result.h>
#include <util/charset/unidata.h> // all wchar32 functions
#include <util/charset/utf8.h>
@@ -91,7 +91,7 @@ struct CodePage {
return SingleByteCodepage() || CPEnum == CODES_UTF8;
}
};
-
+
class TCodePageHash;
namespace NCodepagePrivate {
@@ -193,7 +193,7 @@ ECharset EncodingHintByName(const char* name);
struct Encoder {
char* Table[256];
const char* DefaultChar;
-
+
inline char Code(wchar32 ch) const {
if (ch > 0xFFFF)
return 0;
@@ -222,7 +222,7 @@ struct Encoder {
\*****************************************************************/
struct Recoder {
unsigned char Table[257];
-
+
void Create(const CodePage& source, const CodePage& target);
void Create(const CodePage& source, const Encoder* wideTarget);
diff --git a/library/cpp/charset/cp_encrec.cpp b/library/cpp/charset/cp_encrec.cpp
index e4570cd628..036c92058d 100644
--- a/library/cpp/charset/cp_encrec.cpp
+++ b/library/cpp/charset/cp_encrec.cpp
@@ -3,7 +3,7 @@
#include <util/stream/output.h>
void Encoder::Tr(const wchar32* in, char* out, size_t len) const {
- while (len--)
+ while (len--)
*out++ = Tr(*in++);
}
diff --git a/library/cpp/charset/doccodes.h b/library/cpp/charset/doccodes.h
index 75c87adf9e..78d7e101ec 100644
--- a/library/cpp/charset/doccodes.h
+++ b/library/cpp/charset/doccodes.h
@@ -1,5 +1,5 @@
#pragma once
-
+
enum ECharset {
CODES_UNSUPPORTED = -2, // valid but unsupported encoding
CODES_UNKNOWN = -1, // invalid or unspecified encoding
@@ -126,4 +126,4 @@ enum ECharset {
CODES_SHIFT_JIS,
CODES_MAX
-};
+};
diff --git a/library/cpp/charset/recyr.hh b/library/cpp/charset/recyr.hh
index 5ec8734bcf..fdfeabde3b 100644
--- a/library/cpp/charset/recyr.hh
+++ b/library/cpp/charset/recyr.hh
@@ -1,5 +1,5 @@
#pragma once
-
+
#include <cstdlib>
#include <util/charset/recode_result.h>
diff --git a/library/cpp/containers/str_map/str_map.h b/library/cpp/containers/str_map/str_map.h
index 31b00d1b99..38fd2d7da5 100644
--- a/library/cpp/containers/str_map/str_map.h
+++ b/library/cpp/containers/str_map/str_map.h
@@ -60,7 +60,7 @@ public:
}
void clear_hash() {
- yh::clear();
+ yh::clear();
pool.Clear();
}
pool_size_type pool_size() const {
@@ -93,8 +93,8 @@ public:
}
mapped_type& operator[](const char* key) {
- iterator I = yh::find(key);
- if (I == yh::end())
+ iterator I = yh::find(key);
+ if (I == yh::end())
I = insert_copy(key, mapped_type()).first;
return (*I).second;
}
diff --git a/library/cpp/digest/old_crc/crc.h b/library/cpp/digest/old_crc/crc.h
index 4a3ce6d05e..9f341d1d90 100644
--- a/library/cpp/digest/old_crc/crc.h
+++ b/library/cpp/digest/old_crc/crc.h
@@ -23,17 +23,17 @@ struct IdTR {
Y_FORCE_INLINE static ui8 T(ui8 a) {
return a;
}
-};
-
+};
+
// CCITT CRC-32
-template <class TR>
+template <class TR>
inline ui32 crc32(const char* buf, size_t buflen, ui32 crcinit = CRC32INIT) {
ui32 crc = crcinit ^ 0xFFFFFFFF;
const char* end = buf + buflen;
extern const ui32* crctab32;
while (buf < end) {
- crc = (crc >> 8) ^ crctab32[(crc ^ TR::T((ui8)*buf)) & 0xFF];
+ crc = (crc >> 8) ^ crctab32[(crc ^ TR::T((ui8)*buf)) & 0xFF];
++buf;
}
@@ -41,9 +41,9 @@ inline ui32 crc32(const char* buf, size_t buflen, ui32 crcinit = CRC32INIT) {
}
inline ui32 crc32(const char* buf, size_t buflen, ui32 crcinit = CRC32INIT) {
- return crc32<IdTR>(buf, buflen, crcinit);
-}
-
+ return crc32<IdTR>(buf, buflen, crcinit);
+}
+
inline ui32 crc32(const void* buf, size_t buflen, ui32 crcinit = CRC32INIT) {
return crc32((const char*)buf, buflen, crcinit);
}
diff --git a/library/cpp/mime/types/mime.h b/library/cpp/mime/types/mime.h
index 05da389ea9..28ea41a34b 100644
--- a/library/cpp/mime/types/mime.h
+++ b/library/cpp/mime/types/mime.h
@@ -1,5 +1,5 @@
#pragma once
-
+
#include <util/system/defaults.h>
#include <util/generic/strbuf.h>
diff --git a/library/cpp/packedtypes/longs.h b/library/cpp/packedtypes/longs.h
index 084098d705..1ae5423903 100644
--- a/library/cpp/packedtypes/longs.h
+++ b/library/cpp/packedtypes/longs.h
@@ -1,5 +1,5 @@
#pragma once
-
+
#include <util/system/defaults.h> // _BIDSCLASS _EXPCLASS
#include <util/system/yassert.h>
#include <util/system/unaligned_mem.h>
@@ -13,8 +13,8 @@
#elif defined(_little_endian_)
#define LO_SHIFT 0
#define HI_SHIFT 1
-#endif
-
+#endif
+
#if !defined(_must_align2_)
#define PUT_16(x, buf, shift) WriteUnaligned<ui16>(buf, (x) >> (shift)), (buf) += 2
#define GET_16_OR(x, buf, type, shift) (x) |= (type)ReadUnaligned<ui16>(buf) << (shift), (buf) += 2
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));
}