aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt
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/yt
parentd0d68c395c10da4cb56a1c845504570a04d7893e (diff)
downloadydb-7fe839092527589b38f014d854c51565b3c1adfa.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/yt')
-rw-r--r--library/cpp/yt/misc/enum-inl.h4
-rw-r--r--library/cpp/yt/string/format-inl.h36
-rw-r--r--library/cpp/yt/string/string.cpp4
-rw-r--r--library/cpp/yt/string/string.h8
-rw-r--r--library/cpp/yt/string/string_builder.h4
5 files changed, 28 insertions, 28 deletions
diff --git a/library/cpp/yt/misc/enum-inl.h b/library/cpp/yt/misc/enum-inl.h
index 59ef704775..9557432b3b 100644
--- a/library/cpp/yt/misc/enum-inl.h
+++ b/library/cpp/yt/misc/enum-inl.h
@@ -73,7 +73,7 @@ static constexpr bool AreValuesDistinct(const TValues& values)
\
static TStringBuf GetTypeName() \
{ \
- static constexpr TStringBuf typeName = PP_STRINGIZE(name); \
+ static constexpr TStringBuf typeName = PP_STRINGIZE(name); \
return typeName; \
} \
\
@@ -143,7 +143,7 @@ static constexpr bool AreValuesDistinct(const TValues& values)
ENUM__GET_DOMAIN_NAMES_ITEM_ATOMIC(PP_ELEMENT(seq, 0))
#define ENUM__GET_DOMAIN_NAMES_ITEM_ATOMIC(item) \
- TStringBuf(PP_STRINGIZE(item)),
+ TStringBuf(PP_STRINGIZE(item)),
#define ENUM__DECOMPOSE \
static std::vector<TType> Decompose(TType value) \
diff --git a/library/cpp/yt/string/format-inl.h b/library/cpp/yt/string/format-inl.h
index 5484d4a216..93b0aadac5 100644
--- a/library/cpp/yt/string/format-inl.h
+++ b/library/cpp/yt/string/format-inl.h
@@ -49,7 +49,7 @@ inline void FormatValue(TStringBuilderBase* builder, TStringBuf value, TStringBu
hasAlign = true;
alignSize = 10 * alignSize + (*current - '0');
if (alignSize > 1000000) {
- builder->AppendString(TStringBuf("<alignment overflow>"));
+ builder->AppendString(TStringBuf("<alignment overflow>"));
return;
}
++current;
@@ -144,8 +144,8 @@ inline void FormatValue(TStringBuilderBase* builder, bool value, TStringBuf form
}
auto str = lowercase
- ? (value ? TStringBuf("true") : TStringBuf("false"))
- : (value ? TStringBuf("True") : TStringBuf("False"));
+ ? (value ? TStringBuf("true") : TStringBuf("false"))
+ : (value ? TStringBuf("True") : TStringBuf("False"));
builder->AppendString(str);
}
@@ -406,7 +406,7 @@ struct TValueFormatter<std::pair<T1, T2>>
{
builder->AppendChar('{');
FormatValue(builder, value.first, format);
- builder->AppendString(TStringBuf(", "));
+ builder->AppendString(TStringBuf(", "));
FormatValue(builder, value.second, format);
builder->AppendChar('}');
}
@@ -415,7 +415,7 @@ struct TValueFormatter<std::pair<T1, T2>>
// std::optional
inline void FormatValue(TStringBuilderBase* builder, std::nullopt_t, TStringBuf /*format*/)
{
- builder->AppendString(TStringBuf("<null>"));
+ builder->AppendString(TStringBuf("<null>"));
}
template <class T>
@@ -487,7 +487,7 @@ char* WriteIntToBufferBackwards(char* buffer, TValue value);
template <class TValue>
void FormatValueViaHelper(TStringBuilderBase* builder, TValue value, TStringBuf format, TStringBuf genericSpec)
{
- if (format == TStringBuf("v")) {
+ if (format == TStringBuf("v")) {
const int MaxResultSize = 64;
char buffer[MaxResultSize];
char* end = buffer + MaxResultSize;
@@ -504,14 +504,14 @@ void FormatValueViaHelper(TStringBuilderBase* builder, TValue value, TStringBuf
FormatValueViaHelper(builder, static_cast<castType>(value), format, genericSpec); \
}
-XX(i8, int, TStringBuf("d"))
-XX(ui8, unsigned int, TStringBuf("u"))
-XX(i16, int, TStringBuf("d"))
-XX(ui16, unsigned int, TStringBuf("u"))
-XX(i32, int, TStringBuf("d"))
-XX(ui32, unsigned int, TStringBuf("u"))
-XX(long, long, TStringBuf("ld"))
-XX(unsigned long, unsigned long, TStringBuf("lu"))
+XX(i8, int, TStringBuf("d"))
+XX(ui8, unsigned int, TStringBuf("u"))
+XX(i16, int, TStringBuf("d"))
+XX(ui16, unsigned int, TStringBuf("u"))
+XX(i32, int, TStringBuf("d"))
+XX(ui32, unsigned int, TStringBuf("u"))
+XX(long, long, TStringBuf("ld"))
+XX(unsigned long, unsigned long, TStringBuf("lu"))
#undef XX
@@ -521,8 +521,8 @@ XX(unsigned long, unsigned long, TStringBuf("lu"))
FormatValueViaSprintf(builder, static_cast<castType>(value), format, genericSpec); \
}
-XX(double, double, TStringBuf("lf"))
-XX(float, float, TStringBuf("f"))
+XX(double, double, TStringBuf("lf"))
+XX(float, float, TStringBuf("f"))
#undef XX
@@ -530,7 +530,7 @@ XX(float, float, TStringBuf("f"))
template <class T>
void FormatValue(TStringBuilderBase* builder, T* value, TStringBuf format)
{
- FormatValueViaSprintf(builder, value, format, TStringBuf("p"));
+ FormatValueViaSprintf(builder, value, format, TStringBuf("p"));
}
// TDuration (specialize for performance reasons)
@@ -672,7 +672,7 @@ struct TArgFormatterImpl<IndexBase>
{
void operator() (size_t /*index*/, TStringBuilderBase* builder, TStringBuf /*format*/) const
{
- builder->AppendString(TStringBuf("<missing argument>"));
+ builder->AppendString(TStringBuf("<missing argument>"));
}
};
diff --git a/library/cpp/yt/string/string.cpp b/library/cpp/yt/string/string.cpp
index 7440ac3fdd..5564627098 100644
--- a/library/cpp/yt/string/string.cpp
+++ b/library/cpp/yt/string/string.cpp
@@ -191,13 +191,13 @@ char* WriteUnsignedIntToBufferBackwardsImpl(char* ptr, T value)
template <>
char* WriteIntToBufferBackwards(char* ptr, i32 value)
{
- return WriteSignedIntToBufferBackwardsImpl(ptr, value, TStringBuf("-2147483647"));
+ return WriteSignedIntToBufferBackwardsImpl(ptr, value, TStringBuf("-2147483647"));
}
template <>
char* WriteIntToBufferBackwards(char* ptr, i64 value)
{
- return WriteSignedIntToBufferBackwardsImpl(ptr, value, TStringBuf("-9223372036854775808"));
+ return WriteSignedIntToBufferBackwardsImpl(ptr, value, TStringBuf("-9223372036854775808"));
}
template <>
diff --git a/library/cpp/yt/string/string.h b/library/cpp/yt/string/string.h
index ae6c99caab..c9199117e6 100644
--- a/library/cpp/yt/string/string.h
+++ b/library/cpp/yt/string/string.h
@@ -25,13 +25,13 @@ struct TDefaultFormatter
template <class T>
void operator()(TStringBuilderBase* builder, const T& obj) const
{
- FormatValue(builder, obj, TStringBuf("v"));
+ FormatValue(builder, obj, TStringBuf("v"));
}
};
-static constexpr TStringBuf DefaultJoinToStringDelimiter = ", ";
-static constexpr TStringBuf DefaultKeyValueDelimiter = ": ";
-static constexpr TStringBuf DefaultRangeEllipsisFormat = "...";
+static constexpr TStringBuf DefaultJoinToStringDelimiter = ", ";
+static constexpr TStringBuf DefaultKeyValueDelimiter = ": ";
+static constexpr TStringBuf DefaultRangeEllipsisFormat = "...";
// ASCII characters from 0x20 = ' ' to 0x7e = '~' are printable.
static constexpr char PrintableASCIILow = 0x20;
diff --git a/library/cpp/yt/string/string_builder.h b/library/cpp/yt/string/string_builder.h
index 0e13e70904..2d9dd6edc7 100644
--- a/library/cpp/yt/string/string_builder.h
+++ b/library/cpp/yt/string/string_builder.h
@@ -75,7 +75,7 @@ protected:
////////////////////////////////////////////////////////////////////////////////
template <class T>
-TString ToStringViaBuilder(const T& value, TStringBuf spec = TStringBuf("v"));
+TString ToStringViaBuilder(const T& value, TStringBuf spec = TStringBuf("v"));
////////////////////////////////////////////////////////////////////////////////
@@ -86,7 +86,7 @@ class TDelimitedStringBuilderWrapper
public:
TDelimitedStringBuilderWrapper(
TStringBuilderBase* builder,
- TStringBuf delimiter = TStringBuf(", "))
+ TStringBuf delimiter = TStringBuf(", "))
: Builder_(builder)
, Delimiter_(delimiter)
{ }