aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/codecs
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/codecs
parentd0d68c395c10da4cb56a1c845504570a04d7893e (diff)
downloadydb-7fe839092527589b38f014d854c51565b3c1adfa.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/codecs')
-rw-r--r--library/cpp/codecs/codecs_registry.cpp12
-rw-r--r--library/cpp/codecs/solar_codec.h24
-rw-r--r--library/cpp/codecs/static/static.cpp4
-rw-r--r--library/cpp/codecs/static/ut/static_ut.cpp2
4 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/codecs/codecs_registry.cpp b/library/cpp/codecs/codecs_registry.cpp
index 17d07062ab4..ec565135217 100644
--- a/library/cpp/codecs/codecs_registry.cpp
+++ b/library/cpp/codecs/codecs_registry.cpp
@@ -72,7 +72,7 @@ namespace NCodecs {
if (TSolarCodec::MyName() == name) {
return new TSolarCodec();
}
- if (name.EndsWith(TStringBuf("-a"))) {
+ if (name.EndsWith(TStringBuf("-a"))) {
return MakeCodecImpl<TAdaptiveSolarCodec>(name, name.SubStr(TSolarCodec::MyName().size()).Chop(2));
} else {
return MakeCodecImpl<TSolarCodec>(name, name.SubStr(TSolarCodec::MyName().size()));
@@ -81,19 +81,19 @@ namespace NCodecs {
template <class TCodecCls>
TCodecPtr MakeCodecImpl(const TStringBuf& name, const TStringBuf& type) const {
- if (TStringBuf("-8k") == type) {
+ if (TStringBuf("-8k") == type) {
return new TCodecCls(1 << 13);
}
- if (TStringBuf("-16k") == type) {
+ if (TStringBuf("-16k") == type) {
return new TCodecCls(1 << 14);
}
- if (TStringBuf("-32k") == type) {
+ if (TStringBuf("-32k") == type) {
return new TCodecCls(1 << 15);
}
- if (TStringBuf("-64k") == type) {
+ if (TStringBuf("-64k") == type) {
return new TCodecCls(1 << 16);
}
- if (TStringBuf("-256k") == type) {
+ if (TStringBuf("-256k") == type) {
return new TCodecCls(1 << 18);
}
ythrow TNoCodecException(name);
diff --git a/library/cpp/codecs/solar_codec.h b/library/cpp/codecs/solar_codec.h
index 7158ae79262..e80d33e443c 100644
--- a/library/cpp/codecs/solar_codec.h
+++ b/library/cpp/codecs/solar_codec.h
@@ -65,40 +65,40 @@ namespace NCodecs {
class TSolarCodec: public ICodec {
public:
static TStringBuf MyName8k() {
- return TStringBuf("solar-8k");
+ return TStringBuf("solar-8k");
}
static TStringBuf MyName16k() {
- return TStringBuf("solar-16k");
+ return TStringBuf("solar-16k");
}
static TStringBuf MyName32k() {
- return TStringBuf("solar-32k");
+ return TStringBuf("solar-32k");
}
static TStringBuf MyName64k() {
- return TStringBuf("solar-64k");
+ return TStringBuf("solar-64k");
}
static TStringBuf MyName256k() {
- return TStringBuf("solar-256k");
+ return TStringBuf("solar-256k");
}
static TStringBuf MyName() {
- return TStringBuf("solar");
+ return TStringBuf("solar");
}
static TStringBuf MyName8kAdapt() {
- return TStringBuf("solar-8k-a");
+ return TStringBuf("solar-8k-a");
}
static TStringBuf MyName16kAdapt() {
- return TStringBuf("solar-16k-a");
+ return TStringBuf("solar-16k-a");
}
static TStringBuf MyName32kAdapt() {
- return TStringBuf("solar-32k-a");
+ return TStringBuf("solar-32k-a");
}
static TStringBuf MyName64kAdapt() {
- return TStringBuf("solar-64k-a");
+ return TStringBuf("solar-64k-a");
}
static TStringBuf MyName256kAdapt() {
- return TStringBuf("solar-256k-a");
+ return TStringBuf("solar-256k-a");
}
static TStringBuf MyNameShortInt() {
- return TStringBuf("solar-si");
+ return TStringBuf("solar-si");
}
explicit TSolarCodec(ui32 maxentries = 1 << 14, ui32 maxiter = 16, const NGreedyDict::TBuildSettings& s = NGreedyDict::TBuildSettings())
diff --git a/library/cpp/codecs/static/static.cpp b/library/cpp/codecs/static/static.cpp
index 44a07dd73a2..d741e46f7dd 100644
--- a/library/cpp/codecs/static/static.cpp
+++ b/library/cpp/codecs/static/static.cpp
@@ -13,10 +13,10 @@
#include <util/ysaveload.h>
namespace NCodecs {
- static constexpr TStringBuf STATIC_CODEC_INFO_MAGIC = "CodecInf";
+ static constexpr TStringBuf STATIC_CODEC_INFO_MAGIC = "CodecInf";
static TStringBuf GetStaticCodecInfoMagic() {
- return STATIC_CODEC_INFO_MAGIC;
+ return STATIC_CODEC_INFO_MAGIC;
}
void SaveCodecInfoToStream(IOutputStream& out, const TStaticCodecInfo& info) {
diff --git a/library/cpp/codecs/static/ut/static_ut.cpp b/library/cpp/codecs/static/ut/static_ut.cpp
index 57e1e628874..999da7702b0 100644
--- a/library/cpp/codecs/static/ut/static_ut.cpp
+++ b/library/cpp/codecs/static/ut/static_ut.cpp
@@ -8,7 +8,7 @@ class TStaticCodecUsageTest: public NUnitTest::TTestBase {
private:
void DoTestUsage(NStaticCodecExample::EDictVersion dv, size_t expectedSize) {
- const TStringBuf letov = "Всё идёт по плану";
+ const TStringBuf letov = "Всё идёт по плану";
TBuffer outEnc, outDec;
NStaticCodecExample::Encode(outEnc, letov, dv);