diff options
author | tobo <tobo@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:27 +0300 |
commit | 55a7f90e4cd31e9481cace8ee5dfd682c27e810e (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/codecs | |
parent | 7fe839092527589b38f014d854c51565b3c1adfa (diff) | |
download | ydb-55a7f90e4cd31e9481cace8ee5dfd682c27e810e.tar.gz |
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/codecs')
-rw-r--r-- | library/cpp/codecs/codecs_registry.cpp | 12 | ||||
-rw-r--r-- | library/cpp/codecs/solar_codec.h | 24 | ||||
-rw-r--r-- | library/cpp/codecs/static/static.cpp | 4 | ||||
-rw-r--r-- | library/cpp/codecs/static/ut/static_ut.cpp | 2 |
4 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/codecs/codecs_registry.cpp b/library/cpp/codecs/codecs_registry.cpp index ec56513521..17d07062ab 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 e80d33e443..7158ae7926 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 d741e46f7d..44a07dd73a 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 999da7702b..57e1e62887 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); |