diff options
author | levysotsky <levysotsky@yandex-team.ru> | 2022-02-10 16:47:29 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:29 +0300 |
commit | 32b231c8474a1ade4bdf776ade6a20341691d9d7 (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/yt/string | |
parent | 57f874ffc2a75047c1c4fea7a9fc86cb0f56ed50 (diff) | |
download | ydb-32b231c8474a1ade4bdf776ade6a20341691d9d7.tar.gz |
Restoring authorship annotation for <levysotsky@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yt/string')
-rw-r--r-- | library/cpp/yt/string/enum.cpp | 14 | ||||
-rw-r--r-- | library/cpp/yt/string/enum.h | 10 | ||||
-rw-r--r-- | library/cpp/yt/string/format-inl.h | 8 | ||||
-rw-r--r-- | library/cpp/yt/string/string.cpp | 2 | ||||
-rw-r--r-- | library/cpp/yt/string/string.h | 4 |
5 files changed, 19 insertions, 19 deletions
diff --git a/library/cpp/yt/string/enum.cpp b/library/cpp/yt/string/enum.cpp index aaff64f2df..7cb8e5c6b6 100644 --- a/library/cpp/yt/string/enum.cpp +++ b/library/cpp/yt/string/enum.cpp @@ -26,17 +26,17 @@ TString EncodeEnumValue(TStringBuf value) namespace NDetail { void ThrowMalformedEnumValueException(TStringBuf typeName, TStringBuf value) -{ +{ throw TSimpleException(Format("Error parsing %v value %Qv", typeName, value)); -} - +} + void FormatUnknownEnumValue(TStringBuilderBase* builder, TStringBuf name, i64 value) -{ - builder->AppendFormat("%v(%v)", name, value); -} - +{ + builder->AppendFormat("%v(%v)", name, value); +} + } // namespace NDetail //////////////////////////////////////////////////////////////////////////////// diff --git a/library/cpp/yt/string/enum.h b/library/cpp/yt/string/enum.h index 6490114bed..10dc02610f 100644 --- a/library/cpp/yt/string/enum.h +++ b/library/cpp/yt/string/enum.h @@ -5,7 +5,7 @@ #include <library/cpp/yt/misc/enum.h> #include <optional> - + namespace NYT { //////////////////////////////////////////////////////////////////////////////// @@ -15,13 +15,13 @@ TString EncodeEnumValue(TStringBuf value); template <class T> T ParseEnum(TStringBuf value); - -template <class T> + +template <class T> void FormatEnum(TStringBuilderBase* builder, T value, bool lowerCase); - + template <class T> TString FormatEnum(T value, typename TEnumTraits<T>::TType* = nullptr); - + //////////////////////////////////////////////////////////////////////////////// } // namespace NYT diff --git a/library/cpp/yt/string/format-inl.h b/library/cpp/yt/string/format-inl.h index ab08c58f55..5484d4a216 100644 --- a/library/cpp/yt/string/format-inl.h +++ b/library/cpp/yt/string/format-inl.h @@ -4,7 +4,7 @@ #include "format.h" #endif -#include "enum.h" +#include "enum.h" #include "string.h" #include <library/cpp/yt/assert/assert.h> @@ -180,12 +180,12 @@ struct TValueFormatter<TEnum, typename std::enable_if<TEnumTraits<TEnum>::IsEnum lowercase = true; } else if (IsQuotationSpecSymbol(*current)) { ++current; - } else { + } else { break; - } + } } - FormatEnum(builder, value, lowercase); + FormatEnum(builder, value, lowercase); } }; diff --git a/library/cpp/yt/string/string.cpp b/library/cpp/yt/string/string.cpp index 1229359833..7440ac3fdd 100644 --- a/library/cpp/yt/string/string.cpp +++ b/library/cpp/yt/string/string.cpp @@ -1,5 +1,5 @@ #include "string.h" -#include "format.h" +#include "format.h" #include <library/cpp/yt/assert/assert.h> diff --git a/library/cpp/yt/string/string.h b/library/cpp/yt/string/string.h index c51b9ae410..ae6c99caab 100644 --- a/library/cpp/yt/string/string.h +++ b/library/cpp/yt/string/string.h @@ -8,8 +8,8 @@ #include <util/generic/string.h> -#include <util/string/strip.h> - +#include <util/string/strip.h> + #include <vector> #include <set> #include <map> |