aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/enumbitset/enumbitset.h
diff options
context:
space:
mode:
authorVlad Yaroslavlev <vladon@vladon.com>2022-02-10 16:46:23 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:23 +0300
commit706b83ed7de5a473436620367af31fc0ceecde07 (patch)
tree103305d30dec77e8f6367753367f59b3cd68f9f1 /library/cpp/enumbitset/enumbitset.h
parent918e8a1574070d0ec733f0b76cfad8f8892ad2e5 (diff)
downloadydb-706b83ed7de5a473436620367af31fc0ceecde07.tar.gz
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/enumbitset/enumbitset.h')
-rw-r--r--library/cpp/enumbitset/enumbitset.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/enumbitset/enumbitset.h b/library/cpp/enumbitset/enumbitset.h
index 41864c3a04..bd82474633 100644
--- a/library/cpp/enumbitset/enumbitset.h
+++ b/library/cpp/enumbitset/enumbitset.h
@@ -285,13 +285,13 @@ public:
return t;
}
- TString ToString() const {
+ TString ToString() const {
static_assert(sizeof(typename TParent::TChunk) <= sizeof(ui64), "expect sizeof(typename TParent::TChunk) <= sizeof(ui64)");
static const size_t chunkSize = sizeof(typename TParent::TChunk) * 8;
static const size_t numDig = chunkSize / 4;
- static const TString templ = Sprintf("%%0%lulX", numDig);
+ static const TString templ = Sprintf("%%0%lulX", numDig);
static const size_t numOfChunks = (BitsetSize + chunkSize - 1) / chunkSize;
- TString ret;
+ TString ret;
for (int pos = numOfChunks * chunkSize; pos >= 0; pos -= chunkSize) {
ui64 t = 0;
this->Export(pos, t);
@@ -473,13 +473,13 @@ public:
Init(c1, c2, r...);
}
- static TSfEnumBitSet GetFromString(const TString& s) {
+ static TSfEnumBitSet GetFromString(const TString& s) {
TSfEnumBitSet ebs;
ebs.FromString(s);
return ebs;
}
- static TSfEnumBitSet TryGetFromString(const TString& s) {
+ static TSfEnumBitSet TryGetFromString(const TString& s) {
TSfEnumBitSet ebs;
ebs.TryFromString(s);
return ebs;