diff options
| author | babenko <[email protected]> | 2022-02-10 16:49:19 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:19 +0300 |
| commit | f31097c96270919a1f49360bdaaa69ea4f3fefab (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/yt/string/enum.h | |
| parent | cec37806d8847aa3db53bafc9e251d4aaf325c12 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yt/string/enum.h')
| -rw-r--r-- | library/cpp/yt/string/enum.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/yt/string/enum.h b/library/cpp/yt/string/enum.h index 774ad5eb02e..10dc02610f7 100644 --- a/library/cpp/yt/string/enum.h +++ b/library/cpp/yt/string/enum.h @@ -1,31 +1,31 @@ -#pragma once - +#pragma once + #include "string.h" - + #include <library/cpp/yt/misc/enum.h> - + #include <optional> -namespace NYT { - -//////////////////////////////////////////////////////////////////////////////// - +namespace NYT { + +//////////////////////////////////////////////////////////////////////////////// + TString DecodeEnumValue(TStringBuf value); TString EncodeEnumValue(TStringBuf value); - + template <class T> -T ParseEnum(TStringBuf value); +T ParseEnum(TStringBuf value); template <class T> -void FormatEnum(TStringBuilderBase* builder, T value, bool lowerCase); +void FormatEnum(TStringBuilderBase* builder, T value, bool lowerCase); template <class T> -TString FormatEnum(T value, typename TEnumTraits<T>::TType* = nullptr); +TString FormatEnum(T value, typename TEnumTraits<T>::TType* = nullptr); //////////////////////////////////////////////////////////////////////////////// -} // namespace NYT - -#define ENUM_INL_H_ -#include "enum-inl.h" -#undef ENUM_INL_H_ +} // namespace NYT + +#define ENUM_INL_H_ +#include "enum-inl.h" +#undef ENUM_INL_H_ |
