aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/string_utils/ztstrbuf
diff options
context:
space:
mode:
authormyltsev <myltsev@yandex-team.ru>2022-02-10 16:46:03 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:03 +0300
commit9166d66c30c23c9e85a7c88185a068987148d23f (patch)
tree421bdcec5755d9e441c485560aab5ab8d74c7475 /library/cpp/string_utils/ztstrbuf
parent8d3a5ed3a188a34167eaee54f1691ce5c9edf2f3 (diff)
downloadydb-9166d66c30c23c9e85a7c88185a068987148d23f.tar.gz
Restoring authorship annotation for <myltsev@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/string_utils/ztstrbuf')
-rw-r--r--library/cpp/string_utils/ztstrbuf/ya.make18
-rw-r--r--library/cpp/string_utils/ztstrbuf/ztstrbuf.cpp16
-rw-r--r--library/cpp/string_utils/ztstrbuf/ztstrbuf.h70
3 files changed, 52 insertions, 52 deletions
diff --git a/library/cpp/string_utils/ztstrbuf/ya.make b/library/cpp/string_utils/ztstrbuf/ya.make
index 28b3f32f58..10bdad091f 100644
--- a/library/cpp/string_utils/ztstrbuf/ya.make
+++ b/library/cpp/string_utils/ztstrbuf/ya.make
@@ -1,9 +1,9 @@
-LIBRARY()
-
-OWNER(myltsev)
-
-SRCS(
- ztstrbuf.cpp
-)
-
-END()
+LIBRARY()
+
+OWNER(myltsev)
+
+SRCS(
+ ztstrbuf.cpp
+)
+
+END()
diff --git a/library/cpp/string_utils/ztstrbuf/ztstrbuf.cpp b/library/cpp/string_utils/ztstrbuf/ztstrbuf.cpp
index 4a7269ff4a..98f6cead1c 100644
--- a/library/cpp/string_utils/ztstrbuf/ztstrbuf.cpp
+++ b/library/cpp/string_utils/ztstrbuf/ztstrbuf.cpp
@@ -1,8 +1,8 @@
-#include "ztstrbuf.h"
-
-#include <util/stream/output.h>
-
-template <>
-void Out<TZtStringBuf>(IOutputStream& os, const TZtStringBuf& sb) {
- os << static_cast<const TStringBuf&>(sb);
-}
+#include "ztstrbuf.h"
+
+#include <util/stream/output.h>
+
+template <>
+void Out<TZtStringBuf>(IOutputStream& os, const TZtStringBuf& sb) {
+ os << static_cast<const TStringBuf&>(sb);
+}
diff --git a/library/cpp/string_utils/ztstrbuf/ztstrbuf.h b/library/cpp/string_utils/ztstrbuf/ztstrbuf.h
index 5fab768d8c..04c509bcc5 100644
--- a/library/cpp/string_utils/ztstrbuf/ztstrbuf.h
+++ b/library/cpp/string_utils/ztstrbuf/ztstrbuf.h
@@ -1,36 +1,36 @@
-#pragma once
-
-#include <util/generic/strbuf.h>
+#pragma once
+
+#include <util/generic/strbuf.h>
#include <util/generic/string.h>
-
-/*
- * Zero-terminated string view.
- *
- * Has a c_str() for use with system/cstdlib calls (like TString)
- * but can be constructed from a string literal or command-line arg
- * without memory allocation (like TStringBuf).
- *
- * Use it to reference filenames, thread names, string formats etc.
- */
-
-class TZtStringBuf: public TStringBuf {
-public:
- TZtStringBuf(const char* s)
- : TStringBuf(s)
- {
- }
-
- TZtStringBuf(const TString& s)
- : TStringBuf(s)
- {
- }
-
- TZtStringBuf()
- : TZtStringBuf(TString{})
- {
- }
-
- const char* c_str() const {
- return data();
- }
-};
+
+/*
+ * Zero-terminated string view.
+ *
+ * Has a c_str() for use with system/cstdlib calls (like TString)
+ * but can be constructed from a string literal or command-line arg
+ * without memory allocation (like TStringBuf).
+ *
+ * Use it to reference filenames, thread names, string formats etc.
+ */
+
+class TZtStringBuf: public TStringBuf {
+public:
+ TZtStringBuf(const char* s)
+ : TStringBuf(s)
+ {
+ }
+
+ TZtStringBuf(const TString& s)
+ : TStringBuf(s)
+ {
+ }
+
+ TZtStringBuf()
+ : TZtStringBuf(TString{})
+ {
+ }
+
+ const char* c_str() const {
+ return data();
+ }
+};